--- yoda/event/EventCounter.h 2004/07/06 13:31:14 1.2 +++ yoda/event/EventCounter.h 2004/09/21 20:49:57 2.0 @@ -1,6 +1,6 @@ /** @file * $Source: /home/cvsmanager/yoda/event/EventCounter.h,v $ - * $Id: EventCounter.h,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $ + * $Id: EventCounter.h,v 1.6 2004/09/21 20:23:37 kusanagi Exp $ * $Author: kusanagi $ * * Header file for the EventCounter class. @@ -9,7 +9,7 @@ #define EVENTCOUNTER_H #include -//#include + #include //Substituted by Maurizio 05 Feb 2004 #include "PscuHeader.h" @@ -22,34 +22,56 @@ class EventCounter : public TObject { private: int RunNumber; /**< Run number */ - - // New Packets. + int Pscu; + int PhysEndRun; + int CalibCalPulse1; + int CalibCalPulse2; int Physics; - int Forced_Pkt; + 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 Alarm; - int Khb; + int CalibHeader; + int CalibTrailer; + int InitHeader; + int InitTrailer; + int EventTrk; + int TestTrk; + int TestTof; int Log; int VarDump; int ArrDump; int TabDump; int Tmtc; int Mcmd; - int HA_Header_E5; + int ForcedFECmd; + int AcInit; + int CalInit; + int TrkInit; + int TofInit; + int TrgInit; + int CalAlarm; + int AcAlarm; + int TrkAlarm; + int TrgAlarm; + int TofAlarm; typedef std::map CounterMap; CounterMap CMap; //! + public: EventCounter(int = 0); /** 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; /** Get the run number for the next event of this type. */ int Next(pamela::PacketType const *) const;