]>
Commit | Line | Data |
---|---|---|
286382a3 | 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> | |
14374702 | 17 | #include <TBits.h> |
286382a3 | 18 | |
19 | 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 | 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;} | |
14374702 | 33 | void SetActiveChipsAndHS(UInt_t hs, UInt_t chip) {fActiveChipsAndHS.SetBitNumber(10*hs+chip);} |
286382a3 | 34 | |
35 | // GETTERS | |
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;} | |
40 | ||
41 | UShort_t GetNumDACindex() const {return fNumDACindex;} | |
42 | Short_t GetDACindex(UShort_t id) const; // returns -1 if ID not present | |
43 | ||
44 | TArrayS GetDACIndexArray() const {return fDACindex;} | |
45 | ||
14374702 | 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;} | |
49 | ||
286382a3 | 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 | |
14374702 | 58 | TBits fActiveChipsAndHS; |
286382a3 | 59 | |
14374702 | 60 | ClassDef(AliITSOnlineSPDfoInfo,2) |
286382a3 | 61 | }; |
62 | ||
63 | #endif |