/[PAMELA software]/yoda/event/EventCounter.h
ViewVC logotype

Diff of /yoda/event/EventCounter.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by kusanagi, Thu Jul 29 16:18:54 2004 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.h,v $   * $Source: /home/cvsmanager/yoda/event/EventCounter.h,v $
3   * $Id: EventCounter.h,v 1.4 2004/07/08 12:31:22 kusanagi Exp $   * $Id: EventCounter.h,v 5.0 2005/08/29 09:45:48 Maurizio Nagni Exp $
4   * $Author: kusanagi $   * $Author: Maurizio Nagni $
5   *   *
6   * Header file for the EventCounter class.   * Header file for the EventCounter class.
7   */   */
# Line 9  Line 9 
9  #define EVENTCOUNTER_H  #define EVENTCOUNTER_H
10    
11  #include <map>  #include <map>
12  //#include <root/TObject.h>  #include "Exception.h"
13  #include <TObject.h> //Substituted by Maurizio 05 Feb 2004  #include "PacketType.h"
14    #include <TObject.h>
 #include "PscuHeader.h"  
15    
16  namespace pamela {  namespace pamela {
17    /**    /**
# Line 28  namespace pamela { Line 27  namespace pamela {
27      int CalibCalPulse1;      int CalibCalPulse1;
28      int CalibCalPulse2;      int CalibCalPulse2;
29      int Physics;      int Physics;
30      int CalibTrkBoth;      int CalibTrk1;
31      int Calib_Trk1;      int CalibTrk2;
32      int Calib_Trk2;      int CalibCal;
33      int Calib_Cal;      int CalibTof;
34      int Calib_Trd;      int CalibS4;
35      int Calib_Tof;      int CalibCalPed;
36      int Calib_S4;      int Calib1_Ac1;
37      int Calib_CalPed;      int Calib1_Ac2;
38      int Calib_Ac;      int Calib2_Ac1;
39      int Run_Header;      int Calib2_Ac2;
40      int Run_Trailer;      int RunHeader;
41        int RunTrailer;
42      int CalibHeader;      int CalibHeader;
43      int CalibTrailer;      int CalibTrailer;
44      int InitHeader;      int InitHeader;
45      int InitTrailer;      int InitTrailer;
     int EventTrk;  
     int TestTrk;  
46      int Log;      int Log;
47      int VarDump;      int VarDump;
48      int ArrDump;      int ArrDump;
# Line 52  namespace pamela { Line 50  namespace pamela {
50      int Tmtc;      int Tmtc;
51      int Mcmd;      int Mcmd;
52      int ForcedFECmd;      int ForcedFECmd;
53      int AcInit;      int Ac1Init;
54      int CalInit;      int CalInit;
55      int TrkInit;      int TrkInit;
56      int TofInit;      int TofInit;
57      int TrgInit;      int TrgInit;
58        int NdInit;
59        int S4Init;
60        int Ac2Init;
61        int CalAlarm;
62        int AcAlarm;
63        int TrkAlarm;
64        int TrgAlarm;
65        int TofAlarm;
66        int S4Alarm;
67        int TsbT;
68        int TsbB;
69    
70      typedef std::map<const pamela::PacketType *, int *> CounterMap;      typedef std::map<const pamela::PacketType *, int *> CounterMap;
71      CounterMap CMap; //!      CounterMap CMap; //!
72        
73    public:    public:
74      EventCounter(int = 0);      EventCounter(int = 0);
75      /** Get the run number for the last read event of this type. */      /** Get the run number for the last read event of this type. */
76      int Get(pamela::PacketType const *) const;      int getPscu() const { return Pscu; };
77        /** Get the run number for the last read event of this type. */
78        int Get(pamela::PacketType const *) const throw (NotExistingCounterException);
79      /** Get the run number for the next event of this type. */      /** Get the run number for the next event of this type. */
80      int Next(pamela::PacketType const *) const;      int Next(pamela::PacketType const *) const throw (NotExistingCounterException);
81      int GetRunNumber(void) const { return RunNumber; }      int GetRunNumber(void) const { return RunNumber; }
82      void Increment(pamela::PacketType const *);      void Increment(pamela::PacketType const *) throw (NotExistingCounterException);
83      void PrintCounters() const ;      void PrintCounters() const ;
84      ClassDef(EventCounter, 1)      ClassDef(EventCounter, 5)
85    };    };
86  }  }
87    
88  #endif /* EVENTCOUNTER_H */  #endif /* EVENTCOUNTER_H */
89    
90    

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

  ViewVC Help
Powered by ViewVC 1.1.23