- // Set Threshold and noise + threshold fluctuations parameter values
- virtual void SetThresholds(Double_t thresh, Double_t sigma)
- {fThresh=thresh; fSigma=sigma;}
- // Get Threshold and noise + threshold fluctuations parameter values
- virtual void Thresholds(Double_t &thresh, Double_t &sigma) const
- {thresh=fThresh; sigma=fSigma;}
- // Set Bias Voltage parameter
- virtual void SetBiasVoltage(Double_t bias=18.182) {fBiasVoltage=bias;}
- Double_t GetBiasVoltage() const {return fBiasVoltage;}
- //Returns just baseline value
- Double_t GetBaseline() const {return fBaseline;}
- // Set noise and baseline in one (abstract method of AliITSCalibration)
- virtual void SetNoiseParam(Double_t n,Double_t b)
- {fNoise = n;fBaseline = b;}
- // Get noise and baseline in one (abstract method of AliITSCalibration)
- virtual void GetNoiseParam(Double_t &n,Double_t &b) const
- {n =fNoise;b = fBaseline;}
- // Returns just noise value
- Double_t GetNoise() const {return fNoise;}
- //Declaration of member functions peculiar to this class
- // Applies a random noise and addes the baseline
- Double_t ApplyBaselineAndNoise() const {return fBaseline+
- fNoise*gRandom->Gaus();}
- // Set coupling parameters
- virtual void SetCouplingParam(Double_t col, Double_t row)
- {fCouplCol = col; fCouplRow = row;}
- // Get coupling parameters
- virtual void GetCouplingParam(Double_t &col, Double_t &row) const
- {col = fCouplCol; row = fCouplRow;}
+ virtual void ClearBad();
+
+ virtual Int_t GetNrBad() const;
+ virtual Int_t GetNrBadInChip(Int_t chip) const;
+ virtual Int_t GetNrBadInColumn(Int_t col) const;
+
+ virtual Int_t GetBadColAt(UInt_t index) const;
+ virtual Int_t GetBadRowAt(UInt_t index) const;
+ virtual void GetBadPixel(Int_t index, Int_t &row, Int_t &col) const;
+
+ virtual Int_t GetNrBadSingle() const {return fNrBad;}
+ virtual void SetNrBadSingle(UInt_t nr) {fNrBad=nr;} // used to be called SetNrBad, but misleading
+ virtual void SetBadList(TArrayS badlist) {fBadChannels=badlist;}
+ virtual void SetNrBad(UInt_t /*nr*/); // Use SetNrBadSingle!!!
+
+ virtual Bool_t IsBad() const;
+ virtual Bool_t IsChipBad(Int_t chip) const;
+ virtual Bool_t IsColumnBad(Int_t col) const;
+ virtual Bool_t IsPixelBad(Int_t col, Int_t row) const;