--- yoda/event/EventCounter.h 2004/09/21 20:49:57 2.0 +++ yoda/event/EventCounter.h 2005/03/06 04:33:01 4.0 @@ -1,6 +1,6 @@ -/** @file +/** @file * $Source: /home/cvsmanager/yoda/event/EventCounter.h,v $ - * $Id: EventCounter.h,v 1.6 2004/09/21 20:23:37 kusanagi Exp $ + * $Id: EventCounter.h,v 3.0 2005/03/04 15:54:11 kusanagi Exp $ * $Author: kusanagi $ * * Header file for the EventCounter class. @@ -9,9 +9,7 @@ #define EVENTCOUNTER_H #include - -#include //Substituted by Maurizio 05 Feb 2004 - +#include "Exception.h" #include "PscuHeader.h" namespace pamela { @@ -29,16 +27,19 @@ int CalibCalPulse2; int Physics; int CalibTrkBoth; - int Calib_Trk1; - int Calib_Trk2; - int Calib_Cal; - int Calib_Trd; - int Calib_Tof; - int Calib_S4; - int Calib_CalPed; - int Calib_Ac; - int Run_Header; - int Run_Trailer; + int CalibTrk1; + int CalibTrk2; + int CalibCal; + int CalibTrd; + int CalibTof; + int CalibS4; + int CalibCalPed; + int Calib1_Ac1; + int Calib1_Ac2; + int Calib2_Ac1; + int Calib2_Ac2; + int RunHeader; + int RunTrailer; int CalibHeader; int CalibTrailer; int InitHeader; @@ -53,16 +54,22 @@ int Tmtc; int Mcmd; int ForcedFECmd; - int AcInit; + int Ac1Init; int CalInit; int TrkInit; int TofInit; int TrgInit; + int NdInit; + int S4Init; + int Ac2Init; int CalAlarm; int AcAlarm; int TrkAlarm; int TrgAlarm; int TofAlarm; + int S4Alarm; + int TsbT; + int TsbB; typedef std::map CounterMap; CounterMap CMap; //! @@ -72,14 +79,16 @@ /** Get the run number for the last read event of this type. */ int getPscu() const { return Pscu; }; /** Get the run number for the last read event of this type. */ - int Get(pamela::PacketType const *) const; + int Get(pamela::PacketType const *) const throw (NotExistingCounterException); /** Get the run number for the next event of this type. */ - int Next(pamela::PacketType const *) const; + int Next(pamela::PacketType const *) const throw (NotExistingCounterException); int GetRunNumber(void) const { return RunNumber; } - void Increment(pamela::PacketType const *); + void Increment(pamela::PacketType const *) throw (NotExistingCounterException); void PrintCounters() const ; - ClassDef(EventCounter, 1) + ClassDef(EventCounter, 3) }; } #endif /* EVENTCOUNTER_H */ + +