]>
Commit | Line | Data |
---|---|---|
a5edfa6f | 1 | #ifndef ALIITSPEDESTALSSD_H |
2 | #define ALIITSPEDESTALSSD_H | |
3 | ||
4 | #include "TObjArray.h" | |
5 | #include "TArrayF.h" | |
6 | ||
7 | ////////////////////////////////////////////// | |
8 | // Author: Enrico Fragiacomo | |
9 | // Date: 12/12/2007 | |
10 | // // | |
11 | ////////////////////////////////////////////// | |
12 | ||
13 | /* $Id$ */ | |
14 | ||
15 | class AliITSPedestalSSD : public TObject { | |
16 | ||
17 | public: | |
18 | ||
19 | AliITSPedestalSSD(); | |
20 | virtual ~AliITSPedestalSSD(); | |
21 | AliITSPedestalSSD(const AliITSPedestalSSD &source); // copy constructor | |
22 | AliITSPedestalSSD& operator=(const AliITSPedestalSSD &source); // ass. op. | |
23 | ||
24 | void SetNPedestalP(Int_t n) { fPedP.Set(n); } | |
25 | void AddPedestalP(Int_t c, Float_t n) { fPedP.AddAt(n,c);} | |
26 | TArrayF GetPedestalP() const {return fPedP; } | |
27 | Float_t GetPedestalP(Int_t n) {return fPedP.At(n); } | |
28 | void SetNPedestalN(Int_t n) { fPedN.Set(n); } | |
29 | void AddPedestalN(Int_t c, Float_t n) { fPedN.AddAt(n,c);} | |
30 | TArrayF GetPedestalN() const {return fPedN; } | |
31 | Float_t GetPedestalN(Int_t n) {return fPedN.At(n); } | |
32 | ||
33 | void SetMod(UShort_t mod) {fMod = mod;} | |
34 | UShort_t GetMod() { return fMod;} | |
35 | ||
36 | protected: | |
37 | ||
38 | UShort_t fMod; // module number (from 0 to 1535). Needed by the preprocessor to | |
39 | // extract the information from the Detector Algorithm | |
40 | ||
41 | TArrayF fPedP; // Pedestal for P side channels | |
42 | TArrayF fPedN; // Pedestal for N side channels | |
43 | ||
44 | private: | |
45 | ||
46 | ClassDef(AliITSPedestalSSD,1) // Pedestal class for SSD | |
47 | }; | |
48 | #endif |