Line data Source code
1 : #ifndef ALIITSONLINESPDFOINFO_H
2 : #define ALIITSONLINESPDFOINFO_H
3 : /* Copyright(c) 2008-2010, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 : /* $Id$ */
7 :
8 : ////////////////////////////////////////////////////////////////
9 : // Author: A. Mastroserio //
10 : // This class is used within the detector algorithm framework //
11 : // to collect information on how the scan was arranged. //
12 : ////////////////////////////////////////////////////////////////
13 :
14 :
15 : #include <TObject.h>
16 : #include <TArrayS.h>
17 : #include <TBits.h>
18 :
19 0 : class AliITSOnlineSPDfoInfo : public TObject {
20 :
21 : public:
22 : AliITSOnlineSPDfoInfo();
23 : virtual ~AliITSOnlineSPDfoInfo();
24 :
25 : virtual void ClearThis();
26 : virtual void AddDACindex(Short_t index);
27 :
28 : // SETTERS
29 0 : virtual void SetRunNumber(UInt_t val) {fRunNumber=val;}
30 0 : virtual void SetRouter(UShort_t val) {fRouter=val;}
31 0 : virtual void SetNumTriggers(UInt_t val){fNumTriggers=val;}
32 0 : virtual void SetDBversion(Int_t val) {fDBversion=val;}
33 0 : void SetActiveChipsAndHS(UInt_t hs, UInt_t chip) {fActiveChipsAndHS.SetBitNumber(10*hs+chip);}
34 :
35 : // GETTERS
36 0 : UInt_t GetRunNumber() const {return fRunNumber;}
37 0 : UShort_t GetRouter() const {return fRouter;}
38 0 : UInt_t GetNumTriggers() const {return fNumTriggers;}
39 0 : Int_t GetDBversion() const {return fDBversion;}
40 :
41 0 : UShort_t GetNumDACindex() const {return fNumDACindex;}
42 : Short_t GetDACindex(UShort_t id) const; // returns -1 if ID not present
43 :
44 0 : TArrayS GetDACIndexArray() const {return fDACindex;}
45 :
46 : Bool_t IsActiveHS(UInt_t hs) const ;
47 : Bool_t IsActiveChip(UInt_t hs, UInt_t chip) const;
48 0 : TBits GetActiveChipsAndHS() const {return fActiveChipsAndHS;}
49 :
50 : protected:
51 : UInt_t fRunNumber; // run number
52 : UShort_t fRouter; // router number (should be same as eq number)
53 : UInt_t fNumTriggers; // number of triggers sent for each scan step
54 : Int_t fDBversion; // global configuration db version
55 :
56 : UShort_t fNumDACindex; // number of DAC indices in TArrayI below
57 : TArrayS fDACindex; // list of DAC indices related to each DAC value
58 : TBits fActiveChipsAndHS;
59 :
60 116 : ClassDef(AliITSOnlineSPDfoInfo,2)
61 : };
62 :
63 : #endif
|