]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/Cal/AliTRDCalSingleChamberStatus.h
bootstrap pdf before usage
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalSingleChamberStatus.h
index ed2ac33d1018fbadd209d24f07a0666d11c97548..618977919da22b3dda6f3e8197d8592f87adba69 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef AliTRDCalSingleChamberStatus_H
-#define AliTRDCalSingleChamberStatus_H
+#ifndef ALITRDCALSINGLECHAMBERSTATUS_H
+#define ALITRDCALSINGLECHAMBERSTATUS_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
@@ -18,6 +18,12 @@ class AliTRDCalSingleChamberStatus : public TObject {
 
  public:
 
+  enum { kMasked          = 2
+       , kPadBridgedLeft  = 4
+       , kPadBridgedRight = 8
+       , kReadSecond      = 16 
+       , kNotConnected    = 32};
+
   AliTRDCalSingleChamberStatus();
   AliTRDCalSingleChamberStatus(Int_t p, Int_t c, Int_t cols);
   AliTRDCalSingleChamberStatus(const AliTRDCalSingleChamberStatus &c);
@@ -26,17 +32,22 @@ class AliTRDCalSingleChamberStatus : public TObject {
 
   virtual void    Copy(TObject &c) const;
 
-          Int_t   GetNrows() const                      { return fNrows; };
-          Int_t   GetNcols() const                      { return fNcols; };
-
-          Int_t   GetChannel(Int_t c, Int_t r) const    { return r+c*fNrows;                 };
-          Int_t   GetNchannels() const                  { return fNchannels;                 };
-          Char_t  GetStatus(Int_t ich) const            { return fData[ich];                 };
-          Char_t  GetStatus(Int_t col, Int_t row) const { return fData[GetChannel(col,row)]; };
-
-          void    SetStatus(Int_t ich, Char_t vd)       { fData[ich] = vd;                   };
-          void    SetStatus(Int_t col, Int_t row, Char_t vd)
-                                                        { fData[GetChannel(col,row)] = vd;   };
+          Bool_t  IsMasked(Int_t col, Int_t row) const       { return ((GetStatus(col,row) & kMasked) 
+                                                                       ? kTRUE 
+                                                                       : kFALSE);                 };
+         Bool_t  IsBridgedLeft(Int_t col, Int_t row) const  { return ((GetStatus(col, row) & kPadBridgedLeft)                                            ? kTRUE                                                                         : kFALSE);                 };
+         Bool_t  IsBridgedRight(Int_t col, Int_t row) const { return ((GetStatus(col, row) & kPadBridgedRight)                                           ? kTRUE                                                                         : kFALSE);                 };
+         Bool_t  IsNotConnected(Int_t col, Int_t row) const { return ((GetStatus(col, row) & kNotConnected)                                           ? kTRUE                                                                         : kFALSE);                 };
+          Int_t   GetNrows() const                           { return fNrows;                     };
+          Int_t   GetNcols() const                           { return fNcols;                     };
+
+          Int_t   GetChannel(Int_t col, Int_t row) const     { return row+col*fNrows;             };
+          Int_t   GetNchannels() const                       { return fNchannels;                 };
+          Char_t  GetStatus(Int_t ich) const                 { return fData[ich];                 };
+          Char_t  GetStatus(Int_t col, Int_t row) const      { return fData[GetChannel(col,row)]; };
+
+          void    SetStatus(Int_t ich, Char_t vd)            { fData[ich] = vd;                   };
+          void    SetStatus(Int_t col, Int_t row, Char_t vd) { fData[GetChannel(col,row)] = vd;   };
 
  protected: