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