]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSOnlineSPDphysInfo.h
Fixes for Savannah bug 72578.
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDphysInfo.h
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 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   void     SetEqNr(UInt_t val) {fEqNr=val;}
25   void     SetNrEvents(UInt_t val) {fNrEvents=val;}
26   void     AddNrEvents(Int_t val);
27   void     IncrementNrEvents() {fNrEvents++;}
28
29   // GET METHODS ***********************************
30   UInt_t   GetNrRuns() const {return fNrRuns;}
31   UInt_t   GetRunNr(UInt_t posi) const ;
32   UInt_t   GetEqNr() const {return fEqNr;}
33   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   ClassDef(AliITSOnlineSPDphysInfo,1)
42     };
43     
44 #endif