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