]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
ConvertDigits() use information from AliPHOSRecoParam::SubtractPedestals()
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 31 Aug 2007 14:30:54 +0000 (14:30 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 31 Aug 2007 14:30:54 +0000 (14:30 +0000)
PHOS/AliPHOSReconstructor.cxx

index ed24fb1041627ff5fe5b41fb7fed22ff1687fff3..edbe76b14e19bb2fa511a27d58f24e7947ad2c11 100644 (file)
@@ -38,6 +38,7 @@
 #include "AliRawReader.h"
 #include "AliPHOSTrigger.h"
 #include "AliPHOSGeometry.h"
+#include "AliPHOSRecoParam.h"
 #include "AliPHOSRecoParamEmc.h"
 #include "AliPHOSRecoParamCpv.h"
 #include "AliPHOSDigit.h"
@@ -332,9 +333,9 @@ void  AliPHOSReconstructor::ConvertDigits(AliRawReader* rawReader, TTree* digits
     dc.SetOldRCUFormat(kTRUE);
   else
     dc.SetOldRCUFormat(kFALSE);
-
-  dc.SubtractPedestals(kTRUE);
-
+  
+  dc.SubtractPedestals(fgkRecoParamEmc->SubtractPedestals());
+  
   TClonesArray *digits = new TClonesArray("AliPHOSDigit",1);
   digits->SetName("DIGITS");
   Int_t bufsize = 32000;