Reducing the search window used to find the max in the ADC samples. Needed because...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSEmcBadChannelsMap.h
CommitLineData
52ee9a4c 1#ifndef ALIPHOSEMCBADCHANNELSMAP
2#define ALIPHOSEMCBADCHANNELSMAP
3/* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8// This class keeps the EMC bad channels map
9// (bad means dead or noisy).
10
11#include "TObject.h"
12
13class AliPHOSEmcBadChannelsMap : public TObject {
14
15public:
16
17 AliPHOSEmcBadChannelsMap();
18 AliPHOSEmcBadChannelsMap(const AliPHOSEmcBadChannelsMap &map);
19 AliPHOSEmcBadChannelsMap& operator= (const AliPHOSEmcBadChannelsMap &map);
20 ~AliPHOSEmcBadChannelsMap() {}
21
aff426ad 22 void SetBadChannel(Int_t module, Int_t col, Int_t row);
52ee9a4c 23 Bool_t IsBadChannel(Int_t module, Int_t col, Int_t row) const { return fBadChannelEmc[module-1][col-1][row-1]; }
24 Int_t GetNumOfBadChannels() const { return fBads; }
9af66eca 25 void BadChannelIds(Int_t *badIds=0);
52ee9a4c 26 void Reset();
27
28private:
29
30 Bool_t fBadChannelEmc[5][56][64]; //[mod][col][row]
31 Int_t fBads;
32
9af66eca 33 ClassDef(AliPHOSEmcBadChannelsMap,2)
52ee9a4c 34
35};
36
37#endif