]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDMuonPad.h
Bug fix - chack the abs values
[u/mrichter/AliRoot.git] / STEER / AliESDMuonPad.h
index d09cc14019a2d728072d118d6d34e0746b0c4f90..55e2fa8658cb8b678df9821134d927e3ffb049e8 100644 (file)
@@ -24,9 +24,9 @@ public:
   virtual void Clear(Option_t* = "") {}
   
   /// Set the raw charge
-  void  SetADC(Int_t adc) {fADC = adc;}
+  void     SetADC(Int_t adc) {fADC = adc;}
   /// Return the raw charge
-  Int_t GetADC() const {return fADC;}
+  Int_t    GetADC() const {return fADC;}
   
   /// Set the calibrated charge
   void     SetCharge(Double_t charge) {fCharge = charge;}
@@ -42,6 +42,15 @@ public:
   /// Return the cathode number, part of the uniqueID
   Int_t    GetCathode() const     {return (GetUniqueID() & 0x40000000) >> 30;}
   
+  /// Set the pad as being calibrated or not
+  void     SetCalibrated(Bool_t calibrated = kTRUE) {SetBit(BIT(14),calibrated);}
+  /// return kTRUE if the pad is calibrated
+  Bool_t   IsCalibrated() const {return TestBit(BIT(14));}
+  /// Set the pad as being saturated or not
+  void     SetSaturated(Bool_t saturated = kTRUE) {SetBit(BIT(15),saturated);}
+  /// return kTRUE if the pad is saturated
+  Bool_t   IsSaturated() const {return TestBit(BIT(15));}
+  
   void     Print(Option_t */*option*/ = "") const;