1 #ifndef ALIFMDRAWWRITER_H
2 #define ALIFMDRAWWRITER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
6 * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
8 * See cxx source for full Copyright notice
11 //____________________________________________________________________
13 // Class to writer ADC values to a Raw File
19 //____________________________________________________________________
25 //____________________________________________________________________
26 class AliFMDRawWriter : public TTask
29 AliFMDRawWriter(AliFMD* fmd);
31 virtual void Exec(Option_t* option="");
32 void SetSampleRate(UShort_t sampleRate=1) { fSampleRate = sampleRate; }
33 void SetChannelsPerAltro(UShort_t size=128) { fChannelsPerAltro = size; }
34 void SetThreshold(UShort_t t=0) { fThreshold = t; }
36 virtual void WriteChannel(AliAltroBuffer* altro,
37 UShort_t strip, UShort_t sector, Char_t ring,
39 AliFMD* fFMD; //! Pointer to detector description
40 UShort_t fSampleRate; // The sample rate (0 -> inferred from data)
41 UShort_t fChannelsPerAltro; // Number of pre-amp. channels/adc channel
42 UShort_t fThreshold; // Threshold for zero-suppression
44 ClassDef(AliFMDRawWriter, 0) // Write FMD raw data to a DDL file
48 //____________________________________________________________________