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.4 2009/08/04 13:58:16 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. |
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 { |
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 |
// |
// |
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 |
|
|
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. */ |
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 |
|
|