]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSPedestalSSDv2.h
Shorten names
[u/mrichter/AliRoot.git] / ITS / AliITSPedestalSSDv2.h
CommitLineData
88128115 1#ifndef ALIITSPEDESTALSSDV2_H
2#define ALIITSPEDESTALSSDV2_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 AliITSPedestalSSDv2 : public TObject {
13
14 public:
15
16 AliITSPedestalSSDv2();
17 virtual ~AliITSPedestalSSDv2();
18 AliITSPedestalSSDv2(const AliITSPedestalSSDv2 &source); // copy constructor
19 AliITSPedestalSSDv2& operator=(const AliITSPedestalSSDv2 &source); // ass. op.
20
21 void AddPedestalP(Int_t module, Int_t strip, Float_t value) {
22 fPedestal[module*2*fgkDefaultNStripsSSD+strip] = value;
23 }
7ab0e0a5 24 Float_t GetPedestalP(Int_t module, Int_t strip) const {
88128115 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 }
7ab0e0a5 31 Float_t GetPedestalN(Int_t module, Int_t strip) const {
88128115 32 return fPedestal[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 43Float_t fPedestal[2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD]; // tot # of default SSD strips
88128115 44
45 private:
46
47 ClassDef(AliITSPedestalSSDv2,1) // Pedestal class for SSD
48 };
49#endif