/[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.7 by kusanagi, Wed Feb 9 22:24:33 2005 UTC revision 5.1 by kusanagi, Sat Feb 4 12:37:43 2006 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 2.6 2005/01/29 00:26:41 kusanagi Exp $   * $Id: EventCounter.cpp,v 5.0 2005/08/29 09:45:48 Maurizio Nagni Exp $
4   * $Author: kusanagi $   * $Author: Maurizio Nagni $
5   *   *
6   * Implementation of the EventCounter class.   * Implementation of the EventCounter class.
7   */   */
# Line 27  EventCounter::EventCounter(int run): Line 27  EventCounter::EventCounter(int run):
27    CalibCalPulse1(0),    CalibCalPulse1(0),
28    CalibCalPulse2(0),    CalibCalPulse2(0),
29    Physics(0),    Physics(0),
   CalibTrkBoth(0),  
30    CalibTrk1(0),    CalibTrk1(0),
31    CalibTrk2(0),    CalibTrk2(0),
   CalibTrd(0),  
32    CalibTof(0),    CalibTof(0),
33    CalibS4(0),    CalibS4(0),
34    CalibCalPed(0),    CalibCalPed(0),
# Line 44  EventCounter::EventCounter(int run): Line 42  EventCounter::EventCounter(int run):
42    CalibTrailer(0),    CalibTrailer(0),
43    InitHeader(0),    InitHeader(0),
44    InitTrailer(0),    InitTrailer(0),
   EventTrk(0),  
   TestTrk(0),  
   TestTof(0),  
45    Log(0),    Log(0),
46    VarDump(0),    VarDump(0),
47    ArrDump(0),    ArrDump(0),
# Line 68  EventCounter::EventCounter(int run): Line 63  EventCounter::EventCounter(int run):
63    TrgAlarm(0),    TrgAlarm(0),
64    TofAlarm(0),    TofAlarm(0),
65    S4Alarm(0),    S4Alarm(0),
66      TsbT(0),
67      TsbB(0),
68    RunNumber(run) {    RunNumber(run) {
69      CMap.insert(CounterMap::value_type(PacketType::Pscu,            &Pscu));      CMap.insert(CounterMap::value_type(PacketType::Pscu,            &Pscu));
70      CMap.insert(CounterMap::value_type(PacketType::PhysEndRun,      &PhysEndRun));      CMap.insert(CounterMap::value_type(PacketType::PhysEndRun,      &PhysEndRun));
71      CMap.insert(CounterMap::value_type(PacketType::CalibCalPulse1,  &CalibCalPulse1));      CMap.insert(CounterMap::value_type(PacketType::CalibCalPulse1,  &CalibCalPulse1));
72      CMap.insert(CounterMap::value_type(PacketType::CalibCalPulse2,  &CalibCalPulse2));      CMap.insert(CounterMap::value_type(PacketType::CalibCalPulse2,  &CalibCalPulse2));
73      CMap.insert(CounterMap::value_type(PacketType::Physics,         &Physics));      CMap.insert(CounterMap::value_type(PacketType::Physics,         &Physics));
     CMap.insert(CounterMap::value_type(PacketType::CalibTrkBoth,    &CalibTrkBoth));  
74      CMap.insert(CounterMap::value_type(PacketType::CalibTrk1,       &CalibTrk1));      CMap.insert(CounterMap::value_type(PacketType::CalibTrk1,       &CalibTrk1));
75      CMap.insert(CounterMap::value_type(PacketType::CalibTrk2,       &CalibTrk2));      CMap.insert(CounterMap::value_type(PacketType::CalibTrk2,       &CalibTrk2));
     CMap.insert(CounterMap::value_type(PacketType::CalibTrd,        &CalibTrd));  
76      CMap.insert(CounterMap::value_type(PacketType::CalibTof,        &CalibTof));      CMap.insert(CounterMap::value_type(PacketType::CalibTof,        &CalibTof));
77      CMap.insert(CounterMap::value_type(PacketType::CalibS4,         &CalibS4));      CMap.insert(CounterMap::value_type(PacketType::CalibS4,         &CalibS4));
78      CMap.insert(CounterMap::value_type(PacketType::CalibCalPed,     &CalibCalPed));      CMap.insert(CounterMap::value_type(PacketType::CalibCalPed,     &CalibCalPed));
# Line 91  EventCounter::EventCounter(int run): Line 86  EventCounter::EventCounter(int run):
86      CMap.insert(CounterMap::value_type(PacketType::CalibTrailer,    &CalibTrailer));        CMap.insert(CounterMap::value_type(PacketType::CalibTrailer,    &CalibTrailer));  
87      CMap.insert(CounterMap::value_type(PacketType::InitHeader,      &InitHeader));      CMap.insert(CounterMap::value_type(PacketType::InitHeader,      &InitHeader));
88      CMap.insert(CounterMap::value_type(PacketType::InitTrailer,     &InitTrailer));        CMap.insert(CounterMap::value_type(PacketType::InitTrailer,     &InitTrailer));  
     CMap.insert(CounterMap::value_type(PacketType::EventTrk,        &EventTrk));    
     CMap.insert(CounterMap::value_type(PacketType::TestTrk,         &TestTrk));    
     CMap.insert(CounterMap::value_type(PacketType::TestTof,         &TestTof));    
89      CMap.insert(CounterMap::value_type(PacketType::Log,             &Log));      CMap.insert(CounterMap::value_type(PacketType::Log,             &Log));
90      CMap.insert(CounterMap::value_type(PacketType::VarDump,         &VarDump));      CMap.insert(CounterMap::value_type(PacketType::VarDump,         &VarDump));
91      CMap.insert(CounterMap::value_type(PacketType::ArrDump,         &ArrDump));      CMap.insert(CounterMap::value_type(PacketType::ArrDump,         &ArrDump));
# Line 114  EventCounter::EventCounter(int run): Line 106  EventCounter::EventCounter(int run):
106      CMap.insert(CounterMap::value_type(PacketType::TrgAlarm,        &TrgAlarm));      CMap.insert(CounterMap::value_type(PacketType::TrgAlarm,        &TrgAlarm));
107      CMap.insert(CounterMap::value_type(PacketType::TofAlarm,        &TofAlarm));      CMap.insert(CounterMap::value_type(PacketType::TofAlarm,        &TofAlarm));
108      CMap.insert(CounterMap::value_type(PacketType::S4Alarm,         &S4Alarm));      CMap.insert(CounterMap::value_type(PacketType::S4Alarm,         &S4Alarm));
109        CMap.insert(CounterMap::value_type(PacketType::TsbT,            &TsbT));
110        CMap.insert(CounterMap::value_type(PacketType::TsbB,            &TsbB));
111  }  }
112    
113  /**  /**
# Line 182  void EventCounter::PrintCounters() const Line 176  void EventCounter::PrintCounters() const
176    logger->info(oss.str().c_str());    logger->info(oss.str().c_str());
177    }    }
178  }  }
179            

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

  ViewVC Help
Powered by ViewVC 1.1.23