]>
Commit | Line | Data |
---|---|---|
fcf95fc7 | 1 | #ifndef ALIITSCALIBRATIONSPD_H |
2 | #define ALIITSCALIBRATIONSPD_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
e03405c9 | 6 | /* $Id$ */ |
cfe39822 | 7 | //#include "TRandom.h" |
fcf95fc7 | 8 | #include "AliITSCalibration.h" |
e03405c9 | 9 | #include "TArrayS.h" |
fcf95fc7 | 10 | |
11 | //////////////////////////////////////////////////// | |
12 | // // | |
13 | // ITS response class for SPD // | |
14 | //////////////////////////////////////////////////// | |
15 | class AliITSCalibrationSPD : public AliITSCalibration { | |
16 | public: | |
17 | AliITSCalibrationSPD(); // default constructor | |
18 | virtual ~AliITSCalibrationSPD() {;} // destructror | |
19 | ||
478d804c | 20 | virtual void ClearBad(); |
21 | ||
22 | virtual Int_t GetNrBad() const; | |
23 | virtual Int_t GetNrBadInChip(Int_t chip) const; | |
24 | virtual Int_t GetNrBadInColumn(Int_t col) const; | |
25 | ||
26 | virtual Int_t GetBadColAt(UInt_t index) const; | |
27 | virtual Int_t GetBadRowAt(UInt_t index) const; | |
28 | virtual void GetBadPixel(Int_t index, Int_t &row, Int_t &col) const; | |
29 | ||
30 | virtual Int_t GetNrBadSingle() const {return fNrBad;} | |
31 | virtual void SetNrBadSingle(UInt_t nr) {fNrBad=nr;} // used to be called SetNrBad, but misleading | |
32 | virtual void SetBadList(TArrayS badlist) {fBadChannels=badlist;} | |
33 | virtual void SetNrBad(UInt_t /*nr*/); // Use SetNrBadSingle!!! | |
34 | ||
35 | virtual Bool_t IsBad() const; | |
36 | virtual Bool_t IsChipBad(Int_t chip) const; | |
37 | virtual Bool_t IsColumnBad(Int_t col) const; | |
38 | virtual Bool_t IsPixelBad(Int_t col, Int_t row) const; | |
39 | ||
40 | virtual void SetChipBad(UInt_t chip); | |
41 | virtual void UnSetChipBad(UInt_t chip); | |
42 | ||
43 | virtual void AddBad(UInt_t col, UInt_t row); | |
44 | ||
45 | virtual Int_t GetChipIndexFromCol(UInt_t col) const; | |
46 | // virtual Int_t GetChipFromChipIndex(UInt_t index) const; | |
47 | ||
fcf95fc7 | 48 | virtual void GiveCompressParam(Int_t *) const |
49 | {NotImplemented("GiveCompressParam");} | |
50 | virtual void SetDetParam(Double_t *) | |
51 | {NotImplemented("SetDetParam");} | |
52 | virtual void GetDetParam(Double_t *) const | |
53 | {NotImplemented("GetDetParam");} | |
54 | virtual void SetNDetParam(Int_t /* n */) | |
55 | {NotImplemented("SetNDetParam");} | |
56 | virtual Int_t NDetParam() const | |
57 | {NotImplemented("NDetParam"); return 0;} | |
58 | virtual void SetSigmaSpread(Double_t, Double_t) | |
59 | {NotImplemented("SetSigmaSpread");} | |
60 | virtual void SigmaSpread(Double_t & /* p1 */,Double_t & /* p2 */) const | |
61 | {NotImplemented("SigmaSpread");} | |
5bfe44ce | 62 | |
fcf95fc7 | 63 | protected: |
478d804c | 64 | UInt_t fNrBad; // Nr of SINGLE bad pixels |
e03405c9 | 65 | TArrayS fBadChannels; // Array with bad channels info (col0,row0,col1...rowN) N = fNrBad |
bb292d31 | 66 | Bool_t fBadChip[5]; // Is chip completely dead? |
fcf95fc7 | 67 | |
bb292d31 | 68 | ClassDef(AliITSCalibrationSPD,8) // SPD response |
fcf95fc7 | 69 | }; |
70 | ||
71 | #endif |