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

Last change on this file since 2620 was 2173, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.6 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
46public:
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
Note: See TracBrowser for help on using the repository browser.