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 /** @file AliFMDRawWriter.h
12 @author Christian Holm Christensen <cholm@nbi.dk>
13 @date Mon Mar 27 12:45:56 2006
14 @brief Class to write raw data
16 //____________________________________________________________________
18 // Class to writer ADC values to a Raw File
19 // Uses general ALTRO class - which is wrong
20 // Should make it right!
26 //____________________________________________________________________
32 //____________________________________________________________________
33 /** @class AliFMDRawWriter
34 @brief Class to write ALTRO formated raw data from an array of
37 AliFMDRawWriter* fmdWriter = new AliFMDRawWriter(0);
38 TClonesArray* array = fmd->DigitArray();
39 fmdWriter->WriteDigits(array);
43 class AliFMDRawWriter : public TTask
47 @param fmd Pointer to detector object. */
48 AliFMDRawWriter(AliFMD* fmd);
50 virtual ~AliFMDRawWriter() {}
52 /** Write the output from AliFMD object.
53 @param option Not used */
54 virtual void Exec(Option_t* option="");
55 /** Write an array of AliFMDDigit objects as raw ALTRO data.
56 @param digits Array of AliFMDDigit objects to convert to raw
58 virtual void WriteDigits(TClonesArray* digits);
60 AliFMDRawWriter(const AliFMDRawWriter& o) : TTask(o) {}
61 AliFMDRawWriter& operator=(const AliFMDRawWriter&) { return *this; }
62 AliFMD* fFMD; //! Pointer to detector description
63 UShort_t fSampleRate; // The sample rate (0 -> inferred from data)
64 UShort_t fChannelsPerAltro; // Number of pre-amp. channels/adc channel
65 UShort_t fThreshold; // Threshold for zero-suppression
67 ClassDef(AliFMDRawWriter, 0) // Write FMD raw data to a DDL file
71 //____________________________________________________________________