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 f1d311c..407d102 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;