]>
Commit | Line | Data |
---|---|---|
7754cd1f | 1 | #ifndef ALITRDCALSUPERMODULESTATUS_H |
2 | #define ALITRDCALSUPERMODULESTATUS_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 status of supermodules // | |
11 | // // | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include "TNamed.h" | |
15 | ||
16 | class AliTRDCalSuperModuleStatus : public TNamed { | |
17 | public: | |
18 | enum { kNdet = 540, kNstacks = 90, kNcham = 5, kNsect = 18 }; | |
19 | enum { kInstalled = 1, kMasked = 2 }; | |
20 | ||
21 | AliTRDCalSuperModuleStatus(); | |
22 | AliTRDCalSuperModuleStatus(const Text_t* name, const Text_t* title); | |
23 | ||
aee5d4d7 | 24 | Char_t GetStatus(Int_t sm) const { return fStatus[sm]; }; |
7754cd1f | 25 | void SetStatus(Int_t sm, Char_t status) { fStatus[sm] = status; }; |
26 | ||
27 | Bool_t IsInstalled(Int_t sm) const { return (GetStatus(sm) & kInstalled) ? kTRUE : kFALSE; } | |
28 | Bool_t IsMasked(Int_t sm) const { return (GetStatus(sm) & kMasked) ? kTRUE : kFALSE; } | |
29 | ||
30 | protected: | |
31 | Char_t fStatus[kNsect]; // status byte | |
32 | ||
33 | ClassDef(AliTRDCalSuperModuleStatus,1) | |
34 | }; | |
35 | ||
36 | #endif |