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