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