Moving required CMake version from 2.8.4 to 2.8.8
[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 }
7ab0e0a5 24 Float_t GetNoiseP(Int_t module, Int_t strip) const {
88128115 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 }
7ab0e0a5 31 Float_t GetNoiseN(Int_t module, Int_t strip) const {
88128115 32 return fNois[module*2*fgkDefaultNStripsSSD+fgkDefaultNStripsSSD+strip];
33 }
34
35 protected:
36
7ab0e0a5 37 static const Int_t fgkDefaultNModulesSSD = 1698;// # of default SSD modules
38 static const Int_t fgkDefaultNStripsSSD = 768;// # of default SSD strips
88128115 39
40 // static const Int_t fgkDefaultNModulesSSD; // Total numbers of SSD modules
41 //static const Int_t fgkDefaultNStripsSSD; // Total numbers of SSD modules
42
7ab0e0a5 43 Float_t fNois[2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD]; // tot # of default SSD strips
88128115 44 //Float_t *fNois;
45
46 private:
47
48 ClassDef(AliITSNoiseSSDv2,1) // Noise class for SSD
49 };
50#endif