- fixing warnings/coverity
[u/mrichter/AliRoot.git] / ITS / AliITSBadChannelsSSDv2.h
CommitLineData
88128115 1#ifndef ALIITSBADCHANNELSSSDV2_H
2#define ALIITSBADCHANNELSSSDV2_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 AliITSBadChannelsSSDv2 : public TObject {
13
14 public:
15
16 AliITSBadChannelsSSDv2();
17 virtual ~AliITSBadChannelsSSDv2();
18 AliITSBadChannelsSSDv2(const AliITSBadChannelsSSDv2 &source); // copy constructor
19 AliITSBadChannelsSSDv2& operator=(const AliITSBadChannelsSSDv2 &source); // ass. op.
20
21 void AddBadChannelP(Int_t module, Int_t strip, Char_t value) {
22 fBadChannels[module*2*fgkDefaultNStripsSSD+strip] = value;
23 }
24 Char_t GetBadChannelP(Int_t module, Int_t strip) {
25 return fBadChannels[module*2*fgkDefaultNStripsSSD+strip];
26 }
27
28 void AddBadChannelN(Int_t module, Int_t strip, Char_t value) {
29 fBadChannels[module*2*fgkDefaultNStripsSSD+fgkDefaultNStripsSSD+strip] = value;
30 }
31 Char_t GetBadChannelN(Int_t module, Int_t strip) {
32 return fBadChannels[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 //static const Int_t fgkDefaultNModulesSSD; // Total numbers of SSD modules
40 // static const Int_t fgkDefaultNStripsSSD; // Total numbers of SSD modules
41 Char_t fBadChannels[2*fgkDefaultNModulesSSD*fgkDefaultNStripsSSD];
42 // Char_t *fBadChannels;
43
44 private:
45
46 ClassDef(AliITSBadChannelsSSDv2,1) // BadChannels class for SSD
47 };
48
49#endif