33 #ifndef STBTOFDAQMAP_H
34 #define STBTOFDAQMAP_H
41 #include "TDataSetIter.h"
42 #include "TObjectSet.h"
47 typedef std::vector<Int_t> IntVec;
55 static const Int_t mDAQOVERFLOW = 255;
56 static const Int_t mNTOF = 192;
57 static const Int_t mNTray = 120;
58 static const Int_t mNModule = 32;
59 static const Int_t mNCell = 6;
60 static const Int_t mNVPD = 19;
64 Int_t mMRPC2TDIGChan[mNTOF];
65 Int_t mTDIG2MRPCChan[mNTOF];
66 Int_t mEastPMT2TDIGLeChan[mNVPD], mEastPMT2TDIGTeChan[mNVPD];
67 Int_t mTDIGLe2EastPMTChan[mNTOF], mTDIGTe2EastPMTChan[mNTOF];
68 Int_t mWestPMT2TDIGLeChan[mNVPD], mWestPMT2TDIGTeChan[mNVPD];
69 Int_t mTDIGLe2WestPMTChan[mNTOF], mTDIGTe2WestPMTChan[mNTOF];
72 Int_t mValidTrayId[mNTray];
89 Int_t
Cell2TDIGChan(
const Int_t iModule,
const Int_t iCell );
void Init(StMaker *maker)
Initial function, need a maker to access the data base.
Int_t numberOfValidTrays()
Returns the number of valid trays.
Int_t WestPMT2TDIGTeChan(const Int_t iTube)
To convert west VPD PMT number to TDIG trailing channel number.
Int_t WestPMT2TDIGLeChan(const Int_t iTube)
To convert west VPD PMT number to TDIG leading channel number.
Int_t TDIGLeChan2WestPMT(const Int_t iTdc)
To convert TDIG leading channel number to west VPD PMT number.
IntVec ValidTrays()
Returns the list of valid tray Ids.
Int_t TDIGLeChan2EastPMT(const Int_t iTdc)
To convert TDIG leading channel number to east VPD PMT number.
Int_t Cell2TDIGChan(const Int_t iModule, const Int_t iCell)
To convert module/cell number to TDIG channel number.
Int_t TDIGTeChan2EastPMT(const Int_t iTdc)
To convert TDIG trailing channel number to east VPD PMT number.
Int_t EastPMT2TDIGTeChan(const Int_t iTube)
To convert east VPD PMT number to TDIG trailing channel number.
void setNValidTrays(int ntrays)
Set the number valid trays.
Int_t TDIGTeChan2WestPMT(const Int_t iTdc)
To convert TDIG trailing channel number to west VPD PMT number.
IntVec TDIGChan2Cell(const Int_t iTdc)
To convert TDIG channel number to module/cell number.
StBTofDaqMap()
Default constructor.
Int_t EastPMT2TDIGLeChan(const Int_t iTube)