]>
Commit | Line | Data |
---|---|---|
7754cd1f | 1 | #ifndef AliTRDCalSingleChamberStatus_H |
2 | #define AliTRDCalSingleChamberStatus_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id: AliTRDCalSingleChamberStatus.h,v */ | |
7 | ||
2745a409 | 8 | //////////////////////////////////////////////////////////////////////////// |
9 | // // | |
10 | // TRD calibration base class containing status values for one ROC // | |
11 | // // | |
12 | //////////////////////////////////////////////////////////////////////////// | |
7754cd1f | 13 | |
14 | #include <TObject.h> | |
15 | ||
16 | //_____________________________________________________________________________ | |
17 | class AliTRDCalSingleChamberStatus : public TObject { | |
18 | ||
19 | public: | |
20 | ||
21 | AliTRDCalSingleChamberStatus(); | |
22 | AliTRDCalSingleChamberStatus(Int_t p, Int_t c, Int_t cols); | |
23 | AliTRDCalSingleChamberStatus(const AliTRDCalSingleChamberStatus &c); | |
2745a409 | 24 | virtual ~AliTRDCalSingleChamberStatus(); |
25 | AliTRDCalSingleChamberStatus &operator=(const AliTRDCalSingleChamberStatus &c); | |
7754cd1f | 26 | |
2745a409 | 27 | virtual void Copy(TObject &c) const; |
7754cd1f | 28 | |
2745a409 | 29 | Int_t GetNrows() const { return fNrows; }; |
30 | Int_t GetNcols() const { return fNcols; }; | |
7754cd1f | 31 | |
2745a409 | 32 | Int_t GetChannel(Int_t c, Int_t r) const { return r+c*fNrows; }; |
33 | Int_t GetNchannels() const { return fNchannels; }; | |
34 | Char_t GetStatus(Int_t ich) const { return fData[ich]; }; | |
35 | Char_t GetStatus(Int_t col, Int_t row) const { return fData[GetChannel(col,row)]; }; | |
36 | ||
37 | void SetStatus(Int_t ich, Char_t vd) { fData[ich] = vd; }; | |
38 | void SetStatus(Int_t col, Int_t row, Char_t vd) | |
39 | { fData[GetChannel(col,row)] = vd; }; | |
7754cd1f | 40 | |
41 | protected: | |
42 | ||
2745a409 | 43 | Int_t fPla; // Plane number |
44 | Int_t fCha; // Chamber number | |
7754cd1f | 45 | |
2745a409 | 46 | Int_t fNrows; // Number of rows |
47 | Int_t fNcols; // Number of columns | |
7754cd1f | 48 | |
2745a409 | 49 | Int_t fNchannels; // Number of channels |
50 | Char_t *fData; //[fNchannels] Data | |
7754cd1f | 51 | |
2745a409 | 52 | ClassDef(AliTRDCalSingleChamberStatus,1) // TRD ROC calibration class |
7754cd1f | 53 | |
54 | }; | |
55 | ||
56 | #endif |