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

Last change on this file since 2913 was 2728, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.7 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 GetDAQEvtNumber() const { return fDAQEvtNumber; }
61
62 int ReadEvt(istream& fin);
63
64 ClassDef(MRawEvtHeader, 1) // Parameter Conatiner for raw EVENT HEADER
65};
66
67#endif
Note: See TracBrowser for help on using the repository browser.