34 #ifndef TPCV2P0_READER_HH
35 #define TPCV2P0_READER_HH
36 #include "StDaqLib/GENERIC/EventReader.hh"
39 #define TPC_ROWS_PER_SECTOR 45
41 static const unsigned char tpcRowLen[TPC_ROWS_PER_SECTOR] = {
42 88,96,104,112,118,126,134,142,150,158,166,174,182,98,100,102,104,106,
43 106,108,110,112,112,114,116,118,120,122,122,124,126,128,128,130,132,134,
44 136,138,138,140,142,144,144,144,144} ;
51 #define classname(x) x ## V2P0
55 struct classname(Bank_TPCP);
56 struct classname(Bank_TPCSECP);
57 struct classname(Bank_TPCRBP);
58 struct classname(Bank_TPCMZP);
62 struct classname(Bank_TPCADCD) ;
63 struct classname(Bank_TPCSEQD) ;
64 struct classname(Bank_TPCADCX) ;
65 struct classname(Bank_TPCPADK) ;
66 struct classname(Bank_TPCCPPR) ;
67 struct classname(Bank_TPCADCR) ;
68 struct classname(Bank_TPCCFGR) ;
69 struct classname(Bank_TPCPEDR) ;
70 struct classname(Bank_TPCRMSR) ;
71 struct classname(Bank_TPCGAINR) ;
72 struct classname(Bank_TPCBADR) ;
73 struct classname(Bank_TPCMZCLD) ;
112 classname(Bank_TPCP) *pBankTPCP;
113 classname(Bank_TPCSECP) *getBankTPCSECP(
int hypersector);
114 classname(Bank_TPCRBP) *getBankTPCRBP(
int interleaved_rb, classname(Bank_TPCSECP) *pBank_TPCSECP);
115 classname(Bank_TPCMZP) *getBankTPCMZP(
int mz, classname(Bank_TPCRBP) *pBank_TPCRBP);
116 classname(Bank_TPCMZP) *getBankTPCMZP(
int sector,
int rb,
int mz);
117 classname(
Bank_TPCMZCLD) *getBankTPCMZCLD(
int sector,
int rb,
int mz);
123 classname(Bank_TPCADCD) *getBankTPCADCD(
int sector,
int rb,
int mz);
124 classname(Bank_TPCSEQD) *getBankTPCSEQD(
int sector,
int rb,
int mz);
125 classname(Bank_TPCADCX) *getBankTPCADCX(
int sector,
int rb,
int mz);
126 classname(Bank_TPCPADK) *getBankTPCPADK(
int sector,
int rb,
int mz);
127 classname(Bank_TPCCPPR) *getBankTPCCPPR(
int sector,
int rb,
int mz);
128 classname(Bank_TPCADCR) *getBankTPCADCR(
int sector,
int rb,
int mz);
129 classname(Bank_TPCCFGR) *getBankTPCCFGR(
int sector,
int rb,
int mz);
130 classname(Bank_TPCPEDR) *getBankTPCPEDR(
int sector,
int rb,
int mz);
131 classname(Bank_TPCRMSR) *getBankTPCRMSR(
int sector,
int rb,
int mz);
132 classname(Bank_TPCGAINR) *getBankTPCGAINR(
int sector,
int rb,
int mz);
133 classname(Bank_TPCBADR) *getBankTPCBADR(
int sector,
int rb,
int mz);
139 int InformBuffers(
ADCRawReader *,
int sector) {
return FALSE; };
142 int InformBuffers(
GainReader *,
int sector) {
return FALSE; };
143 int InformBuffers(
CPPReader *,
int sector) {
return FALSE; };
145 int InformBuffers(
ConfigReader *,
int sector) {
return FALSE; };
148 int AttachBuffers(
ADCRawReader *,
int sector) {
return FALSE; };
149 int AttachBuffers(
PedestalReader *,
int sector) {
return FALSE; };
151 int AttachBuffers(
GainReader *,
int sector) {
return FALSE; };
152 int AttachBuffers(
CPPReader *,
int sector) {
return FALSE; };
154 int AttachBuffers(
ConfigReader *,
int sector) {
return FALSE; };