]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSOnlineSPDscanInfo.h
Updates on Lambda_c decays (S. Masciocchi)
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDscanInfo.h
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     SetHalfStaveScanned(UInt_t val, Bool_t b);
28   void     SetDataFormat(UInt_t val) {fDataFormat=val;}
29   void     SetTriggers(UInt_t nsi, UInt_t val);
30   void     SetChipPresent(UInt_t hs, UInt_t chipi, Bool_t val) {fChipPresent[hs*10+chipi]=val;}
31   void     SetRowStart(UInt_t val){fRowStart=val;}
32   void     SetRowEnd(UInt_t val){fRowEnd=val;}
33   void     SetDacStart(UInt_t val){fDacStart=val;}
34   void     SetDacEnd(UInt_t val){fDacEnd=val;}  
35   void     SetDacStep(UInt_t val){fDacStep=val;}
36
37   void     IncrementTriggers(UInt_t nsi);
38
39   // GET METHODS ***********************************
40   UInt_t   GetNSteps() const {return fNSteps;}
41   UInt_t   GetType() const {return fType;}
42   UInt_t   GetRunNr() const {return fRunNr;}
43   UInt_t   GetRouterNr() const {return fRouterNr;}
44   Bool_t   GetHalfStaveScanned(UInt_t val);
45   UInt_t   GetDataFormat() const {return fDataFormat;}
46   UInt_t   GetTriggers(UInt_t nsi) const ;
47   Bool_t   GetChipPresent(UInt_t hs, UInt_t chipi) const {return fChipPresent[hs*10+chipi];}
48   UInt_t   GetRowStart() const {return fRowStart;}
49   UInt_t   GetRowEnd() const {return fRowEnd;}
50   UInt_t   GetDacStart() const {return fDacStart;}
51   UInt_t   GetDacEnd() const {return fDacEnd;}
52   UInt_t   GetDacStep() const {return fDacStep;}
53
54  protected:
55   UInt_t   fType;                 // type of calibration scan
56   UInt_t   fDataFormat;           // data format (normal or histogram)
57   UInt_t   fRunNr;                // run nr
58   UInt_t   fRouterNr;             // router nr
59   Bool_t   fHalfStaveScanned[6];  // half stave scanned
60   UInt_t   fNSteps;               // nr of s-curve steps
61   TArrayI  fTriggers;             // number of triggers for the different steps of the scan
62   Bool_t   fChipPresent[60];      // which chips are present
63   UInt_t   fRowStart;             // row start
64   UInt_t   fRowEnd;               // row end
65   UInt_t   fDacStep;              // dac step
66   UInt_t   fDacStart;             // dac start
67   UInt_t   fDacEnd;               // dac end
68
69   ClassDef(AliITSOnlineSPDscanInfo,1)
70     };
71     
72 #endif