1 |
|
/** |
2 |
|
* \file TrigLevel2.h |
3 |
|
* \author Gianfranca DeRosa / Wolfgang Menn |
4 |
|
*/ |
5 |
|
|
6 |
|
|
7 |
#ifndef TrigLevel2_h |
#ifndef TrigLevel2_h |
8 |
#define TrigLevel2_h |
#define TrigLevel2_h |
9 |
// |
// |
12 |
|
|
13 |
#include <TrigStruct.h> |
#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 |
UInt_t evcount; |
|
25 |
UInt_t pmtpl[3]; |
UInt_t evcount; ///<event number starts from 0 at each new run |
26 |
UInt_t trigrate[6]; |
UInt_t pmtpl[3]; ///<Rate counters top / middle /bottom |
27 |
UInt_t dltime[2]; |
UInt_t trigrate[6]; ///<Rate counters of trigger configurations TOF 1/2/.../6 (time base 4 seconds) |
28 |
UInt_t s4calcount[2]; |
UInt_t dltime[2]; ///<livetime or deadtime live=0.16*dltime[0]; dead=0.01*dltime[1] |
29 |
UInt_t pmtcount1[24]; |
UInt_t s4calcount[2]; ///<Rate counters of s4 and calorimeter (time base 4 seconds) |
30 |
UInt_t 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 |
UInt_t patternbusy[3]; |
UInt_t pmtcount2[24]; ///<Rate counters of the last 24 pmt's |
32 |
UInt_t 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 |
UInt_t trigconf; |
UInt_t patterntrig[6]; ///<What is used in the trigger. One has to do some bit shifting to check the values |
34 |
Int_t unpackError; |
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 |
// |
// |