]>
Commit | Line | Data |
---|---|---|
2e32a5ae | 1 | #ifndef ALITRDCalChamberStatus_H |
2 | #define ALITRDCalChamberStatus_H | |
7754cd1f | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | // // | |
2745a409 | 10 | // TRD calibration class for the status of a readout chamber // |
7754cd1f | 11 | // // |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include "TNamed.h" | |
15 | ||
6c1053a8 | 16 | class TH2D; |
7754cd1f | 17 | class AliTRDCalChamberStatus : public TNamed { |
2745a409 | 18 | |
19 | public: | |
20 | ||
21 | enum { kNdet = 540, kNstacks = 90, kNcham = 5, kNsect = 18 }; | |
96c140fb | 22 | enum { kInstalled = 1, kMasked = 2, kHalfChamberSideAMasked = 3, kHalfChamberSideBMasked = 4}; |
7754cd1f | 23 | |
2745a409 | 24 | AliTRDCalChamberStatus(); |
25 | AliTRDCalChamberStatus(const Text_t* name, const Text_t* title); | |
26 | ||
27 | Char_t GetStatus(Int_t det) const { return fStatus[det]; }; | |
28 | void SetStatus(Int_t det, Char_t status) { fStatus[det] = status; }; | |
29 | ||
fd9aed32 | 30 | Bool_t IsInstalled(Int_t det) const { return (GetStatus(det) == kInstalled) ? kTRUE : kFALSE; } |
31 | Bool_t IsMasked(Int_t det) const { return (GetStatus(det) == kMasked) ? kTRUE : kFALSE; } | |
32 | Bool_t IsHalfChamberSideAMasked(Int_t det) const { return (GetStatus(det) == kHalfChamberSideAMasked) ? kTRUE : kFALSE; } | |
33 | Bool_t IsHalfChamberSideBMasked(Int_t det) const { return (GetStatus(det) == kHalfChamberSideBMasked) ? kTRUE : kFALSE; } | |
7754cd1f | 34 | |
6c1053a8 | 35 | TH2D *Plot(Int_t sm, Int_t rphi); // Plot fStatus for sm and halfchamberside |
36 | ||
37 | ||
2745a409 | 38 | protected: |
7754cd1f | 39 | |
2745a409 | 40 | Char_t fStatus[kNdet]; // Status byte |
7754cd1f | 41 | |
2745a409 | 42 | ClassDef(AliTRDCalChamberStatus,1) // Defines the status of a single readout chamber |
7754cd1f | 43 | |
7754cd1f | 44 | }; |
45 | ||
e5ba3dfd | 46 | #endif |
47 | ||
48 |