Line data Source code
1 : #ifndef ALIITSGAINSSD_H
2 : #define ALIITSGAINSSD_H
3 :
4 : #include "TObjArray.h"
5 : #include "TArrayF.h"
6 :
7 : //////////////////////////////////////////////
8 : // Author: Enrico Fragiacomo
9 : // Date: 23/08/2007
10 : // //
11 : //////////////////////////////////////////////
12 :
13 : class AliITSGainSSD : public TObject {
14 :
15 : public:
16 :
17 : AliITSGainSSD();
18 : virtual ~AliITSGainSSD();
19 :
20 0 : void SetNGainP(Int_t n) { fGainP.Set(n); }
21 0 : void AddGainP(Int_t c, Float_t n) { fGainP.AddAt(n,c);}
22 0 : TArrayF GetGainP() const {return fGainP; }
23 0 : Float_t GetGainP(Int_t n) {return fGainP.At(n); }
24 0 : void SetNGainN(Int_t n) { fGainN.Set(n); }
25 0 : void AddGainN(Int_t c, Float_t n) { fGainN.AddAt(n,c);}
26 0 : TArrayF GetGainN() const {return fGainN; }
27 0 : Float_t GetGainN(Int_t n) {return fGainN.At(n); }
28 :
29 0 : void SetMod(UShort_t mod) {fMod = mod;}
30 0 : UShort_t GetMod() const { return fMod;}
31 :
32 : protected:
33 :
34 : UShort_t fMod; // module number (from 0 to 1535). Needed by the preprocessor to
35 : // extract the information from the Detector Algorithm
36 :
37 : TArrayF fGainP; // Gain for P side channels
38 : TArrayF fGainN; // Gain for N side channels
39 :
40 : private:
41 : AliITSGainSSD(const AliITSGainSSD &source); // copy constructor
42 : AliITSGainSSD& operator=(const AliITSGainSSD &source); // ass. op.
43 :
44 118 : ClassDef(AliITSGainSSD,1) //Response class for SSD
45 : };
46 : #endif
|