-#ifndef AliTRDCalChamberStatus_H
-#define AliTRDCalChamberStatus_H
+#ifndef ALITRDCalChamberStatus_H
+#define ALITRDCalChamberStatus_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
#include "TNamed.h"
+class TH2D;
class AliTRDCalChamberStatus : public TNamed {
public:
enum { kNdet = 540, kNstacks = 90, kNcham = 5, kNsect = 18 };
- enum { kInstalled = 1, kMasked = 2 };
+ enum { kInstalled = 1, kMasked = 2, kHalfChamberSideAMasked = 3, kHalfChamberSideBMasked = 4};
AliTRDCalChamberStatus();
AliTRDCalChamberStatus(const Text_t* name, const Text_t* title);
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; }
+ Bool_t IsInstalled(Int_t det) const { return (GetStatus(det) == kInstalled) ? kTRUE : kFALSE; }
+ Bool_t IsMasked(Int_t det) const { return (GetStatus(det) == kMasked) ? kTRUE : kFALSE; }
+ Bool_t IsHalfChamberSideAMasked(Int_t det) const { return (GetStatus(det) == kHalfChamberSideAMasked) ? kTRUE : kFALSE; }
+ Bool_t IsHalfChamberSideBMasked(Int_t det) const { return (GetStatus(det) == kHalfChamberSideBMasked) ? kTRUE : kFALSE; }
+
+ TH2D *Plot(Int_t sm, Int_t rphi); // Plot fStatus for sm and halfchamberside
+ TH2D *Plot(Int_t sm); // Plot fStatus for sm
+
protected: