1 |
/** @file |
/** @file |
2 |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/EventCounter.cpp,v $ |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/EventCounter.cpp,v $ |
3 |
* $Id: EventCounter.cpp,v 1.1.1.1 2008/09/23 07:19:51 mocchiut Exp $ |
* $Id: EventCounter.cpp,v 1.2 2009/07/24 13:53:49 mocchiut Exp $ |
4 |
* $Author: mocchiut $ |
* $Author: mocchiut $ |
5 |
* |
* |
6 |
* Implementation of the EventCounter class. |
* Implementation of the EventCounter class. |
23 |
*/ |
*/ |
24 |
EventCounter::EventCounter(int run): |
EventCounter::EventCounter(int run): |
25 |
// New Packets. |
// New Packets. |
26 |
|
RunNumber(run), |
27 |
Pscu(0), |
Pscu(0), |
28 |
PhysEndRun(0), |
PhysEndRun(0), |
29 |
CalibCalPulse1(0), |
CalibCalPulse1(0), |
70 |
S4Alarm(0), |
S4Alarm(0), |
71 |
Ac2Alarm(0), |
Ac2Alarm(0), |
72 |
TsbT(0), |
TsbT(0), |
73 |
TsbB(0), |
TsbB(0) { |
|
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)); |
76 |
CMap.insert(CounterMap::value_type(PacketType::CalibCalPulse1, &CalibCalPulse1)); |
CMap.insert(CounterMap::value_type(PacketType::CalibCalPulse1, &CalibCalPulse1)); |