Remove compilation warning (M. Siciliano)
[u/mrichter/AliRoot.git] / ITS / AliITSPedestalSSD.h
CommitLineData
a5edfa6f 1#ifndef ALIITSPEDESTALSSD_H
2#define ALIITSPEDESTALSSD_H
3
a5edfa6f 4//////////////////////////////////////////////
5// Author: Enrico Fragiacomo
ced4d9bc 6// Date: 23/08/2007
7// Modified: 08/07/2008
a5edfa6f 8// //
9//////////////////////////////////////////////
ced4d9bc 10#include "TObject.h"
a5edfa6f 11
12class AliITSPedestalSSD : public TObject {
13
14 public:
15
16 AliITSPedestalSSD();
17 virtual ~AliITSPedestalSSD();
18 AliITSPedestalSSD(const AliITSPedestalSSD &source); // copy constructor
19 AliITSPedestalSSD& operator=(const AliITSPedestalSSD &source); // ass. op.
20
ced4d9bc 21 void AddPedestalP(Int_t module, Int_t strip, Float_t value) {
22 fPedestal[module*2*fgkDefaultNStripsSSD+strip] = value;
23 }
24 Float_t GetPedestalP(Int_t module, Int_t strip) {
25 return fPedestal[module*2*fgkDefaultNStripsSSD+strip];
26 }
27
28 void AddPedestalN(Int_t module, Int_t strip, Float_t value) {
29 fPedestal[module*2*fgkDefaultNStripsSSD+fgkDefaultNStripsSSD+strip] = value;
30 }
31 Float_t GetPedestalN(Int_t module, Int_t strip) {
32 return fPedestal[module*2*fgkDefaultNStripsSSD+fgkDefaultNStripsSSD+strip];
33 }
34
35 protected:
a5edfa6f 36
ced4d9bc 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
43Float_t fPedestal[2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD];
44
45 private:
46
10c16d2c 47 ClassDef(AliITSPedestalSSD,2) // Pedestal class for SSD
ced4d9bc 48 };
a5edfa6f 49#endif