/[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 2.4 by kusanagi, Thu Dec 16 17:32:46 2004 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 2.3 2004/12/09 08:47:42 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Header file for the EventCounter class.   * Header file for the EventCounter class.
# 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"
 #include <TObject.h> //Substituted by Maurizio 05 Feb 2004  
   
13  #include "PscuHeader.h"  #include "PscuHeader.h"
14    
15  namespace pamela {  namespace pamela {
# Line 36  namespace pamela { Line 34  namespace pamela {
34      int Calib_Tof;      int Calib_Tof;
35      int Calib_S4;      int Calib_S4;
36      int Calib_CalPed;      int Calib_CalPed;
37      int Calib_Ac;      int Calib1_Ac1;
38        int Calib1_Ac2;
39        int Calib2_Ac1;
40        int Calib2_Ac2;
41      int Run_Header;      int Run_Header;
42      int Run_Trailer;      int Run_Trailer;
43      int CalibHeader;      int CalibHeader;
# Line 45  namespace pamela { Line 46  namespace pamela {
46      int InitTrailer;      int InitTrailer;
47      int EventTrk;      int EventTrk;
48      int TestTrk;      int TestTrk;
49        int TestTof;
50      int Log;      int Log;
51      int VarDump;      int VarDump;
52      int ArrDump;      int ArrDump;
# Line 52  namespace pamela { Line 54  namespace pamela {
54      int Tmtc;      int Tmtc;
55      int Mcmd;      int Mcmd;
56      int ForcedFECmd;      int ForcedFECmd;
57      int AcInit;      int Ac1Init;
58      int CalInit;      int CalInit;
59      int TrkInit;      int TrkInit;
60      int TofInit;      int TofInit;
61      int TrgInit;      int TrgInit;
62        int NdInit;
63        int S4Init;
64        int Ac2Init;
65        int CalAlarm;
66        int AcAlarm;
67        int TrkAlarm;
68        int TrgAlarm;
69        int TofAlarm;
70        int S4Alarm;
71    
72      typedef std::map<const pamela::PacketType *, int *> CounterMap;      typedef std::map<const pamela::PacketType *, int *> CounterMap;
73      CounterMap CMap; //!      CounterMap CMap; //!
74        
75    public:    public:
76      EventCounter(int = 0);      EventCounter(int = 0);
77      /** Get the run number for the last read event of this type. */      /** Get the run number for the last read event of this type. */
78      int Get(pamela::PacketType const *) const;      int getPscu() const { return Pscu; };
79        /** Get the run number for the last read event of this type. */
80        int Get(pamela::PacketType const *) const throw (NotExistingCounterException);
81      /** Get the run number for the next event of this type. */      /** Get the run number for the next event of this type. */
82      int Next(pamela::PacketType const *) const;      int Next(pamela::PacketType const *) const throw (NotExistingCounterException);
83      int GetRunNumber(void) const { return RunNumber; }      int GetRunNumber(void) const { return RunNumber; }
84      void Increment(pamela::PacketType const *);      void Increment(pamela::PacketType const *) throw (NotExistingCounterException);
85      void PrintCounters() const ;      void PrintCounters() const ;
86      ClassDef(EventCounter, 1)      ClassDef(EventCounter, 1)
87    };    };
88  }  }
89    
90  #endif /* EVENTCOUNTER_H */  #endif /* EVENTCOUNTER_H */
91    
92    

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

  ViewVC Help
Powered by ViewVC 1.1.23