00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef StTriggerData2007_hh
00035 #define StTriggerData2007_hh
00036
00037 #include "StTriggerData.h"
00038
00039 struct TrgDataType2007;
00040
00041 class StTriggerData2007 : public StTriggerData {
00042 public:
00043 StTriggerData2007();
00044 StTriggerData2007(const TrgDataType2007*, int run);
00045 ~StTriggerData2007();
00046
00047 void dump() const;
00048
00049
00050 unsigned int version() const;
00051 unsigned int numberOfPreXing() const;
00052 unsigned int numberOfPostXing() const;
00053
00054
00055 unsigned int token() const;
00056 unsigned int triggerWord() const;
00057 unsigned int actionWord() const;
00058 unsigned short busyStatus() const;
00059 unsigned short dsmInput() const;
00060 unsigned short trgToken() const;
00061 unsigned short dsmAddress() const;
00062 unsigned short mAddBits() const;
00063 unsigned short bcData(int channel) const;
00064
00065
00066 int L2ResultsOffset(StL2AlgorithmId id) const;
00067 bool isL2Triggered(StL2TriggerResultType id) const;
00068
00069
00070 unsigned int bunchCounterHigh() const;
00071 unsigned int bunchCounterLow() const;
00072 unsigned int bunchId48Bit() const;
00073 unsigned int bunchId7Bit() const;
00074 unsigned int spinBit() const;
00075 unsigned int spinBitYellowFilled() const;
00076 unsigned int spinBitYellowUp() const;
00077 unsigned int spinBitYellowDown() const;
00078 unsigned int spinBitYellowUnpol() const;
00079 unsigned int spinBitBlueFilled() const;
00080 unsigned int spinBitBlueUp() const;
00081 unsigned int spinBitBlueDown() const;
00082 unsigned int spinBitBlueUnpol() const;
00083
00084
00085 unsigned short tcuBits() const;
00086 unsigned short lastDSM(int address) const;
00087 unsigned short bemcLayer1DSM(int channel, int prepost=0) const;
00088 unsigned short eemcLayer1DSM(int channel, int prepost=0) const;
00089 unsigned short emcLayer2DSM(int channel) const;
00090 unsigned short fpdLayer1DSMRaw(StBeamDirection eastwest, int channel, int prepost=0) const;
00091 unsigned short fpdLayer1DSM(StBeamDirection eastwest, int module, int board, int prepost=0) const;
00092 unsigned short fpdLayer2DSMRaw(int channel) const;
00093 unsigned short fpdLayer2DSM(StBeamDirection eastwest, int module) const;
00094
00095
00096 unsigned short ctbRaw(int address, int prepost=0) const;
00097 unsigned short ctb(int pmt, int prepost=0) const;
00098 unsigned short ctbTraySlat(int tray, int slat, int prepost=0) const;
00099 unsigned short ctbSum(int prepost=0) const;
00100
00101
00102 unsigned short bbcADC(StBeamDirection eastwest, int pmt, int prepost=0) const;
00103 unsigned short bbcTDC(StBeamDirection eastwest, int pmt, int prepost=0) const;
00104 unsigned short bbcADCSum(StBeamDirection eastwest, int prepost=0) const;
00105 unsigned short bbcADCSumLargeTile(StBeamDirection eastwest, int prepost=0) const;
00106 unsigned short bbcEarliestTDC(StBeamDirection eastwest, int prepost=0) const;
00107 unsigned short bbcTimeDifference() const;
00108
00109
00110 unsigned short fpd(StBeamDirection eastwest, int module, int pmt, int prepost=0) const;
00111 unsigned short fpdSum(StBeamDirection eastwest, int module) const;
00112
00113
00114 unsigned short nQTdata(int prepost=0) const;
00115 unsigned int* QTdata(int prepost=0) const;
00116
00117
00118 unsigned short zdcAtChannel(int channel, int prepost=0) const;
00119 unsigned short zdcAtAddress(int address, int prepost=0) const;
00120 unsigned short zdcUnAttenuated(StBeamDirection eastwest, int prepost=0) const;
00121 unsigned short zdcAttenuated(StBeamDirection eastwest, int prepost=0) const;
00122 unsigned short zdcADC(StBeamDirection eastwest, int pmt, int prepost=0) const;
00123 unsigned short zdcTDC(StBeamDirection eastwest, int prepost=0) const;
00124 unsigned short zdcHardwareSum(int prepost=0) const;
00125
00126
00127 unsigned short zdcSMD(StBeamDirection eastwest, int verthori, int strip, int prepost=0) const;
00128
00129
00130 unsigned char bemcHighTower(int patch_id, int prepost=0) const;
00131 unsigned char bemcJetPatch (int patch_id, int prepost=0) const;
00132 unsigned char eemcHighTower(int patch_id, int prepost=0) const;
00133 unsigned char eemcJetPatch (int patch_id, int prepost=0) const;
00134 unsigned char bemcHighestTowerADC(int prepost=0) const;
00135 unsigned char eemcHighestTowerADC(int prepost=0) const;
00136
00137
00138 unsigned short vpdADC(StBeamDirection eastwest, int pmt, int prepost=0) const;
00139 unsigned short vpdTDC(StBeamDirection eastwest, int pmt, int prepost=0) const;
00140 unsigned short vpdEarliestTDC(StBeamDirection eastwest, int prepost=0) const;
00141 unsigned short vpdTimeDifference() const;
00142
00143
00144 unsigned short mtdAtAddress(int address, int prepost=0) const;
00145 unsigned short mtdAdc(StBeamDirection eastwest, int pmt, int prepost=0) const;
00146 unsigned short mtdTdc(StBeamDirection eastwest, int pmt, int prepost=0) const;
00147
00148
00149 char* getTriggerStructure();
00150 TrgDataType2007* getTriggerStructure2007();
00151 int getRawSize() const;
00152
00153 unsigned char* getDsm0_BEMCE(int prepost=0) const { return 0;}
00154 unsigned char* getDsm0_BEMCW(int prepost=0) const { return 0;}
00155 unsigned char* getDsm0_EEMC(int prepost=0) const;
00156 unsigned short* getDsm1_BEMC(int prepost=0) const { return 0;}
00157
00158 unsigned short* getDsm1_EEMC(int prepost=0) const;
00159 unsigned short* getDsm2_EMC() const;
00160 unsigned short* getDsm3() const;
00161 unsigned char* getDsm_FMS(int prepost=0) const;
00162 unsigned char* getDsm01_FMS(int prepost=0) const;
00163 unsigned char* getDsm02_FMS(int prepost=0) const;
00164 unsigned short* getDsm1_FMS(int prepost=0) const;
00165 unsigned short* getDsm2_FMS() const;
00166 unsigned int l2ResultLength() const;
00167 const unsigned int* l2Result() const;
00168
00169 protected:
00170 TrgDataType2007 *mData;
00171
00172 ClassDef(StTriggerData2007,1)
00173 };
00174
00175 #endif