]>
Commit | Line | Data |
---|---|---|
e802be3e | 1 | #ifndef ALIFMDRAWREADER_H |
2 | #define ALIFMDRAWREADER_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights | |
4 | * reserved. | |
5 | * | |
6 | * Latest changes by Christian Holm Christensen <cholm@nbi.dk> | |
7 | * | |
8 | * See cxx source for full Copyright notice | |
9 | */ | |
10 | /* $Id$ */ | |
11 | //____________________________________________________________________ | |
12 | // | |
13 | // Class to read ADC values from a AliRawReader object. | |
088f8e79 | 14 | // Note, that it uses an ALTRO reader, which is wrong. |
15 | // Perhaps we need to implement it our selves | |
e802be3e | 16 | // |
e802be3e | 17 | #ifndef ROOT_TTask |
18 | # include <TTask.h> | |
19 | #endif | |
20 | ||
21 | //____________________________________________________________________ | |
22 | class AliRawReader; | |
1a1fdef7 | 23 | class TTree; |
d760ea03 | 24 | class TClonesArray; |
e802be3e | 25 | |
26 | ||
27 | //____________________________________________________________________ | |
9f662337 | 28 | /** @brief Class to read ALTRO formated raw data from an AliRawReader |
29 | object. | |
30 | @code | |
31 | AliRawReader* reader = new AliRawReaderFile(0); | |
32 | AliFMDRawReader* fmdReader = new AliFMDRawReader(reader); | |
33 | TClonesArray* array = new TClonesArray("AliFMDDigit"); | |
34 | fmdReader->ReadAdcs(array); | |
35 | @endcode | |
36 | @ingroup FMD_rec | |
37 | */ | |
e802be3e | 38 | class AliFMDRawReader : public TTask |
39 | { | |
40 | public: | |
9f662337 | 41 | /** CTOR |
42 | @param reader Raw reader | |
43 | @param array Output tree */ | |
1a1fdef7 | 44 | AliFMDRawReader(AliRawReader* reader, TTree* array); |
9f662337 | 45 | /** DTOR */ |
088f8e79 | 46 | virtual ~AliFMDRawReader() {} |
9f662337 | 47 | /** Read in, and store in output tree |
48 | @param option Not used */ | |
d760ea03 | 49 | virtual void Exec(Option_t* option=""); |
9f662337 | 50 | /** Read ADC's into a TClonesArray of AliFMDDigit objects. |
51 | @param array Array to read into | |
52 | @return @c true on success */ | |
d760ea03 | 53 | virtual Bool_t ReadAdcs(TClonesArray* array); |
e802be3e | 54 | protected: |
1a1fdef7 | 55 | TTree* fTree; //! Pointer to tree to read into |
e802be3e | 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 | |
59 | }; | |
60 | ||
61 | #endif | |
62 | //____________________________________________________________________ | |
63 | // | |
64 | // Local Variables: | |
65 | // mode: C++ | |
66 | // End: | |
67 | // | |
68 | // EOF | |
69 | // |