Line data Source code
1 : #ifndef ALI_ITS_ONLINESPDPHYSINFO_H
2 : #define ALI_ITS_ONLINESPDPHYSINFO_H
3 :
4 : /////////////////////////////////////////////////////////////////
5 : // Author: Henrik Tydesjo //
6 : // This class is used as a container online. //
7 : // It holds information needed for a physics run. //
8 : // This class should only be used through the interface of the //
9 : // AliITSOnlineSPDphys class. //
10 : /////////////////////////////////////////////////////////////////
11 :
12 : #include <TObject.h>
13 : #include <TArrayI.h>
14 :
15 0 : class AliITSOnlineSPDphysInfo : public TObject {
16 :
17 : public:
18 : AliITSOnlineSPDphysInfo();
19 : virtual ~AliITSOnlineSPDphysInfo();
20 :
21 : virtual void ClearThis();
22 : // SET METHODS ***********************************
23 : void AddRunNr(UInt_t val);
24 0 : void SetEqNr(UInt_t val) {fEqNr=val;}
25 0 : void SetNrEvents(UInt_t val) {fNrEvents=val;}
26 : void AddNrEvents(Int_t val);
27 0 : void IncrementNrEvents() {fNrEvents++;}
28 :
29 : // GET METHODS ***********************************
30 0 : UInt_t GetNrRuns() const {return fNrRuns;}
31 : UInt_t GetRunNr(UInt_t posi) const ;
32 0 : UInt_t GetEqNr() const {return fEqNr;}
33 0 : UInt_t GetNrEvents() const {return fNrEvents;}
34 :
35 : protected:
36 : UInt_t fNrRuns; // nr of runs used to fill hitmap
37 : TArrayI fRunNrs; // list of run nrs for the hitmap
38 : UInt_t fEqNr; // eq nr
39 : UInt_t fNrEvents; // number of events
40 :
41 116 : ClassDef(AliITSOnlineSPDphysInfo,1)
42 : };
43 :
44 : #endif
|