Line data Source code
1 : #ifndef ALIITSNOISESSD_H
2 : #define ALIITSNOISESSD_H
3 :
4 : #include "TArrayF.h"
5 : #include "TObject.h"
6 :
7 : //////////////////////////////////////////////
8 : // Author: Enrico Fragiacomo
9 : // Date: 23/08/2007
10 : // //
11 : //////////////////////////////////////////////
12 :
13 : class TObjArray;
14 :
15 : class AliITSNoiseSSD : public TObject {
16 :
17 : public:
18 :
19 : AliITSNoiseSSD();
20 : virtual ~AliITSNoiseSSD();
21 : AliITSNoiseSSD(const AliITSNoiseSSD &source); // copy constructor
22 : AliITSNoiseSSD& operator=(const AliITSNoiseSSD &source); // ass. op.
23 :
24 0 : void SetNNoiseP(Int_t n) { fNoisP.Set(n); }
25 0 : void AddNoiseP(Int_t c, Float_t n) { fNoisP.AddAt(n,c);}
26 0 : TArrayF GetNoiseP() const {return fNoisP; }
27 0 : Float_t GetNoiseP(Int_t n) {return fNoisP.At(n); }
28 0 : void SetNNoiseN(Int_t n) { fNoisN.Set(n); }
29 0 : void AddNoiseN(Int_t c, Float_t n) { fNoisN.AddAt(n,c);}
30 0 : TArrayF GetNoiseN() const {return fNoisN; }
31 0 : Float_t GetNoiseN(Int_t n) {return fNoisN.At(n); }
32 :
33 0 : void SetMod(UShort_t mod) {fMod = mod;}
34 0 : UShort_t GetMod() const { 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 fNoisP; // Noise for P side channels
42 : TArrayF fNoisN; // Noise for N side channels
43 :
44 : private:
45 :
46 118 : ClassDef(AliITSNoiseSSD,1) // Noise class for SSD
47 : };
48 : #endif
|