]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/Cal/AliTRDCalChamberStatus.h
Update of calibration classes by Jan Fiete
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalChamberStatus.h
diff --git a/TRD/Cal/AliTRDCalChamberStatus.h b/TRD/Cal/AliTRDCalChamberStatus.h
new file mode 100644 (file)
index 0000000..7a063c2
--- /dev/null
@@ -0,0 +1,36 @@
+#ifndef AliTRDCalChamberStatus_H
+#define AliTRDCalChamberStatus_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+///////////////////////////////////////////////////////////////////////////////
+//                                                                           //
+//  TRD calibration class for status of supermodules                         //
+//                                                                           //
+///////////////////////////////////////////////////////////////////////////////
+
+#include "TNamed.h"
+
+class AliTRDCalChamberStatus : public TNamed {
+  public:
+    enum { kNdet = 540, kNstacks = 90, kNcham = 5, kNsect = 18 };
+    enum { kInstalled = 1, kMasked = 2 };
+  
+    AliTRDCalChamberStatus();
+    AliTRDCalChamberStatus(const Text_t* name, const Text_t* title);
+
+    const Char_t GetStatus(Int_t det) const { return fStatus[det]; };
+    void SetStatus(Int_t det, Char_t status) { fStatus[det] = status; };
+
+    Bool_t IsInstalled(Int_t sm) const { return (GetStatus(sm) & kInstalled) ? kTRUE : kFALSE; }
+    Bool_t IsMasked(Int_t sm) const { return (GetStatus(sm) & kMasked) ? kTRUE : kFALSE; }
+
+  protected:
+    Char_t fStatus[kNdet];                    //  status byte
+
+    ClassDef(AliTRDCalChamberStatus,1)
+};
+
+#endif