]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSGainSSD.h
cleanup
[u/mrichter/AliRoot.git] / ITS / AliITSGainSSD.h
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     void SetNGainP(Int_t n) { fGainP.Set(n); }
21     void AddGainP(Int_t c, Float_t n) { fGainP.AddAt(n,c);}       
22     TArrayF GetGainP() const {return fGainP; }
23     Float_t GetGainP(Int_t n) {return fGainP.At(n); }
24     void SetNGainN(Int_t n) { fGainN.Set(n); }
25     void AddGainN(Int_t c, Float_t n) { fGainN.AddAt(n,c);}
26     TArrayF GetGainN() const {return fGainN; }
27     Float_t GetGainN(Int_t n) {return fGainN.At(n); }
28
29     void SetMod(UShort_t mod) {fMod = mod;}
30     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     ClassDef(AliITSGainSSD,1) //Response class for SSD
45 };
46 #endif