1 | #ifndef MARS_MRawEvtData
|
---|
2 | #define MARS_MRawEvtData
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class ifstream;
|
---|
9 | class MRawRunHeader;
|
---|
10 |
|
---|
11 | class TArrayC;
|
---|
12 | class MArrayS;
|
---|
13 | class MArrayB;
|
---|
14 |
|
---|
15 | class MRawEvtData : public MParContainer
|
---|
16 | {
|
---|
17 | friend class MRawEvtPixelIter;
|
---|
18 | private:
|
---|
19 | MRawRunHeader *fRunHeader; //! provides information about numbers
|
---|
20 |
|
---|
21 | // FIXME: COMMENT ABOUT ORDERING
|
---|
22 |
|
---|
23 | MArrayS *fHiGainPixId; // list of pixel IDs of hi gain channel
|
---|
24 | MArrayB *fHiGainFadcSamples; // list of hi gain samples of all pixels (ordering: see fHiGainPixId)
|
---|
25 |
|
---|
26 | MArrayS *fLoGainPixId; // list of pixel IDs of lo gain channel
|
---|
27 | MArrayB *fLoGainFadcSamples; // list of lo gain samples of all pixels (ordering: see fLoGainPixId)
|
---|
28 |
|
---|
29 | Int_t fPosInArray; //!
|
---|
30 | Int_t fArraySize; //!
|
---|
31 |
|
---|
32 | void InitArrays(Bool_t flag=kFALSE);
|
---|
33 | void DeleteArrays();
|
---|
34 |
|
---|
35 | public:
|
---|
36 | MRawEvtData(const char *name=NULL, const char *title=NULL);
|
---|
37 | ~MRawEvtData();
|
---|
38 |
|
---|
39 | void Init(MRawRunHeader *rh)
|
---|
40 | {
|
---|
41 | //
|
---|
42 | // you have to set this before you can read information
|
---|
43 | // from a magic binary file
|
---|
44 | //
|
---|
45 | fRunHeader = rh;
|
---|
46 | }
|
---|
47 |
|
---|
48 | void Clear(Option_t * = NULL);
|
---|
49 | void Print(Option_t * = NULL) const;
|
---|
50 | void Draw (Option_t * = NULL);
|
---|
51 |
|
---|
52 | void DeletePixels(Bool_t flag=kFALSE);
|
---|
53 | void ResetPixels() { DeletePixels(kTRUE); }
|
---|
54 | // void AddPixel(UShort_t nOfPixel, TArrayC *data, Bool_t lflag=kFALSE);
|
---|
55 |
|
---|
56 | Byte_t GetNumHiGainSamples() const;
|
---|
57 | Byte_t GetNumLoGainSamples() const;
|
---|
58 | UShort_t GetNumPixels() const;
|
---|
59 |
|
---|
60 | void ReadEvt(istream &fin);
|
---|
61 |
|
---|
62 | ClassDef(MRawEvtData, 1) //Container to store the raw Event Data
|
---|
63 | };
|
---|
64 |
|
---|
65 | #endif
|
---|