25 m_readCondKey(readCondKey)
31 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++) {
32 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++) {
36 m_flagPT[ssc][sec] = std::bitset<kNThresholdsR2>(0x30);
38 for (
size_t pos=0;
pos < kNRoiInSSC;
pos++){
57 m_readCondKey(readCondKey)
63 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++) {
64 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++) {
68 m_flagPT[ssc][sec] = std::bitset<kNThresholdsR2>(0x30);
70 for (
size_t pos=0;
pos < kNRoiInSSC;
pos++){
77 if (!
tgcArgs()->USE_INNER())
return;
81 if (
tgcArgs()->USE_CONDDB())
return;
92 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++){
93 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++){
94 m_flagPT[ssc][sec] = std::bitset<kNThresholdsR2>(0x00);
106 m_readCondKey(right.m_readCondKey)
110 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++){
111 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++){
117 for (
size_t pos=0;
pos < kNRoiInSSC;
pos++){
131 if (
this != &right) {
133 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++){
134 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++){
140 for (
size_t pos=0;
pos < kNRoiInSSC;
pos++){
156 const std::string SideName[
kNSide] = {
"A",
"C"};
171 bool isFound =(
fullName.length() > 0 );
179 static constexpr
unsigned int BufferSize = 512;
184 unsigned int sectorId = 999;
185 unsigned int sscId = 999;
186 int use[kNThresholdsR2] = {0, 0, 0, 0, 0, 0};
187 int roi[kNRoiInSSC] = {1, 1, 1, 1, 1, 1, 1, 1};
188 std::istringstream
header(buf);
191 header >> sectorId >> sscId
192 >> use[0] >> use[1] >> use[2]
193 >> use[3] >> use[4] >> use[5]
194 >> roi[0] >> roi[1] >> roi[2] >> roi[3]
195 >> roi[4] >> roi[5] >> roi[6] >> roi[7];
198 if (sectorId >= kNEndcapTrigSector ||
201 <<
" in file " <<
dbname);
205 for (
size_t pt=0;
pt < kNThresholdsR2;
pt++){
208 for (
size_t pos=0;
pos < kNRoiInSSC;
pos++){
214 std::istringstream cont(buf);
234 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++){
235 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++){
236 file <<
"# " << sec <<
" " << ssc <<
" ";
251 const unsigned int ssc,
252 const unsigned int sec)
const
254 if (
pt == 0 ||
pt > kNThresholdsR2)
return -1;
255 if (ssc >= kNMaxSSC)
return 0;
256 if (sec >= kNEndcapTrigSector)
return -1;
268 const unsigned int ssc,
269 const unsigned int sec)
const
271 if (roi >= kNRoiInSSC)
return -1;
272 if (ssc >= kNMaxSSC)
return 0;
273 if (sec >= kNEndcapTrigSector)
return -1;
294 unsigned int shift = (reg<<3) + (
read<<2) + bit;