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 */
9 /////////////////////////////////////////////////////////////////
10 // Author: A. Mastroserio //
11 // This class is the container for FastOR online calibration. //
13 /////////////////////////////////////////////////////////////////
18 class AliITSOnlineSPDfoChipConfig;
20 class AliITSOnlineSPDfoChip : public TObject{
23 AliITSOnlineSPDfoChip();//ctor
24 AliITSOnlineSPDfoChip(Short_t nparams);
26 virtual ~AliITSOnlineSPDfoChip(); //dctor
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);
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;}
42 void PrintInfo(); // prints the container content
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
53 AliITSOnlineSPDfoChip(const AliITSOnlineSPDfoChip &c);
54 AliITSOnlineSPDfoChip& operator= (const AliITSOnlineSPDfoChip& c);
56 ClassDef(AliITSOnlineSPDfoChip,1)