source: trunk/MagicSoft/Mars/mraw/MRawEvtData.h@ 2062

Last change on this file since 2062 was 1045, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MRawEvtData
2#define MARS_MRawEvtData
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class ifstream;
9class MRawRunHeader;
10
11class TArrayC;
12class MArrayS;
13class MArrayB;
14
15class MRawEvtData : public MParContainer
16{
17 friend class MRawEvtPixelIter;
18private:
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
35public:
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
Note: See TracBrowser for help on using the repository browser.