30 #ifndef STTOFRDAQMAP_H
31 #define STTOFRDAQMAP_H
38 #include "TDataSetIter.h"
39 #include "TObjectSet.h"
43 #ifndef ST_NO_NAMESPACES
47 #if !defined(ST_NO_TEMPLATE_DEF_ARGS) || defined(__CINT__)
49 typedef vector<Int_t> IntVec;
51 typedef vector<Int_t, allocator<Int_t>> IntVec;
56 static const Int_t mDAQOVERFLOW = 255;
57 static const Int_t mNTOFR = 120;
58 static const Int_t mNTOFR5 = 192;
60 static const Int_t mNTOF = 192;
61 static const Int_t mNTray = 120;
62 static const Int_t mNModule = 32;
63 static const Int_t mNCell = 6;
64 static const Int_t mNVPD = 19;
68 Int_t mTrayId[mNTOFR], mModuleId[mNTOFR], mCellId[mNTOFR];
69 Int_t mAdc[mNTOFR], mTdc[mNTOFR];
72 Int_t mGlobalTDCChan[mNTOFR5], mGlobalModuleChan[mNTOFR5];
75 Int_t mMRPC2TDIGChan[mNTOF];
76 Int_t mTDIG2MRPCChan[mNTOF];
77 Int_t mEastPMT2TDIGLeChan[mNVPD], mEastPMT2TDIGTeChan[mNVPD];
78 Int_t mTDIGLe2EastPMTChan[mNTOF], mTDIGTe2EastPMTChan[mNTOF];
79 Int_t mWestPMT2TDIGLeChan[mNVPD], mWestPMT2TDIGTeChan[mNVPD];
80 Int_t mTDIGLe2WestPMTChan[mNTOF], mTDIGTe2WestPMTChan[mNTOF];
83 Int_t mValidTrayId[mNTray];
91 void initFromDbase(
StMaker *maker);
92 void initFromDbaseY5(
StMaker *maker);
93 void initFromDbaseGeneral(
StMaker *maker);
96 void setNValidTrays(
int ntrays);
98 IntVec DaqChan2Cell(
const Int_t iTofrDaq );
99 Int_t Cell2DaqChan(
const Int_t iTray,
const Int_t iModule,
const Int_t iCell );
100 IntVec ADCChan2Cell(
const Int_t iAdc );
101 IntVec TDCChan2Cell(
const Int_t iTdc );
102 Int_t Cell2ADCChan(
const Int_t iTray,
const Int_t iModule,
const Int_t iCell );
103 Int_t Cell2TDCChan(
const Int_t iTray,
const Int_t iModule,
const Int_t iCell );
104 Int_t DaqChan2ADCChan(
const Int_t iTofrDaq );
105 Int_t DaqChan2TDCChan(
const Int_t iTofrDaq );
106 Int_t ADCChan2DaqChan(
const Int_t iAdc );
107 Int_t TDCChan2DaqChan(
const Int_t iTdc );
110 IntVec Tofr5TDCChan2Cell(
const Int_t iTdc );
111 Int_t Tofr5Cell2TDCChan(
const Int_t iTray,
const Int_t iModule,
const Int_t iCell );
114 IntVec TDIGChan2Cell(
const Int_t iTdc );
115 Int_t Cell2TDIGChan(
const Int_t iModule,
const Int_t iCell );
116 Int_t EastPMT2TDIGLeChan(
const Int_t iTube );
117 Int_t TDIGLeChan2EastPMT(
const Int_t iTdc );
118 Int_t EastPMT2TDIGTeChan(
const Int_t iTube );
119 Int_t TDIGTeChan2EastPMT(
const Int_t iTdc );
120 Int_t WestPMT2TDIGLeChan(
const Int_t iTube );
121 Int_t TDIGLeChan2WestPMT(
const Int_t iTdc );
122 Int_t WestPMT2TDIGTeChan(
const Int_t iTube );
123 Int_t TDIGTeChan2WestPMT(
const Int_t iTdc );
128 inline void StTofrDaqMap::setNValidTrays(
int ntrays) { mNValidTrays = ntrays; }