store also difference in local Y
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDfoChip.h
1 #ifndef ALIITSONLINESPDFOCHIP_H
2 #define ALIITSONLINESPDFOCHIP_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 /////////////////////////////////////////////////////////////////
10 // Author: A. Mastroserio                                      //
11 // This class is the container for FastOR online calibration.  //
12 //                                                             //
13 /////////////////////////////////////////////////////////////////
14
15 #include <TObject.h>
16
17 class TObjArray;
18 class AliITSOnlineSPDfoChipConfig;
19
20 class AliITSOnlineSPDfoChip : public TObject{
21
22  public:
23   AliITSOnlineSPDfoChip();//ctor
24   AliITSOnlineSPDfoChip(Short_t nparams); 
25   
26   virtual ~AliITSOnlineSPDfoChip(); //dctor
27
28   // SETTERS
29   void SetActiveHS(Int_t hs)               {fActiveHS=hs;}
30   void SetChipId(Int_t chipId)             {fChipId=chipId;}
31   void SetDACParameter(Int_t i, UShort_t par) {fDACparams[i] = par;}
32   void AddMeasurement(AliITSOnlineSPDfoChipConfig *ChipConfiginfo);
33
34   // GETTERS
35   Short_t GetActiveHS() const                 {return fActiveHS;}
36   Short_t GetChipId()  const                  {return fChipId;} 
37   Short_t GetNumberOfDACParams() const        {return fNumDACparams;}
38   Short_t GetDACParameters(Int_t ipar)  const {return fDACparams[ipar];}
39   Int_t GetNumberOfChipConfigs() const        {return fNumChipConfigs;} 
40   TObjArray* GetChipConfigInfo() const        {return fChipConfigArray;}
41    
42   void PrintInfo();              // prints the container content
43   
44  protected:
45   Short_t     fActiveHS;         //number of the activated HS
46   Short_t     fChipId;           //id number of the chip
47   Int_t       fNumDACparams;     //number of DAC parameters to be considered 
48   Short_t     fNumChipConfigs;   //number of ChipConfigs used in the chip     
49   Short_t     *fDACparams;       //[fNumDACparams] 
50   TObjArray   *fChipConfigArray; // array of ChipConfigs in the chip
51
52   private:
53   AliITSOnlineSPDfoChip(const AliITSOnlineSPDfoChip &c);
54   AliITSOnlineSPDfoChip& operator= (const AliITSOnlineSPDfoChip& c);
55
56     ClassDef(AliITSOnlineSPDfoChip,1)
57   };
58     
59 #endif