]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/Cal/AliTRDCalChamberStatus.h
First round of effc++ changes
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalChamberStatus.h
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                               */
5
6 /* $Id$ */
7
8 ///////////////////////////////////////////////////////////////////////////////
9 //                                                                           //
10 //  TRD calibration class for the status of a readout chamber                //
11 //                                                                           //
12 ///////////////////////////////////////////////////////////////////////////////
13
14 #include "TNamed.h"
15
16 class AliTRDCalChamberStatus : public TNamed {
17
18  public:
19
20   enum { kNdet = 540, kNstacks = 90, kNcham = 5, kNsect = 18 };
21   enum { kInstalled = 1, kMasked = 2 };
22   
23   AliTRDCalChamberStatus();
24   AliTRDCalChamberStatus(const Text_t* name, const Text_t* title);
25
26   Char_t GetStatus(Int_t det) const          { return fStatus[det];   };
27   void   SetStatus(Int_t det, Char_t status) { fStatus[det] = status; };
28
29   Bool_t IsInstalled(Int_t sm) const         { return (GetStatus(sm) & kInstalled) ? kTRUE : kFALSE; }
30   Bool_t IsMasked(Int_t sm) const            { return (GetStatus(sm) & kMasked)    ? kTRUE : kFALSE; }
31
32  protected:
33
34   Char_t fStatus[kNdet];                    //  Status byte
35
36   ClassDef(AliTRDCalChamberStatus,1)        //  Defines the status of a single readout chamber
37
38 };
39
40 #endif