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
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059 #ifndef StTriggerData2003_hh
00060 #define StTriggerData2003_hh
00061
00062 #include "StTriggerData.h"
00063
00064 struct TrgDataType2003;
00065
00066 class StTriggerData2003 : public StTriggerData {
00067 public:
00068 StTriggerData2003();
00069 StTriggerData2003(const TrgDataType2003*, int run);
00070 ~StTriggerData2003();
00071
00072 void dump() const;
00073
00074
00075 unsigned int version() const;
00076 unsigned int numberOfPreXing() const;
00077 unsigned int numberOfPostXing() const;
00078
00079
00080 unsigned int token() const;
00081 unsigned int triggerWord() const;
00082 unsigned int actionWord() const;
00083 unsigned short busyStatus() const;
00084 unsigned short dsmInput() const;
00085 unsigned short trgToken() const;
00086 unsigned short dsmAddress() const;
00087 unsigned short mAddBits() const;
00088 unsigned short bcData(int channel) const;
00089
00090
00091 unsigned int bunchCounterHigh() const;
00092 unsigned int bunchCounterLow() const;
00093 unsigned int bunchId48Bit() const;
00094 unsigned int bunchId7Bit() const;
00095 unsigned int spinBit() const;
00096 unsigned int spinBitYellowFilled() const;
00097 unsigned int spinBitYellowUp() const;
00098 unsigned int spinBitYellowDown() const;
00099 unsigned int spinBitYellowUnpol() const;
00100 unsigned int spinBitBlueFilled() const;
00101 unsigned int spinBitBlueUp() const;
00102 unsigned int spinBitBlueDown() const;
00103 unsigned int spinBitBlueUnpol() const;
00104
00105
00106 unsigned short tcuBits() const;
00107 unsigned short lastDSM(int address) const;
00108 unsigned short bemcLayer1DSM(int channel, int prepost=0) const;
00109 unsigned short eemcLayer1DSM(int channel, int prepost=0) const;
00110 unsigned short emcLayer2DSM(int channel) const;
00111 unsigned short fpdLayer1DSMRaw(StBeamDirection eastwest, int channel, int prepost=0) const;
00112 unsigned short fpdLayer1DSM(StBeamDirection eastwest, int module, int board, int prepost=0) const;
00113 unsigned short fpdLayer2DSMRaw(int channel) const;
00114 unsigned short fpdLayer2DSM(StBeamDirection eastwest, int module) const;
00115
00116
00117 unsigned short ctbRaw(int address, int prepost=0) const;
00118 unsigned short ctb(int pmt, int prepost=0) const;
00119 unsigned short ctbTraySlat(int tray, int slat, int prepost=0) const;
00120 unsigned short ctbSum(int prepost=0) const;
00121
00122
00123 unsigned short mwc(int pmt, int prepost=0) const;
00124
00125
00126 unsigned short bbcADC(StBeamDirection eastwest, int pmt, int prepost=0) const;
00127 unsigned short bbcTDC(StBeamDirection eastwest, int pmt, int prepost=0) const;
00128 unsigned short bbcADCSum(StBeamDirection eastwest, int prepost=0) const;
00129 unsigned short bbcADCSumLargeTile(StBeamDirection eastwest, int prepost=0) const;
00130 unsigned short bbcEarliestTDC(StBeamDirection eastwest, int prepost=0) const;
00131 unsigned short bbcTimeDifference() const;
00132
00133
00134 unsigned short fpd(StBeamDirection eastwest, int module, int pmt, int prepost=0) const;
00135 unsigned short fpdSum(StBeamDirection eastwest, int module) const;
00136
00137
00138 unsigned short zdcAtChannel(int channel, int prepost=0) const;
00139 unsigned short zdcAtAddress(int address, int prepost=0) const;
00140 unsigned short zdcUnAttenuated(StBeamDirection eastwest, int prepost=0) const;
00141 unsigned short zdcAttenuated(StBeamDirection eastwest, int prepost=0) const;
00142 unsigned short zdcADC(StBeamDirection eastwest, int pmt, int prepost=0) const;
00143 unsigned short zdcTDC(StBeamDirection eastwest, int prepost=0) const;
00144 unsigned short zdcHardwareSum(int prepost=0) const;
00145
00146
00147 unsigned char bemcHighTower(int patch_id, int prepost=0) const;
00148 unsigned char bemcJetPatch (int patch_id, int prepost=0) const;
00149 unsigned char eemcHighTower(int patch_id, int prepost=0) const;
00150 unsigned char eemcJetPatch (int patch_id, int prepost=0) const;
00151 unsigned char bemcHighestTowerADC(int prepost=0) const;
00152 unsigned char eemcHighestTowerADC(int prepost=0) const;
00153
00154
00155 char* getTriggerStructure();
00156 TrgDataType2003* getTriggerStructure2003();
00157 int getRawSize() const;
00158
00159 unsigned char* getDsm0_BEMCE(int prepost=0) const { return 0;}
00160 unsigned char* getDsm0_BEMCW(int prepost=0) const { return 0;}
00161 unsigned char * getDsm0_EEMC(int prepost=0) const;
00162 unsigned short int* getDsm1_BEMC(int prepost=0) const { return 0;}
00163 unsigned short int * getDsm1_EEMC(int prepost=0) const;
00164 unsigned short int * getDsm2_EMC() const;
00165 unsigned short int * getDsm3() const;
00166 unsigned int l2ResultLength() const;
00167 const unsigned int* l2Result() const;
00168
00169 protected:
00170 TrgDataType2003 *mData;
00171
00172 ClassDef(StTriggerData2003,1)
00173 };
00174
00175 #endif