]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSOnlineCalibrationSPD.h
Just something left from v2...now clean
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineCalibrationSPD.h
CommitLineData
b15de2d2 1#ifndef ALI_ITS_ONLINECALIBRATIONSPD_H
2#define ALI_ITS_ONLINECALIBRATIONSPD_H
3
4///////////////////////////////////////////////////////////////////////
5// Author: Henrik Tydesjo //
6// This class is used as a container to keep the dead and noisy //
6727e2db 7// pixels online. Each object corresponds to one DDL (eq). //
b15de2d2 8// Note: This class should not be used directly. //
9// Use it via AliITSOnlineCalibrationSPDhandler instead. //
10///////////////////////////////////////////////////////////////////////
11
e03405c9 12/* $Id$ */
13
b15de2d2 14#include <TObject.h>
e03405c9 15#include <TArrayS.h>
b15de2d2 16
17class AliITSOnlineCalibrationSPD : public TObject {
18
19 public:
20 AliITSOnlineCalibrationSPD();
21 virtual ~AliITSOnlineCalibrationSPD() {}
22
6727e2db 23 void SetEqNr(UInt_t mod) {fEqNr=mod;}
24 UInt_t GetEqNr() const {return fEqNr;}
e03405c9 25 void SetBadList(TArrayS badlist) {fBadChannels=badlist;}
6727e2db 26 void SetNrBad(UInt_t nr) {fNrBad=nr;}
27
28 UInt_t GetNrBad() const {return fNrBad;}
29 Int_t GetKeyAt(UInt_t index) const; //returns -1 if out of bounds
30
31 void ClearBad() {fBadChannels.Reset(); fNrBad=0;}
b15de2d2 32
33 private:
6727e2db 34 UInt_t fEqNr; // eq nr
35 UInt_t fNrBad; // nr of bad pixels
e03405c9 36 TArrayS fBadChannels; // array of keys for the bad
b15de2d2 37
e03405c9 38 ClassDef(AliITSOnlineCalibrationSPD,2)
b15de2d2 39};
40
41#endif