]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Information from AliPHOSRecoParam is used to decide whether to subtract the pedestals.
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 31 Aug 2007 16:02:51 +0000 (16:02 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 31 Aug 2007 16:02:51 +0000 (16:02 +0000)
PHOS/AliPHOSGetter.cxx

index f1d311c2136c53e6ac06b25b93fb2e17f63b18f8..407d1024a1c86213f23ad35b7a8d4ea2cb3f21a1 100644 (file)
@@ -70,6 +70,8 @@
 #include "AliCDBStorage.h"
 #include "AliCDBManager.h"
 #include "AliPHOSRawDigiProducer.h"
+#include "AliPHOSReconstructor.h"
+#include "AliPHOSRecoParam.h"
 
 ClassImp(AliPHOSGetter)
   
@@ -743,7 +745,7 @@ Int_t AliPHOSGetter::ReadRaw(AliRawReader *rawReader,Bool_t isOldRCUFormat)
 
   AliPHOSRawDecoder dc(rawReader);
   dc.SetOldRCUFormat(isOldRCUFormat);
-  dc.SubtractPedestals(kTRUE);
+  dc.SubtractPedestals(AliPHOSReconstructor::GetRecoParamEmc()->SubtractPedestals());
 
   TClonesArray * digits = Digits() ;
   AliPHOSRawDigiProducer pr;