Line data Source code
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 :
12 : class 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 0 : fBadChannels[module*2*fgkDefaultNStripsSSD+strip] = value;
23 0 : }
24 : Char_t GetBadChannelP(Int_t module, Int_t strip) const {
25 20865024 : return fBadChannels[module*2*fgkDefaultNStripsSSD+strip];
26 : }
27 :
28 : void AddBadChannelN(Int_t module, Int_t strip, Char_t value) {
29 0 : fBadChannels[module*2*fgkDefaultNStripsSSD+fgkDefaultNStripsSSD+strip] = value;
30 0 : }
31 : Char_t GetBadChannelN(Int_t module, Int_t strip) const {
32 20865024 : return fBadChannels[module*2*fgkDefaultNStripsSSD+fgkDefaultNStripsSSD+strip];
33 : }
34 :
35 : protected:
36 :
37 : static const Int_t fgkDefaultNModulesSSD = 1698; // # of default SSD modules
38 : static const Int_t fgkDefaultNStripsSSD = 768; // # of default SSD strips
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]; // tot # of default SSD strips
42 : // Char_t *fBadChannels;
43 :
44 : private:
45 :
46 150 : ClassDef(AliITSBadChannelsSSDv2,1) // BadChannels class for SSD
47 : };
48 :
49 : #endif
|