1 |
|
/** |
2 |
|
* \file TrigLevel2.h |
3 |
|
* \author Gianfranca DeRosa / Wolfgang Menn |
4 |
|
*/ |
5 |
|
|
6 |
|
|
7 |
#ifndef TrigLevel2_h |
#ifndef TrigLevel2_h |
8 |
#define TrigLevev2_h |
#define TrigLevel2_h |
9 |
// |
// |
10 |
#include <TObject.h> |
#include <TObject.h> |
11 |
#include <TClonesArray.h> |
#include <TClonesArray.h> |
12 |
|
|
13 |
|
#include <TrigStruct.h> |
14 |
|
|
15 |
|
/** |
16 |
|
* \brief Class which contains the Trigger data |
17 |
|
* |
18 |
|
*/ |
19 |
|
|
20 |
class TrigLevel2 : public TObject { |
class TrigLevel2 : public TObject { |
21 |
private: |
private: |
22 |
|
|
23 |
public: |
public: |
24 |
int evcount; |
|
25 |
int pmtpl[3]; |
UInt_t evcount; ///<event number starts from 0 at each new run |
26 |
int trigrate[6]; |
UInt_t pmtpl[3]; ///<Rate counters top / middle /bottom |
27 |
int dltime[2]; |
UInt_t trigrate[6]; ///<Rate counters of trigger configurations TOF 1/2/.../6 (time base 4 seconds) |
28 |
int s4calcount[2]; |
UInt_t dltime[2]; ///<livetime or deadtime live=0.16*dltime[0]; dead=0.01*dltime[1] |
29 |
int pmtcount1[24]; |
UInt_t s4calcount[2]; ///<Rate counters of s4 and calorimeter (time base 4 seconds) |
30 |
int pmtcount2[24]; |
UInt_t pmtcount1[24]; ///<Rate counters of the first 24 pmt's (S111a,...,S118a,S111b,...,S118b etc. look at the QL sequence) |
31 |
int patternbusy[3]; |
UInt_t pmtcount2[24]; ///<Rate counters of the last 24 pmt's |
32 |
int patterntrig[6]; |
UInt_t patternbusy[3]; ///<Too complex to describe, basically there are 3 registers which store the status of the busy lines of all the detector in the 3 phases of acq. (after the trigger, when IDAQ set the busy and when iDAQ remove it) |
33 |
int trigconf; |
UInt_t patterntrig[6]; ///<What is used in the trigger. One has to do some bit shifting to check the values |
34 |
|
UInt_t trigconf; ///<Gives the trigger configuration by bit shifting. For example: "trigconf & (1<<0)" => TOF1 |
35 |
|
Int_t unpackError; ///<is a flag set in case of CRC errors during the unpacking of data |
36 |
// |
// |
37 |
// here you can define methods to make life simplier during the analysis |
// here you can define methods to make life simplier during the analysis |
38 |
// |
// |
44 |
// |
// |
45 |
// 16 June 06: Included GetTrigLevel2 |
// 16 June 06: Included GetTrigLevel2 |
46 |
TrigLevel2* GetTrigLevel2(){return this;}; |
TrigLevel2* GetTrigLevel2(){return this;}; |
47 |
|
void SetFromLevel2Struct(cTrigLevel2 *l2); |
48 |
|
void GetLevel2Struct(cTrigLevel2 *l2) const; |
49 |
|
|
50 |
|
|
51 |
void Clear(); //emiliano |
void Clear(); //emiliano |
52 |
|
|
53 |
ClassDef(TrigLevel2,1); |
ClassDef(TrigLevel2,2); |
54 |
}; |
}; |
55 |
|
|
56 |
#endif |
#endif |