source: trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h@ 3370

Last change on this file since 3370 was 3338, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.8 KB
Line 
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
12class MTime;
13class MArrayB;
14class MRawRunHeader;
15
16//
17// Trigger Type (TT)
18//
19enum {
20 kTTEvent = 0,
21 kTTPedestal = 1,
22 kTTCalibration = 2
23};
24
25class MRawEvtHeader : public MParContainer
26{
27private:
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 Bool_t DecodeTime(UInt_t abstime[2]) const;
47
48public:
49 MRawEvtHeader(const char *name=NULL, const char *title=NULL);
50 ~MRawEvtHeader();
51
52 void Init(MRawRunHeader *rh, MTime *t);
53
54 void Clear(Option_t * = NULL);
55 void Print(Option_t * = NULL) const;
56
57 void FillHeader(UInt_t, Float_t=0);
58
59 UShort_t GetTrigType() const { return fTrigType; }
60 UInt_t GetNumTrigLvl1() const { return fNumTrigLvl1; }
61 UInt_t GetNumTrigLvl2() const { return fNumTrigLvl2; }
62 UInt_t GetDAQEvtNumber() const { return fDAQEvtNumber; }
63
64 int ReadEvt(istream& fin, UShort_t ver);
65
66 ClassDef(MRawEvtHeader, 1) // Parameter Conatiner for raw EVENT HEADER
67};
68
69#endif
Note: See TracBrowser for help on using the repository browser.