1 #ifndef ALIFMDRAWREADER_H
2 #define ALIFMDRAWREADER_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 read ADC values from a AliRawReader object.
14 // Note, that it uses an ALTRO reader, which is wrong.
15 // Perhaps we need to implement it our selves
21 //____________________________________________________________________
27 //____________________________________________________________________
28 /** @brief Class to read ALTRO formated raw data from an AliRawReader
31 AliRawReader* reader = new AliRawReaderFile(0);
32 AliFMDRawReader* fmdReader = new AliFMDRawReader(reader);
33 TClonesArray* array = new TClonesArray("AliFMDDigit");
34 fmdReader->ReadAdcs(array);
38 class AliFMDRawReader : public TTask
42 @param reader Raw reader
43 @param array Output tree */
44 AliFMDRawReader(AliRawReader* reader, TTree* array);
46 virtual ~AliFMDRawReader() {}
47 /** Read in, and store in output tree
48 @param option Not used */
49 virtual void Exec(Option_t* option="");
50 /** Read ADC's into a TClonesArray of AliFMDDigit objects.
51 @param array Array to read into
52 @return @c true on success */
53 virtual Bool_t ReadAdcs(TClonesArray* array);
55 TTree* fTree; //! Pointer to tree to read into
56 AliRawReader* fReader; //! Pointer to raw reader
57 UShort_t fSampleRate; // The sample rate (if 0, inferred from data)
58 ClassDef(AliFMDRawReader, 0) // Read FMD raw data into a cache
62 //____________________________________________________________________