1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvsmanager/yoda/event/EventCounter.h,v $ |
* $Source: /home/cvsmanager/yoda/event/EventCounter.h,v $ |
3 |
* $Id: EventCounter.h,v 2.4 2004/12/16 17:32:46 kusanagi Exp $ |
* $Id: EventCounter.h,v 6.0 2006/02/07 17:11:07 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Header file for the EventCounter class. |
* Header file for the EventCounter class. |
10 |
|
|
11 |
#include <map> |
#include <map> |
12 |
#include "Exception.h" |
#include "Exception.h" |
13 |
#include "PscuHeader.h" |
#include "PacketType.h" |
14 |
|
#include <TObject.h> |
15 |
|
|
16 |
namespace pamela { |
namespace pamela { |
17 |
/** |
/** |
27 |
int CalibCalPulse1; |
int CalibCalPulse1; |
28 |
int CalibCalPulse2; |
int CalibCalPulse2; |
29 |
int Physics; |
int Physics; |
|
int CalibTrkBoth; |
|
30 |
int CalibTrk1; |
int CalibTrk1; |
31 |
int CalibTrk2; |
int CalibTrk2; |
32 |
int CalibCal; |
int CalibCal; |
|
int CalibTrd; |
|
33 |
int CalibTof; |
int CalibTof; |
34 |
int CalibS4; |
int CalibS4; |
35 |
int CalibCalPed; |
int CalibCalPed; |
44 |
int InitHeader; |
int InitHeader; |
45 |
int InitTrailer; |
int InitTrailer; |
46 |
int EventTrk; |
int EventTrk; |
|
int TestTrk; |
|
|
int TestTof; |
|
47 |
int Log; |
int Log; |
48 |
int VarDump; |
int VarDump; |
49 |
int ArrDump; |
int ArrDump; |
65 |
int TrgAlarm; |
int TrgAlarm; |
66 |
int TofAlarm; |
int TofAlarm; |
67 |
int S4Alarm; |
int S4Alarm; |
68 |
|
int TsbT; |
69 |
|
int TsbB; |
70 |
|
|
71 |
typedef std::map<const pamela::PacketType *, int *> CounterMap; |
typedef std::map<const pamela::PacketType *, int *> CounterMap; |
72 |
CounterMap CMap; //! |
CounterMap CMap; //! |
82 |
int GetRunNumber(void) const { return RunNumber; } |
int GetRunNumber(void) const { return RunNumber; } |
83 |
void Increment(pamela::PacketType const *) throw (NotExistingCounterException); |
void Increment(pamela::PacketType const *) throw (NotExistingCounterException); |
84 |
void PrintCounters() const ; |
void PrintCounters() const ; |
85 |
ClassDef(EventCounter, 2) |
ClassDef(EventCounter, 6) |
86 |
}; |
}; |
87 |
} |
} |
88 |
|
|