Bool_t SubtractPedestals() added.
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Jun 2007 13:18:10 +0000 (13:18 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Jun 2007 13:18:10 +0000 (13:18 +0000)
PHOS/AliPHOSRecoParam.cxx
PHOS/AliPHOSRecoParam.h

index a35ba14..aefa5e3 100644 (file)
@@ -26,7 +26,8 @@ ClassImp(AliPHOSRecoParam)
 
 //-----------------------------------------------------------------------------
 AliPHOSRecoParam::AliPHOSRecoParam() : TNamed(),
-  fClusteringThreshold(9999),fLocMaxCut(9999),fMinE(9999),fW0(9999)
+  fClusteringThreshold(9999),fLocMaxCut(9999),fMinE(9999),fW0(9999),
+  fSubtractPedestals(kTRUE)
 {
   //Default constructor.
 }
@@ -34,7 +35,8 @@ AliPHOSRecoParam::AliPHOSRecoParam() : TNamed(),
 //-----------------------------------------------------------------------------
 AliPHOSRecoParam::AliPHOSRecoParam(const AliPHOSRecoParam& recoParam):
   TNamed(recoParam),fClusteringThreshold(recoParam.fClusteringThreshold),
-  fLocMaxCut(recoParam.fLocMaxCut),fMinE(recoParam.fMinE),fW0(recoParam.fW0)
+  fLocMaxCut(recoParam.fLocMaxCut),fMinE(recoParam.fMinE),fW0(recoParam.fW0),
+  fSubtractPedestals(recoParam.fSubtractPedestals)
 {
   //Copy constructor.
 }
@@ -49,6 +51,7 @@ AliPHOSRecoParam& AliPHOSRecoParam::operator = (const AliPHOSRecoParam& recoPara
     fLocMaxCut = recoParam.fLocMaxCut;
     fMinE = recoParam.fMinE;
     fW0 = recoParam.fW0;
+    fSubtractPedestals = recoParam.fSubtractPedestals;
   }
 
   return *this;
index fd49760..8618dd3 100644 (file)
@@ -24,11 +24,13 @@ public:
   Float_t GetLocalMaxCut() const { return fLocMaxCut;}
   Float_t GetMinE() const { return fMinE; }
   Float_t GetLogWeight() const { return fW0; }
+  Bool_t  SubtractPedestals() { return fSubtractPedestals; }
 
   void SetClusteringThreshold(Float_t cluth) { fClusteringThreshold=cluth; }
   void SetLocalMaxCut(Float_t cut) { fLocMaxCut=cut;}
   void SetMinE(Float_t minE) { fMinE=minE; }
   void SetLogWeight(Float_t w) { fW0=w; }
+  void SetSubtractPedestals(Bool_t subtract) { fSubtractPedestals=subtract; } 
 
 protected:
 
@@ -36,6 +38,7 @@ protected:
   Float_t fLocMaxCut;
   Float_t fMinE;
   Float_t fW0;
+  Bool_t  fSubtractPedestals;
 
   ClassDef(AliPHOSRecoParam,1)
 };