]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding an option to enable the pedestal subtraction
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 May 2006 11:32:35 +0000 (11:32 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 May 2006 11:32:35 +0000 (11:32 +0000)
TPC/AliTPCReconstructor.cxx
TPC/AliTPCclustererMI.h

index b7655bc7be46f0c3cb76c30eb9d031c7e8d2ff41..1cb63cddf43696e8ce39438c6a36b31db0092aab 100644 (file)
@@ -101,6 +101,10 @@ void AliTPCReconstructor::Reconstruct(AliRunLoader* runLoader,
   }
   AliTPCclustererMI clusterer(param);
 
+  TString option = GetOption();
+  if (option.Contains("PedestalSubtraction"))
+    clusterer.SetPedSubtraction(kTRUE);
   Int_t iEvent = 0;
   while (rawReader->NextEvent()) {
     runLoader->GetEvent(iEvent++);
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