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
10 //____________________________________________________________________
12 // Class to read ADC values from a AliRawReader object.
13 // Note, that it uses an ALTRO reader, which is wrong.
14 // Perhaps we need to implement it our selves
17 /** @file AliFMDRawReader.h
18 @author Christian Holm Christensen <cholm@nbi.dk>
19 @date Mon Mar 27 12:45:23 2006
20 @brief Class to read raw data
27 //____________________________________________________________________
33 //____________________________________________________________________
34 /** @brief Class to read ALTRO formated raw data from an AliRawReader
37 AliRawReader* reader = new AliRawReaderFile(0);
38 AliFMDRawReader* fmdReader = new AliFMDRawReader(reader);
39 TClonesArray* array = new TClonesArray("AliFMDDigit");
40 fmdReader->ReadAdcs(array);
44 class AliFMDRawReader : public TTask
48 @param reader Raw reader
49 @param array Output tree */
50 AliFMDRawReader(AliRawReader* reader, TTree* array);
52 virtual ~AliFMDRawReader() {}
53 /** Read in, and store in output tree
54 @param option Not used */
55 virtual void Exec(Option_t* option="");
56 /** Read ADC's into a TClonesArray of AliFMDDigit objects.
57 @param array Array to read into
58 @return @c true on success */
59 virtual Bool_t ReadAdcs(TClonesArray* array);
61 AliFMDRawReader(const AliFMDRawReader& o)
67 AliFMDRawReader& operator=(const AliFMDRawReader&) { return *this; }
68 TTree* fTree; //! Pointer to tree to read into
69 AliRawReader* fReader; //! Pointer to raw reader
70 UShort_t fSampleRate; // The sample rate (if 0, inferred from data)
71 ClassDef(AliFMDRawReader, 0) // Read FMD raw data into a cache
75 //____________________________________________________________________