/[PAMELA software]/yoda/event/EventCounter.cpp
ViewVC logotype

Diff of /yoda/event/EventCounter.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2.6.2.1 by kusanagi, Fri Mar 4 10:13:10 2005 UTC revision 2.7 by kusanagi, Wed Feb 9 22:24:33 2005 UTC
# Line 68  EventCounter::EventCounter(int run): Line 68  EventCounter::EventCounter(int run):
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));
# Line 116  EventCounter::EventCounter(int run): Line 114  EventCounter::EventCounter(int run):
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  /**  /**
# Line 131  void EventCounter::Increment(PacketType Line 127  void EventCounter::Increment(PacketType
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();
# Line 183  void EventCounter::PrintCounters() const Line 179  void EventCounter::PrintCounters() const
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  }  }

Legend:
Removed from v.2.6.2.1  
changed lines
  Added in v.2.7

  ViewVC Help
Powered by ViewVC 1.1.23