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

Last change on this file since 1963 was 1542, checked in by tbretz, 22 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
8class ifstream;
9class MTime;
10class MArrayB;
11class MRawRunHeader;
12
13//
14// Trigger Type (TT)
15//
16enum {
17 kTTEvent = 0,
18 kTTPedestal = 1,
19 kTTCalibration = 2
20};
21
22class MRawEvtHeader : public MParContainer
23{
24private:
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
43public:
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 UInt_t GetDAQEvtNumber() const { return fDAQEvtNumber; }
57
58 int ReadEvt(istream& fin);
59
60 ClassDef(MRawEvtHeader, 1) // Parameter Conatiner for raw EVENT HEADER
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.