1 #ifndef ALITRDCalChamberStatus_H
2 #define ALITRDCalChamberStatus_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
10 // TRD calibration class for the status of a readout chamber //
12 ///////////////////////////////////////////////////////////////////////////////
16 class AliTRDCalChamberStatus : public TNamed {
20 enum { kNdet = 540, kNstacks = 90, kNcham = 5, kNsect = 18 };
21 enum { kInstalled = 1, kMasked = 2, kHalfChamberSideAMasked = 3, kHalfChamberSideBMasked = 4};
23 AliTRDCalChamberStatus();
24 AliTRDCalChamberStatus(const Text_t* name, const Text_t* title);
26 Char_t GetStatus(Int_t det) const { return fStatus[det]; };
27 void SetStatus(Int_t det, Char_t status) { fStatus[det] = status; };
29 Bool_t IsInstalled(Int_t det) const { return (GetStatus(det) == kInstalled) ? kTRUE : kFALSE; }
30 Bool_t IsMasked(Int_t det) const { return (GetStatus(det) == kMasked) ? kTRUE : kFALSE; }
31 Bool_t IsHalfChamberSideAMasked(Int_t det) const { return (GetStatus(det) == kHalfChamberSideAMasked) ? kTRUE : kFALSE; }
32 Bool_t IsHalfChamberSideBMasked(Int_t det) const { return (GetStatus(det) == kHalfChamberSideBMasked) ? kTRUE : kFALSE; }
36 Char_t fStatus[kNdet]; // Status byte
38 ClassDef(AliTRDCalChamberStatus,1) // Defines the status of a single readout chamber