/[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.0 by kusanagi, Tue Sep 21 20:49:57 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 1.6 2004/09/21 20:23:37 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>  
13  #include <TObject.h> //Substituted by Maurizio 05 Feb 2004  #include <TObject.h> //Substituted by Maurizio 05 Feb 2004
14    
15  #include "PscuHeader.h"  #include "PscuHeader.h"
# Line 45  namespace pamela { Line 45  namespace pamela {
45      int InitTrailer;      int InitTrailer;
46      int EventTrk;      int EventTrk;
47      int TestTrk;      int TestTrk;
48        int TestTof;
49      int Log;      int Log;
50      int VarDump;      int VarDump;
51      int ArrDump;      int ArrDump;
# Line 57  namespace pamela { Line 58  namespace pamela {
58      int TrkInit;      int TrkInit;
59      int TofInit;      int TofInit;
60      int TrgInit;      int TrgInit;
61        int CalAlarm;
62        int AcAlarm;
63        int TrkAlarm;
64        int TrgAlarm;
65        int TofAlarm;
66    
67      typedef std::map<const pamela::PacketType *, int *> CounterMap;      typedef std::map<const pamela::PacketType *, int *> CounterMap;
68      CounterMap CMap; //!      CounterMap CMap; //!
69        
70    public:    public:
71      EventCounter(int = 0);      EventCounter(int = 0);
72      /** Get the run number for the last read event of this type. */      /** Get the run number for the last read event of this type. */
73        int getPscu() const { return Pscu; };
74        /** Get the run number for the last read event of this type. */
75      int Get(pamela::PacketType const *) const;      int Get(pamela::PacketType const *) const;
76      /** Get the run number for the next event of this type. */      /** Get the run number for the next event of this type. */
77      int Next(pamela::PacketType const *) const;      int Next(pamela::PacketType const *) const;

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

  ViewVC Help
Powered by ViewVC 1.1.23