]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCclustererMI.h
Adding an option to enable the pedestal subtraction
[u/mrichter/AliRoot.git] / TPC / AliTPCclustererMI.h
index 8a438babcb5ba4f397a0eb5a45471fc61c7816b6..8ec10939c246513afde6b2ec5a560e073c6a08e1 100644 (file)
@@ -30,6 +30,8 @@ public:
   AliTPCclustererMI(const AliTPCParam* par);
   virtual void Digits2Clusters();
   virtual void Digits2Clusters(AliRawReader* rawReader);
+  virtual void SetPedSubtraction(Bool_t pedestalSub = kFALSE)
+    { fPedSubtraction = pedestalSub; };
   virtual void SetInput(TTree * tree);  // set input tree with digits    
   virtual void SetOutput(TTree * tree); //set output tree with 
 private:
@@ -62,6 +64,8 @@ private:
   Float_t fPadLength;  // the width of the pad
   Float_t fZWidth;     //the z bin width
 
+  Bool_t  fPedSubtraction; // perform pedestal subtraction or not
+
   TTree * fInput;   //!input  tree with digits - object not owner
   TTree * fOutput;   //!output tree with digits - object not owner
   AliTPCClustersRow * fRowCl;  //! current cluster row