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 */
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 ////////////////////////////////////////////////////////////////
19 class AliITSOnlineSPDfoInfo : public TObject {
22 AliITSOnlineSPDfoInfo();
23 virtual ~AliITSOnlineSPDfoInfo();
25 virtual void ClearThis();
26 virtual void AddDACindex(Short_t index);
29 virtual void SetRunNumber(UInt_t val) {fRunNumber=val;}
30 virtual void SetRouter(UShort_t val) {fRouter=val;}
31 virtual void SetNumTriggers(UInt_t val){fNumTriggers=val;}
32 virtual void SetDBversion(Int_t val) {fDBversion=val;}
33 void SetActiveChipsAndHS(UInt_t hs, UInt_t chip) {fActiveChipsAndHS.SetBitNumber(10*hs+chip);}
36 UInt_t GetRunNumber() const {return fRunNumber;}
37 UShort_t GetRouter() const {return fRouter;}
38 UInt_t GetNumTriggers() const {return fNumTriggers;}
39 Int_t GetDBversion() const {return fDBversion;}
41 UShort_t GetNumDACindex() const {return fNumDACindex;}
42 Short_t GetDACindex(UShort_t id) const; // returns -1 if ID not present
44 TArrayS GetDACIndexArray() const {return fDACindex;}
46 Bool_t IsActiveHS(UInt_t hs) const ;
47 Bool_t IsActiveChip(UInt_t hs, UInt_t chip) const;
48 TBits GetActiveChipsAndHS() const {return fActiveChipsAndHS;}
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
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;
60 ClassDef(AliITSOnlineSPDfoInfo,2)