32 #ifndef StTriggerData2008_hh
33 #define StTriggerData2008_hh
35 #include "StTriggerData.h"
36 #include "StDaqLib/TRG/trgStructures2008.h"
47 unsigned int version()
const;
48 unsigned int numberOfPreXing()
const;
49 unsigned int numberOfPostXing()
const;
52 unsigned int token()
const;
53 unsigned int triggerWord()
const;
54 unsigned int actionWord()
const;
55 unsigned short busyStatus()
const;
56 unsigned short dsmInput()
const;
57 unsigned short trgToken()
const;
58 unsigned short dsmAddress()
const;
59 unsigned short mAddBits()
const;
60 unsigned short bcData(
int channel)
const;
63 int L2ResultsOffset(StL2AlgorithmId
id)
const;
64 bool isL2Triggered(StL2TriggerResultType
id)
const;
67 unsigned int bunchCounterHigh()
const;
68 unsigned int bunchCounterLow()
const;
69 unsigned int bunchId48Bit()
const;
70 unsigned int bunchId7Bit()
const;
71 unsigned int spinBit()
const;
72 unsigned int spinBitYellowFilled()
const;
73 unsigned int spinBitYellowUp()
const;
74 unsigned int spinBitYellowDown()
const;
75 unsigned int spinBitYellowUnpol()
const;
76 unsigned int spinBitBlueFilled()
const;
77 unsigned int spinBitBlueUp()
const;
78 unsigned int spinBitBlueDown()
const;
79 unsigned int spinBitBlueUnpol()
const;
82 unsigned short tcuBits()
const;
83 unsigned short lastDSM(
int address)
const;
84 unsigned short bemcLayer1DSM(
int channel,
int prepost=0)
const;
85 unsigned short eemcLayer1DSM(
int channel,
int prepost=0)
const;
86 unsigned short emcLayer2DSM(
int channel)
const;
87 unsigned short fpdLayer1DSMRaw(StBeamDirection eastwest,
int channel,
int prepost=0)
const;
88 unsigned short fpdLayer1DSM(StBeamDirection eastwest,
int module,
int board,
int prepost=0)
const;
89 unsigned short fpdLayer2DSMRaw(
int channel)
const;
90 unsigned short fpdLayer2DSM(StBeamDirection eastwest,
int module)
const;
93 unsigned short ctbRaw(
int address,
int prepost=0)
const;
94 unsigned short ctb(
int pmt,
int prepost=0)
const;
95 unsigned short ctbTraySlat(
int tray,
int slat,
int prepost=0)
const;
96 unsigned short ctbSum(
int prepost=0)
const;
99 unsigned short bbcADC(StBeamDirection eastwest,
int pmt,
int prepost=0)
const;
100 unsigned short bbcTDC(StBeamDirection eastwest,
int pmt,
int prepost=0)
const;
101 unsigned short bbcADCSum(StBeamDirection eastwest,
int prepost=0)
const;
102 unsigned short bbcADCSumLargeTile(StBeamDirection eastwest,
int prepost=0)
const;
103 unsigned short bbcEarliestTDC(StBeamDirection eastwest,
int prepost=0)
const;
104 unsigned short bbcTimeDifference()
const;
107 unsigned short fpd(StBeamDirection eastwest,
int module,
int pmt,
int prepost=0)
const;
108 unsigned short fpdSum(StBeamDirection eastwest,
int module)
const;
111 unsigned short nQTdata(
int prepost=0)
const;
112 unsigned int* QTdata(
int prepost=0)
const;
115 unsigned short zdcAtChannel(
int channel,
int prepost=0)
const;
116 unsigned short zdcAtAddress(
int address,
int prepost=0)
const;
117 unsigned short zdcUnAttenuated(StBeamDirection eastwest,
int prepost=0)
const;
118 unsigned short zdcAttenuated(StBeamDirection eastwest,
int prepost=0)
const;
119 unsigned short zdcADC(StBeamDirection eastwest,
int pmt,
int prepost=0)
const;
120 unsigned short zdcTDC(StBeamDirection eastwest,
int prepost=0)
const;
121 unsigned short zdcHardwareSum(
int prepost=0)
const;
124 unsigned short zdcSMD(StBeamDirection eastwest,
int verthori,
int strip,
int prepost=0)
const;
127 unsigned char bemcHighTower(
int patch_id,
int prepost=0)
const;
128 unsigned char bemcJetPatch (
int patch_id,
int prepost=0)
const;
129 unsigned char eemcHighTower(
int patch_id,
int prepost=0)
const;
130 unsigned char eemcJetPatch (
int patch_id,
int prepost=0)
const;
131 unsigned char bemcHighestTowerADC(
int prepost=0)
const;
132 unsigned char eemcHighestTowerADC(
int prepost=0)
const;
135 unsigned short vpdADC(StBeamDirection eastwest,
int pmt,
int prepost=0)
const;
136 unsigned short vpdTDC(StBeamDirection eastwest,
int pmt,
int prepost=0)
const;
137 unsigned short vpdEarliestTDC(StBeamDirection eastwest,
int prepost=0)
const;
138 unsigned short vpdTimeDifference()
const;
141 unsigned short mtdAtAddress(
int address,
int prepost=0)
const;
142 unsigned short mtdAdc(StBeamDirection eastwest,
int pmt,
int prepost=0)
const;
143 unsigned short mtdTdc(StBeamDirection eastwest,
int pmt,
int prepost=0)
const;
146 unsigned short tofAtAddress(
int address,
int prepost=0)
const;
147 unsigned short tofMultiplicity(
int prepost=0)
const;
150 char* getTriggerStructure();
152 int getRawSize()
const;
155 unsigned char* getDsm0_BEMCE(
int prepost=0)
const {
return 0;}
156 unsigned char* getDsm0_BEMCW(
int prepost=0)
const {
return 0;}
157 unsigned char* getDsm0_EEMC(
int prepost=0)
const;
158 unsigned short* getDsm1_BEMC(
int prepost=0)
const {
return 0;}
159 unsigned short* getDsm1_EEMC(
int prepost=0)
const;
160 unsigned short* getDsm2_EMC()
const;
161 unsigned short* getDsm3()
const;
162 unsigned char* getDsm_FMS(
int prepost=0)
const;
163 unsigned char* getDsm01_FMS(
int prepost=0)
const;
164 unsigned char* getDsm02_FMS(
int prepost=0)
const;
165 unsigned short* getDsm1_FMS(
int prepost=0)
const;
166 unsigned short* getDsm2_FMS()
const;
167 unsigned int l2ResultLength()
const;
168 const unsigned int* l2Result()
const;