]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSNoiseSSD.h
Added macro to plot the SDD correction maps stored in OCDB
[u/mrichter/AliRoot.git] / ITS / AliITSNoiseSSD.h
1 #ifndef ALIITSNOISESSD_H
2 #define ALIITSNOISESSD_H
3  
4 #include "TObjArray.h"
5 #include "TArrayF.h"
6
7 //////////////////////////////////////////////
8 // Author: Enrico Fragiacomo
9 // Date: 23/08/2007
10 //                                          //
11 //////////////////////////////////////////////
12 class AliITSNoiseSSD : public TObject {
13
14  public:
15
16     AliITSNoiseSSD();
17     virtual ~AliITSNoiseSSD();
18     AliITSNoiseSSD(const AliITSNoiseSSD &source); // copy constructor
19     AliITSNoiseSSD& operator=(const AliITSNoiseSSD &source); // ass. op.
20
21     void SetNNoiseP(Int_t n) { fNoisP.Set(n); }
22     void AddNoiseP(Int_t c, Float_t n) { fNoisP.AddAt(n,c);}       
23     TArrayF GetNoiseP() const {return fNoisP; }
24     Float_t GetNoiseP(Int_t n) {return fNoisP.At(n); }
25     void SetNNoiseN(Int_t n) { fNoisN.Set(n); }
26     void AddNoiseN(Int_t c, Float_t n) { fNoisN.AddAt(n,c);}
27     TArrayF GetNoiseN() const {return fNoisN; }
28     Float_t GetNoiseN(Int_t n) {return fNoisN.At(n); }
29
30     void SetMod(UShort_t mod) {fMod = mod;}
31     UShort_t GetMod() { return fMod;}
32
33 protected:
34
35   UShort_t fMod;       // module number (from 0 to 1535). Needed by the preprocessor to 
36                        //   extract the information from the Detector Algorithm
37   
38   TArrayF fNoisP;           // Noise for P side channels
39   TArrayF fNoisN;           // Noise for N side channels
40   
41  private:
42
43     ClassDef(AliITSNoiseSSD,1) // Noise  class for SSD
44 };
45 #endif