68 |
TrgAlarm(0), |
TrgAlarm(0), |
69 |
TofAlarm(0), |
TofAlarm(0), |
70 |
S4Alarm(0), |
S4Alarm(0), |
|
TsbT(0), |
|
|
TsbB(0), |
|
71 |
RunNumber(run) { |
RunNumber(run) { |
72 |
CMap.insert(CounterMap::value_type(PacketType::Pscu, &Pscu)); |
CMap.insert(CounterMap::value_type(PacketType::Pscu, &Pscu)); |
73 |
CMap.insert(CounterMap::value_type(PacketType::PhysEndRun, &PhysEndRun)); |
CMap.insert(CounterMap::value_type(PacketType::PhysEndRun, &PhysEndRun)); |
114 |
CMap.insert(CounterMap::value_type(PacketType::TrgAlarm, &TrgAlarm)); |
CMap.insert(CounterMap::value_type(PacketType::TrgAlarm, &TrgAlarm)); |
115 |
CMap.insert(CounterMap::value_type(PacketType::TofAlarm, &TofAlarm)); |
CMap.insert(CounterMap::value_type(PacketType::TofAlarm, &TofAlarm)); |
116 |
CMap.insert(CounterMap::value_type(PacketType::S4Alarm, &S4Alarm)); |
CMap.insert(CounterMap::value_type(PacketType::S4Alarm, &S4Alarm)); |
|
CMap.insert(CounterMap::value_type(PacketType::TsbT, &TsbT)); |
|
|
CMap.insert(CounterMap::value_type(PacketType::TsbB, &TsbB)); |
|
117 |
} |
} |
118 |
|
|
119 |
/** |
/** |
127 |
(*counter)++; |
(*counter)++; |
128 |
oss.str(""); |
oss.str(""); |
129 |
oss << " Counter." << type->GetName() << " = " << (*counter); |
oss << " Counter." << type->GetName() << " = " << (*counter); |
130 |
logger->debug(oss.str().c_str()); |
logger->info(oss.str().c_str()); |
131 |
} else { |
} else { |
132 |
oss.str(""); |
oss.str(""); |
133 |
oss << "\n No counter of type " << type->GetName().c_str(); |
oss << "\n No counter of type " << type->GetName().c_str(); |
179 |
for(CounterMap::const_iterator p = CMap.begin(); p != CMap.end(); p++) { |
for(CounterMap::const_iterator p = CMap.begin(); p != CMap.end(); p++) { |
180 |
oss.str(""); |
oss.str(""); |
181 |
oss << " Counter." << (p->first)->GetName() << " \t \t " << (*p->second); |
oss << " Counter." << (p->first)->GetName() << " \t \t " << (*p->second); |
182 |
logger->warn(oss.str().c_str()); |
logger->info(oss.str().c_str()); |
183 |
} |
} |
184 |
} |
} |