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 1.2 2004/07/06 13:31:14 kusanagi Exp $ |
* $Id: EventCounter.cpp,v 1.3 2004/07/06 14:07:24 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Implementation of the EventCounter class. |
* Implementation of the EventCounter class. |
20 |
*/ |
*/ |
21 |
EventCounter::EventCounter(int run): |
EventCounter::EventCounter(int run): |
22 |
// New Packets. |
// New Packets. |
23 |
Pscu(-1), |
Pscu(0), |
24 |
Physics(-1), |
Physics(0), |
25 |
Forced_Pkt(-1), |
Forced_Pkt(0), |
26 |
Calib_Trk1(-1), |
Calib_Trk1(0), |
27 |
Calib_Trk2(-1), |
Calib_Trk2(0), |
28 |
Calib_Cal(-1), |
Calib_Cal(0), |
29 |
Calib_CalPed(-1), |
Calib_CalPed(0), |
30 |
Calib_Trd(-1), |
Calib_Ac(0), |
31 |
Calib_Tof(-1), |
Calib_Trd(0), |
32 |
Calib_S4(-1), |
Calib_Tof(0), |
33 |
Run_Header(-1), |
Calib_S4(0), |
34 |
Run_Trailer(-1), |
Run_Header(0), |
35 |
Alarm(-1), |
Run_Trailer(0), |
36 |
Khb(-1), |
Alarm(0), |
37 |
Log(-1), |
Khb(0), |
38 |
VarDump(-1), |
Log(0), |
39 |
ArrDump(-1), |
VarDump(0), |
40 |
TabDump(-1), |
ArrDump(0), |
41 |
Tmtc(-1), |
TabDump(0), |
42 |
Mcmd(-1), |
Tmtc(0), |
43 |
HA_Header_E5(-1), |
Mcmd(0), |
44 |
|
HA_Header_E5(0), |
45 |
RunNumber(run) { |
RunNumber(run) { |
46 |
CMap.insert(CounterMap::value_type(PacketType::Pscu, &Pscu)); |
CMap.insert(CounterMap::value_type(PacketType::Pscu, &Pscu)); |
47 |
CMap.insert(CounterMap::value_type(PacketType::Physics, &Physics)); |
CMap.insert(CounterMap::value_type(PacketType::Physics, &Physics)); |
48 |
CMap.insert(CounterMap::value_type(PacketType::ForcedPkt, &Forced_Pkt)); |
CMap.insert(CounterMap::value_type(PacketType::ForcedPkt, &Forced_Pkt)); |
49 |
CMap.insert(CounterMap::value_type(PacketType::CalibTrk1, &Calib_Trk1)); |
CMap.insert(CounterMap::value_type(PacketType::CalibTrk1, &Calib_Trk1)); |
50 |
CMap.insert(CounterMap::value_type(PacketType::CalibTrk2, &Calib_Trk2)); |
CMap.insert(CounterMap::value_type(PacketType::CalibTrk2, &Calib_Trk2)); |
51 |
CMap.insert(CounterMap::value_type(PacketType::CalibCal, &Calib_Cal)); |
CMap.insert(CounterMap::value_type(PacketType::CalibCal, &Calib_Cal)); |
52 |
CMap.insert(CounterMap::value_type(PacketType::CalibTrd, &Calib_Trd)); |
CMap.insert(CounterMap::value_type(PacketType::CalibCalPed, &Calib_CalPed)); |
53 |
CMap.insert(CounterMap::value_type(PacketType::CalibTof, &Calib_Tof)); |
CMap.insert(CounterMap::value_type(PacketType::CalibAc, &Calib_Ac)); |
54 |
CMap.insert(CounterMap::value_type(PacketType::CalibS4, &Calib_S4)); |
CMap.insert(CounterMap::value_type(PacketType::CalibTrd, &Calib_Trd)); |
55 |
|
CMap.insert(CounterMap::value_type(PacketType::CalibTof, &Calib_Tof)); |
56 |
|
CMap.insert(CounterMap::value_type(PacketType::CalibS4, &Calib_S4)); |
57 |
CMap.insert(CounterMap::value_type(PacketType::RunHeader, &Run_Header)); |
CMap.insert(CounterMap::value_type(PacketType::RunHeader, &Run_Header)); |
58 |
CMap.insert(CounterMap::value_type(PacketType::RunTrailer, &Run_Trailer)); |
CMap.insert(CounterMap::value_type(PacketType::RunTrailer, &Run_Trailer)); |
59 |
CMap.insert(CounterMap::value_type(PacketType::Alarm, &Alarm)); |
CMap.insert(CounterMap::value_type(PacketType::Alarm, &Alarm)); |
60 |
CMap.insert(CounterMap::value_type(PacketType::Khb, &Khb)); |
CMap.insert(CounterMap::value_type(PacketType::Khb, &Khb)); |
61 |
CMap.insert(CounterMap::value_type(PacketType::Log, &Log)); |
CMap.insert(CounterMap::value_type(PacketType::Log, &Log)); |
62 |
CMap.insert(CounterMap::value_type(PacketType::VarDump, &VarDump)); |
CMap.insert(CounterMap::value_type(PacketType::VarDump, &VarDump)); |
63 |
CMap.insert(CounterMap::value_type(PacketType::ArrDump, &ArrDump)); |
CMap.insert(CounterMap::value_type(PacketType::ArrDump, &ArrDump)); |
64 |
CMap.insert(CounterMap::value_type(PacketType::TabDump, &TabDump)); |
CMap.insert(CounterMap::value_type(PacketType::TabDump, &TabDump)); |
65 |
CMap.insert(CounterMap::value_type(PacketType::Tmtc, &Tmtc)); |
CMap.insert(CounterMap::value_type(PacketType::Tmtc, &Tmtc)); |
66 |
CMap.insert(CounterMap::value_type(PacketType::Mcmd, &Mcmd)); |
CMap.insert(CounterMap::value_type(PacketType::Mcmd, &Mcmd)); |
67 |
CMap.insert(CounterMap::value_type(PacketType::HA_Header_E5, &HA_Header_E5)); |
CMap.insert(CounterMap::value_type(PacketType::HA_Header_E5, &HA_Header_E5)); |
68 |
} |
} |
69 |
|
|