]>
Commit | Line | Data |
---|---|---|
b15de2d2 | 1 | #ifndef ALI_ITS_ONLINESPDSCANINFO_H |
2 | #define ALI_ITS_ONLINESPDSCANINFO_H | |
3 | ||
4 | ///////////////////////////////////////////////////////////////// | |
5 | // Author: Henrik Tydesjo // | |
6 | // This class is used as a container online. // | |
7 | // It holds information needed for a scan. // | |
8 | // This class should only be used through the interface of the // | |
9 | // AliITSOnlineSPDscan class. // | |
10 | ///////////////////////////////////////////////////////////////// | |
11 | ||
12 | #include <TObject.h> | |
13 | #include <TArrayI.h> | |
14 | ||
15 | class AliITSOnlineSPDscanInfo : public TObject { | |
16 | ||
17 | public: | |
18 | AliITSOnlineSPDscanInfo(); | |
19 | virtual ~AliITSOnlineSPDscanInfo(); | |
20 | ||
21 | virtual UInt_t AddScanStep(); // returns the index (nsi) of the added step | |
22 | virtual void ClearThis(); | |
23 | // SET METHODS *********************************** | |
24 | void SetType(UInt_t val) {fType=val;} | |
25 | void SetRunNr(UInt_t val) {fRunNr=val;} | |
26 | void SetRouterNr(UInt_t val) {fRouterNr=val;} | |
27 | void SetTriggers(UInt_t nsi, UInt_t val); | |
28 | void SetChipPresent(UInt_t hs, UInt_t chipi, Bool_t val) | |
29 | {fChipPresent[hs*10+chipi]=val;} | |
30 | void SetRowStart(UInt_t val){fRowStart=val;} | |
31 | void SetRowEnd(UInt_t val){fRowEnd=val;} | |
32 | void SetDacStart(UInt_t val){fDacStart=val;} | |
33 | void SetDacEnd(UInt_t val){fDacEnd=val;} | |
34 | void SetDacStep(UInt_t val){fDacStep=val;} | |
35 | ||
36 | void IncrementTriggers(UInt_t nsi); | |
37 | ||
38 | // GET METHODS *********************************** | |
39 | UInt_t GetNSteps() const {return fNSteps;} | |
40 | UInt_t GetType() const {return fType;} | |
41 | UInt_t GetRunNr() const {return fRunNr;} | |
42 | UInt_t GetRouterNr() const {return fRouterNr;} | |
43 | UInt_t GetTriggers(UInt_t nsi) const ; | |
44 | Bool_t GetChipPresent(UInt_t hs, UInt_t chipi) const {return fChipPresent[hs*10+chipi];} | |
45 | UInt_t GetRowStart() const {return fRowStart;} | |
46 | UInt_t GetRowEnd() const {return fRowEnd;} | |
47 | UInt_t GetDacStart() const {return fDacStart;} | |
48 | UInt_t GetDacEnd() const {return fDacEnd;} | |
49 | UInt_t GetDacStep() const {return fDacStep;} | |
50 | ||
51 | protected: | |
52 | UInt_t fType; // type of calibration scan | |
53 | UInt_t fRunNr; // run nr | |
54 | UInt_t fRouterNr; // router nr | |
55 | UInt_t fNSteps; // nr of s-curve steps | |
56 | TArrayI fTriggers; // number of triggers for the different steps of the scan | |
57 | Bool_t fChipPresent[60]; // which chips are present | |
58 | UInt_t fRowStart; // row start | |
59 | UInt_t fRowEnd; // row end | |
60 | UInt_t fDacStep; // dac step | |
61 | UInt_t fDacStart; // dac start | |
62 | UInt_t fDacEnd; // dac end | |
63 | ||
64 | ClassDef(AliITSOnlineSPDscanInfo,1) | |
65 | }; | |
66 | ||
67 | #endif |