source: trunk/MagicSoft/include-Classes/MRawFormat/MRawEvtHeader.h@ 3160

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