]>
Commit | Line | Data |
---|---|---|
4a60ccc4 | 1 | #ifndef ALIITSCHANNELSTATUS_H |
2 | #define ALIITSCHANNELSTATUS_H | |
3 | /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
23197852 | 6 | /* $Id:$ */ |
4a60ccc4 | 7 | |
8 | ///////////////////////////////////////////////////////////////////// | |
9 | // // | |
10 | // Class for bad channel treatment in the tracker // | |
11 | // Stores 1 status bit for each SPD pixel and SDD anode: // | |
12 | // 0 = bad channel // | |
13 | // 1 = good channel // | |
14 | // Dead and noisy channels are read from AliITSCalibration objects // | |
15 | // Origin: F.Prino, Torino, prino@to.infn.it // | |
16 | // // | |
17 | ///////////////////////////////////////////////////////////////////// | |
18 | ||
19 | #include <TObject.h> | |
20 | #include <TBits.h> | |
21 | #include "AliCDBManager.h" | |
23197852 | 22 | #include "AliITSDetTypeRec.h" |
4a60ccc4 | 23 | |
24 | class AliITSChannelStatus : public TObject { | |
25 | ||
26 | public: | |
27 | AliITSChannelStatus(); | |
28 | AliITSChannelStatus(AliCDBManager *cdb); | |
23197852 | 29 | AliITSChannelStatus(AliITSDetTypeRec *dtrec); |
4a60ccc4 | 30 | AliITSChannelStatus(const AliITSChannelStatus& cstatus); |
31 | AliITSChannelStatus& operator=(const AliITSChannelStatus& cstatus); | |
32 | virtual ~AliITSChannelStatus(); | |
33 | ||
34 | void SetChannelStatus(Bool_t cstatus, Int_t imod, Int_t iz, Int_t ix=0); | |
35 | ||
36 | Bool_t GetChannelStatus(Int_t imod, Int_t iz, Int_t ix=0) const; | |
23197852 | 37 | |
38 | Bool_t AnyBadInRoad(Int_t /*imod*/, Float_t /*zlocmin*/, Float_t /*zlocmax*/, Float_t /*xlocmin*/, Float_t /*xlocmax*/) const{ | |
39 | return kFALSE; | |
40 | } | |
41 | Float_t FractionOfBadInRoad(Int_t /*imod*/, Float_t /*zlocmin*/, Float_t /*zlocmax*/, Float_t /*xlocmin*/, Float_t /*xlocmax*/) const{ | |
42 | return 0.; | |
43 | } | |
44 | ||
4a60ccc4 | 45 | Int_t GetNSPDChannels()const {return fSPDChannelStatus->GetNbits();} |
46 | Int_t GetNSDDChannels()const {return fSDDChannelStatus->GetNbits();} | |
23197852 | 47 | |
4a60ccc4 | 48 | protected: |
49 | void InitDefaults(); | |
50 | void InitFromOCDB(TObjArray* deadArrSPD, TObjArray* noisArrSPD, TObjArray* calArrSDD); | |
51 | Bool_t CheckBounds(Int_t imod, Int_t iz, Int_t ix=0) const; | |
52 | enum {kSPDModules=240}; | |
53 | enum {kSPDNpzPerModule=160}; | |
54 | enum {kSPDNpxPerModule=256}; | |
55 | enum {kSDDModules=260}; | |
56 | enum {kSDDAnodesPerModule=512}; | |
57 | ||
58 | TBits *fSPDChannelStatus; // bit map with status of SPD channels | |
59 | TBits *fSDDChannelStatus; // bit map with status of SDD channels | |
60 | ||
61 | ClassDef(AliITSChannelStatus,1); | |
62 | }; | |
63 | #endif |