]>
Commit | Line | Data |
---|---|---|
88128115 | 1 | #ifndef ALIITSGAINSSDV2_H |
2 | #define ALIITSGAINSSDV2_H | |
3 | ||
4 | ////////////////////////////////////////////// | |
5 | // Author: Enrico Fragiacomo | |
6 | // Date: 23/08/2007 | |
7 | // Modified: 08/07/2008 | |
8 | // // | |
9 | ////////////////////////////////////////////// | |
10 | #include "TObject.h" | |
11 | ||
12 | class AliITSGainSSDv2 : public TObject { | |
13 | ||
14 | public: | |
15 | ||
16 | AliITSGainSSDv2(); | |
17 | virtual ~AliITSGainSSDv2(); | |
18 | AliITSGainSSDv2(const AliITSGainSSDv2 &source); // copy constructor | |
19 | AliITSGainSSDv2& operator=(const AliITSGainSSDv2 &source); // ass. op. | |
20 | ||
21 | void AddGainP(Int_t module, Int_t strip, Float_t value) { | |
22 | fGain[module*2*fgkDefaultNStripsSSD+strip] = (UShort_t) (1000.*value); | |
23 | } | |
24 | Float_t GetGainP(Int_t module, Int_t strip) { | |
25 | return ((Float_t) ( (Float_t) fGain[module*2*fgkDefaultNStripsSSD+strip] ) /1000.); | |
26 | } | |
27 | ||
28 | void AddGainN(Int_t module, Int_t strip, Float_t value) { | |
29 | fGain[module*2*fgkDefaultNStripsSSD+fgkDefaultNStripsSSD+strip] = | |
30 | (UShort_t) (1000.*value); | |
31 | } | |
32 | Float_t GetGainN(Int_t module, Int_t strip) { | |
33 | return ( (Float_t) ((Float_t) fGain[module*2*fgkDefaultNStripsSSD+fgkDefaultNStripsSSD+strip])/1000.); | |
34 | } | |
35 | ||
36 | protected: | |
37 | ||
38 | static const Int_t fgkDefaultNModulesSSD = 1698; | |
39 | static const Int_t fgkDefaultNStripsSSD = 768; | |
40 | ||
41 | //static const Int_t fgkDefaultNModulesSSD; // Total numbers of SSD modules | |
42 | //static const Int_t fgkDefaultNStripsSSD; // Total numbers of SSD modules | |
43 | ||
44 | UShort_t fGain[2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD]; | |
45 | // UShort_t *fGain; | |
46 | ||
47 | private: | |
48 | ||
49 | ClassDef(AliITSGainSSDv2,1) // Gain class for SSD | |
50 | }; | |
51 | #endif |