RC12, RC17 violation: suppression
[u/mrichter/AliRoot.git] / ITS / AliITSNoiseSSDv2.h
CommitLineData
88128115 1#ifndef ALIITSNOISESSDV2_H
2#define ALIITSNOISESSDV2_H
3
4//////////////////////////////////////////////
5// Author: Enrico Fragiacomo
6// Date: 23/08/2007
7// Modified: 08/07/2008
8// //
9//////////////////////////////////////////////
10#include "TObject.h"
11
12class AliITSNoiseSSDv2 : public TObject {
13
14 public:
15
16 AliITSNoiseSSDv2();
17 virtual ~AliITSNoiseSSDv2();
18 AliITSNoiseSSDv2(const AliITSNoiseSSDv2 &source); // copy constructor
19 AliITSNoiseSSDv2& operator=(const AliITSNoiseSSDv2 &source); // ass. op.
20
21 void AddNoiseP(Int_t module, Int_t strip, Float_t value) {
22 fNois[module*2*fgkDefaultNStripsSSD+strip] = value;
23 }
24 Float_t GetNoiseP(Int_t module, Int_t strip) {
25 return fNois[module*2*fgkDefaultNStripsSSD+strip];
26 }
27
28 void AddNoiseN(Int_t module, Int_t strip, Float_t value) {
29 fNois[module*2*fgkDefaultNStripsSSD+fgkDefaultNStripsSSD+strip] = value;
30 }
31 Float_t GetNoiseN(Int_t module, Int_t strip) {
32 return fNois[module*2*fgkDefaultNStripsSSD+fgkDefaultNStripsSSD+strip];
33 }
34
35 protected:
36
37 static const Int_t fgkDefaultNModulesSSD = 1698;
38 static const Int_t fgkDefaultNStripsSSD = 768;
39
40 // static const Int_t fgkDefaultNModulesSSD; // Total numbers of SSD modules
41 //static const Int_t fgkDefaultNStripsSSD; // Total numbers of SSD modules
42
43 Float_t fNois[2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD];
44 //Float_t *fNois;
45
46 private:
47
48 ClassDef(AliITSNoiseSSDv2,1) // Noise class for SSD
49 };
50#endif