]>
Commit | Line | Data |
---|---|---|
fb4dfab9 | 1 | #ifndef ALIITSGAINSSD_H |
2 | #define ALIITSGAINSSD_H | |
3 | ||
88128115 | 4 | #include "TObjArray.h" |
5 | #include "TArrayF.h" | |
6 | ||
fb4dfab9 | 7 | ////////////////////////////////////////////// |
8 | // Author: Enrico Fragiacomo | |
9 | // Date: 23/08/2007 | |
10 | // // | |
11 | ////////////////////////////////////////////// | |
7ab0e0a5 | 12 | |
fb4dfab9 | 13 | class AliITSGainSSD : public TObject { |
14 | ||
15 | public: | |
16 | ||
17 | AliITSGainSSD(); | |
18 | virtual ~AliITSGainSSD(); | |
88128115 | 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;} | |
7ab0e0a5 | 30 | UShort_t GetMod() const { return fMod;} |
88128115 | 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: | |
fb4dfab9 | 41 | AliITSGainSSD(const AliITSGainSSD &source); // copy constructor |
42 | AliITSGainSSD& operator=(const AliITSGainSSD &source); // ass. op. | |
43 | ||
88128115 | 44 | ClassDef(AliITSGainSSD,1) //Response class for SSD |
45 | }; | |
fb4dfab9 | 46 | #endif |