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

Diff of /chewbacca/event/EventCounter.h

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

revision 1.4 by mocchiut, Tue Aug 4 13:58:16 2009 UTC revision 1.6 by mocchiut, Mon Jan 19 12:34:17 2015 UTC
# Line 1  Line 1 
1  /**     @file  /**     @file
2   * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/EventCounter.h,v $   * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/EventCounter.h,v $
3   * $Id: EventCounter.h,v 1.3 2009/07/29 15:47:20 mocchiut Exp $   * $Id: EventCounter.h,v 1.5 2010/02/11 09:02:15 mocchiut Exp $
4   * $Author: mocchiut $   * $Author: mocchiut $
5   *   *
6   * Header file for the EventCounter class.   * Header file for the EventCounter class.
# Line 20  namespace pamela { Line 20  namespace pamela {
20                    
21      public:      public:
22          mapval();          mapval();
23            ~mapval(){this->Clear();};
24          mapval(TString n, Int_t *i);          mapval(TString n, Int_t *i);
25          mapval(const mapval &val);                mapval(const mapval &val);      
26          //      Int_t fN; //          //      Int_t fN; //
27          Int_t *count; //!          Int_t *count; //!
28          TString name; //!          TString name; //!
29          void Clear(Option_t *t="") { t="";};          void Clear(Option_t *t="") { name.Clear(); name.Resize(0); count=0;};
30          mapval* GetMapVal(){return this;};          mapval* GetMapVal(){return this;};
31          ClassDef(mapval, 0);          ClassDef(mapval, 1);
32      };      };
33            
34      class mappa: public TObject {      class mappa: public TObject {
# Line 38  namespace pamela { Line 39  namespace pamela {
39                    
40      public:      public:
41          mappa();          mappa();
42            ~mappa(){this->Clear();};
43          void Clear(Option_t *t="");          void Clear(Option_t *t="");
44          void Delete(Option_t *t="");          void Delete(Option_t *t="");
45          //          //
# Line 47  namespace pamela { Line 49  namespace pamela {
49          mapval* Get(Int_t i){ return ((mapval*)val->At(i));};          mapval* Get(Int_t i){ return ((mapval*)val->At(i));};
50          Bool_t end(){ return fend;};          Bool_t end(){ return fend;};
51          void Set();          void Set();
52          ClassDef(mappa, 1);          ClassDef(mappa, 2);
53      };      };
54    
55    
# Line 111  namespace pamela { Line 113  namespace pamela {
113    
114    public:    public:
115      EventCounter(int = 0);      EventCounter(int = 0);
116        ~EventCounter(){this->Clear();};
117      /** Get the run number for the last read event of this type. */      /** Get the run number for the last read event of this type. */
118      int getPscu() const { return Pscu; };      int getPscu() const { return Pscu; };
119      /** Get the run number for the last read event of this type. */      /** Get the run number for the last read event of this type. */
# Line 120  namespace pamela { Line 123  namespace pamela {
123      int GetRunNumber(void) const { return RunNumber; }      int GetRunNumber(void) const { return RunNumber; }
124      void Increment(pamela::PacketType const *) throw (NotExistingCounterException);      void Increment(pamela::PacketType const *) throw (NotExistingCounterException);
125      void PrintCounters();      void PrintCounters();
126      ClassDef(EventCounter, 9)      void Clear(Option_t *t=""){CMap.Clear();};
127        ClassDef(EventCounter, 10)
128    };    };
129  }  }
130    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.23