| 1 |
/** @file |
/** @file |
| 2 |
* $Source: /home/cvsmanager/yoda/event/EventCounter.cpp,v $ |
* $Source: /home/cvsmanager/yoda/event/EventCounter.cpp,v $ |
| 3 |
* $Id: EventCounter.cpp,v 2.6 2005/01/29 00:26:41 kusanagi Exp $ |
* $Id: EventCounter.cpp,v 2.8 2005/03/03 10:23:30 kusanagi Exp $ |
| 4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 5 |
* |
* |
| 6 |
* Implementation of the EventCounter class. |
* Implementation of the EventCounter class. |
| 69 |
TofAlarm(0), |
TofAlarm(0), |
| 70 |
S4Alarm(0), |
S4Alarm(0), |
| 71 |
TsbT(0), |
TsbT(0), |
| 72 |
TsbB(0), |
TsbB(0), |
| 73 |
RunNumber(run) { |
RunNumber(run) { |
| 74 |
CMap.insert(CounterMap::value_type(PacketType::Pscu, &Pscu)); |
CMap.insert(CounterMap::value_type(PacketType::Pscu, &Pscu)); |
| 75 |
CMap.insert(CounterMap::value_type(PacketType::PhysEndRun, &PhysEndRun)); |
CMap.insert(CounterMap::value_type(PacketType::PhysEndRun, &PhysEndRun)); |
| 131 |
(*counter)++; |
(*counter)++; |
| 132 |
oss.str(""); |
oss.str(""); |
| 133 |
oss << " Counter." << type->GetName() << " = " << (*counter); |
oss << " Counter." << type->GetName() << " = " << (*counter); |
| 134 |
logger->debug(oss.str().c_str()); |
logger->info(oss.str().c_str()); |
| 135 |
} else { |
} else { |
| 136 |
oss.str(""); |
oss.str(""); |
| 137 |
oss << "\n No counter of type " << type->GetName().c_str(); |
oss << "\n No counter of type " << type->GetName().c_str(); |
| 183 |
for(CounterMap::const_iterator p = CMap.begin(); p != CMap.end(); p++) { |
for(CounterMap::const_iterator p = CMap.begin(); p != CMap.end(); p++) { |
| 184 |
oss.str(""); |
oss.str(""); |
| 185 |
oss << " Counter." << (p->first)->GetName() << " \t \t " << (*p->second); |
oss << " Counter." << (p->first)->GetName() << " \t \t " << (*p->second); |
| 186 |
logger->warn(oss.str().c_str()); |
logger->info(oss.str().c_str()); |
| 187 |
} |
} |
| 188 |
} |
} |