/[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 1.4 by kusanagi, Thu Jul 8 12:31:22 2004 UTC revision 1.5 by kusanagi, Thu Jul 29 16:18:53 2004 UTC
# Line 1  Line 1 
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.3 2004/07/06 14:07:24 kusanagi Exp $   * $Id: EventCounter.cpp,v 1.4 2004/07/08 12:31:22 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the EventCounter class.   * Implementation of the EventCounter class.
# Line 21  using namespace pamela; Line 21  using namespace pamela;
21  EventCounter::EventCounter(int run):  EventCounter::EventCounter(int run):
22    // New Packets.    // New Packets.
23    Pscu(0),    Pscu(0),
24      PhysEndRun(0),
25      CalibCalPulse1(0),
26      CalibCalPulse2(0),
27    Physics(0),    Physics(0),
28    Forced_Pkt(0),    CalibTrkBoth(0),
29    Calib_Trk1(0),    Calib_Trk1(0),
30    Calib_Trk2(0),    Calib_Trk2(0),
31    Calib_Cal(0),    Calib_Cal(0),
   Calib_CalPed(0),  
   Calib_Ac(0),  
32    Calib_Trd(0),    Calib_Trd(0),
33    Calib_Tof(0),    Calib_Tof(0),
34    Calib_S4(0),    Calib_S4(0),
35      Calib_CalPed(0),
36      Calib_Ac(0),
37    Run_Header(0),    Run_Header(0),
38    Run_Trailer(0),    Run_Trailer(0),
39    Alarm(0),    CalibHeader(0),
40    Khb(0),    CalibTrailer(0),
41      InitHeader(0),
42      InitTrailer(0),
43      EventTrk(0),
44      TestTrk(0),
45    Log(0),    Log(0),
46    VarDump(0),    VarDump(0),
47    ArrDump(0),    ArrDump(0),
48    TabDump(0),    TabDump(0),
49    Tmtc(0),    Tmtc(0),
50    Mcmd(0),    Mcmd(0),
51    HA_Header_E5(0),    ForcedFECmd(0),
52      AcInit(0),
53      CalInit(0),
54      TrkInit(0),
55      TofInit(0),
56      TrgInit(0),
57    RunNumber(run) {    RunNumber(run) {
58    CMap.insert(CounterMap::value_type(PacketType::Pscu,      &Pscu));      CMap.insert(CounterMap::value_type(PacketType::Pscu,            &Pscu));
59    CMap.insert(CounterMap::value_type(PacketType::Physics,   &Physics));      CMap.insert(CounterMap::value_type(PacketType::PhysEndRun,      &PhysEndRun));
60    CMap.insert(CounterMap::value_type(PacketType::ForcedPkt, &Forced_Pkt));      CMap.insert(CounterMap::value_type(PacketType::CalibCalPulse2,  &CalibCalPulse1));
61    CMap.insert(CounterMap::value_type(PacketType::CalibTrk1, &Calib_Trk1));      CMap.insert(CounterMap::value_type(PacketType::CalibCalPulse2,  &CalibCalPulse2));
62    CMap.insert(CounterMap::value_type(PacketType::CalibTrk2, &Calib_Trk2));      CMap.insert(CounterMap::value_type(PacketType::Physics,         &Physics));
63    CMap.insert(CounterMap::value_type(PacketType::CalibCal,  &Calib_Cal));      CMap.insert(CounterMap::value_type(PacketType::CalibTrkBoth,    &CalibTrkBoth));
64    CMap.insert(CounterMap::value_type(PacketType::CalibCalPed, &Calib_CalPed));      CMap.insert(CounterMap::value_type(PacketType::CalibTrk1,       &Calib_Trk1));
65    CMap.insert(CounterMap::value_type(PacketType::CalibAc,   &Calib_Ac));      CMap.insert(CounterMap::value_type(PacketType::CalibTrk2,       &Calib_Trk2));
66    CMap.insert(CounterMap::value_type(PacketType::CalibTrd,  &Calib_Trd));      CMap.insert(CounterMap::value_type(PacketType::CalibCal,        &Calib_Cal));
67    CMap.insert(CounterMap::value_type(PacketType::CalibTof,  &Calib_Tof));      CMap.insert(CounterMap::value_type(PacketType::CalibTrd,        &Calib_Trd));
68    CMap.insert(CounterMap::value_type(PacketType::CalibS4,   &Calib_S4));      CMap.insert(CounterMap::value_type(PacketType::CalibTof,        &Calib_Tof));
69    CMap.insert(CounterMap::value_type(PacketType::RunHeader, &Run_Header));      CMap.insert(CounterMap::value_type(PacketType::CalibS4,         &Calib_S4));
70    CMap.insert(CounterMap::value_type(PacketType::RunTrailer, &Run_Trailer));      CMap.insert(CounterMap::value_type(PacketType::CalibCalPed,     &Calib_CalPed));
71    CMap.insert(CounterMap::value_type(PacketType::Alarm,     &Alarm));      CMap.insert(CounterMap::value_type(PacketType::CalibAc,         &Calib_Ac));
72    CMap.insert(CounterMap::value_type(PacketType::Khb,       &Khb));      CMap.insert(CounterMap::value_type(PacketType::RunHeader,       &Run_Header));
73    CMap.insert(CounterMap::value_type(PacketType::Log,       &Log));      CMap.insert(CounterMap::value_type(PacketType::RunTrailer,      &Run_Trailer));
74    CMap.insert(CounterMap::value_type(PacketType::VarDump,   &VarDump));      CMap.insert(CounterMap::value_type(PacketType::CalibHeader,     &CalibHeader));
75    CMap.insert(CounterMap::value_type(PacketType::ArrDump,   &ArrDump));      CMap.insert(CounterMap::value_type(PacketType::CalibTrailer,    &CalibTrailer));  
76    CMap.insert(CounterMap::value_type(PacketType::TabDump,   &TabDump));      CMap.insert(CounterMap::value_type(PacketType::InitHeader,      &InitHeader));
77    CMap.insert(CounterMap::value_type(PacketType::Tmtc,      &Tmtc));      CMap.insert(CounterMap::value_type(PacketType::InitTrailer,     &InitTrailer));  
78    CMap.insert(CounterMap::value_type(PacketType::Mcmd,      &Mcmd));      CMap.insert(CounterMap::value_type(PacketType::EventTrk,        &EventTrk));  
79    CMap.insert(CounterMap::value_type(PacketType::HA_Header_E5, &HA_Header_E5));      CMap.insert(CounterMap::value_type(PacketType::TestTrk,         &TestTrk));  
80        CMap.insert(CounterMap::value_type(PacketType::Log,             &Log));
81        CMap.insert(CounterMap::value_type(PacketType::VarDump,         &VarDump));
82        CMap.insert(CounterMap::value_type(PacketType::ArrDump,         &ArrDump));
83        CMap.insert(CounterMap::value_type(PacketType::TabDump,         &TabDump));
84        CMap.insert(CounterMap::value_type(PacketType::Tmtc,            &Tmtc));
85        CMap.insert(CounterMap::value_type(PacketType::Mcmd,            &Mcmd));
86        CMap.insert(CounterMap::value_type(PacketType::ForcedFECmd,     &ForcedFECmd));
87        CMap.insert(CounterMap::value_type(PacketType::AcInit,          &AcInit));
88        CMap.insert(CounterMap::value_type(PacketType::CalInit,         &CalInit));
89        CMap.insert(CounterMap::value_type(PacketType::TrkInit,         &TrkInit));
90        CMap.insert(CounterMap::value_type(PacketType::TofInit,         &TofInit));
91        CMap.insert(CounterMap::value_type(PacketType::TrgInit,         &TrgInit));
92  }  }
93    
94  /**  /**

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23