1 | #ifndef MARS_MRawEvtHeader
|
---|
2 | #define MARS_MRawEvtHeader
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | // gcc 3.2
|
---|
9 | //class ifstream;
|
---|
10 | #include <iosfwd>
|
---|
11 |
|
---|
12 | class MTime;
|
---|
13 | class MArrayB;
|
---|
14 | class MRawRunHeader;
|
---|
15 |
|
---|
16 | //
|
---|
17 | // Trigger Type (TT)
|
---|
18 | //
|
---|
19 | enum {
|
---|
20 | kTTEvent = 0,
|
---|
21 | kTTPedestal = 1,
|
---|
22 | kTTCalibration = 2
|
---|
23 | };
|
---|
24 |
|
---|
25 | class MRawEvtHeader : public MParContainer
|
---|
26 | {
|
---|
27 | private:
|
---|
28 | MTime *fTime; //! object to store the time in (ReadEvt)
|
---|
29 |
|
---|
30 | UInt_t fDAQEvtNumber; // Number of Event
|
---|
31 |
|
---|
32 | UInt_t fNumTrigLvl1; // Number of 1st level tiggers between 2 events
|
---|
33 | UInt_t fNumTrigLvl2; // Number of 2nd level tiggers between 2 events
|
---|
34 | UInt_t fTrigPattern[2]; // Trigger configuration
|
---|
35 |
|
---|
36 | UShort_t fNumLoGainOn; // Indicating if no pixel has a neglegible
|
---|
37 | // low gain signal (0), else it is the number
|
---|
38 | // of pixels with lo gain on
|
---|
39 |
|
---|
40 | //
|
---|
41 | // Informations only needed to read the raw file correctly
|
---|
42 | //
|
---|
43 | UShort_t fTrigType; //! Trigger Type of this event
|
---|
44 | MArrayB *fPixLoGainOn; //! Array which tell you which pixels have lo gain on
|
---|
45 |
|
---|
46 | public:
|
---|
47 |
|
---|
48 | MRawEvtHeader(const char *name=NULL, const char *title=NULL);
|
---|
49 | ~MRawEvtHeader();
|
---|
50 |
|
---|
51 | void Init(MRawRunHeader *rh, MTime *t);
|
---|
52 |
|
---|
53 | void Clear(Option_t * = NULL);
|
---|
54 | void Print(Option_t * = NULL) const;
|
---|
55 |
|
---|
56 | void FillHeader(UInt_t, Float_t=0);
|
---|
57 |
|
---|
58 | UShort_t GetTrigType() const { return fTrigType; }
|
---|
59 | UInt_t GetDAQEvtNumber() const { return fDAQEvtNumber; }
|
---|
60 |
|
---|
61 | int ReadEvt(istream& fin);
|
---|
62 |
|
---|
63 | ClassDef(MRawEvtHeader, 1) // Parameter Conatiner for raw EVENT HEADER
|
---|
64 | };
|
---|
65 |
|
---|
66 | #endif
|
---|