]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
change the setiing of pedestal subtraction
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Dec 2007 20:15:15 +0000 (20:15 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Dec 2007 20:15:15 +0000 (20:15 +0000)
PHOS/AliPHOSQADataMaker.cxx

index ce0e01c1c180f5aa7b6a6f6a2115c3a6b959762f..ea756afd86e2cfb1b3f4d71bb8ecc8220a0a91d6 100644 (file)
@@ -44,6 +44,8 @@
 #include "AliPHOSRecParticle.h" 
 #include "AliPHOSTrackSegment.h" 
 #include "AliPHOSRawDecoder.h"
+#include "AliPHOSReconstructor.h"
+#include "AliPHOSRecoParam.h"
 
 ClassImp(AliPHOSQADataMaker)
            
@@ -84,6 +86,7 @@ void AliPHOSQADataMaker::EndOfDetectorCycle(AliQA::TASKINDEX task, TList * list)
 void AliPHOSQADataMaker::InitESDs()
 {
   //create ESDs histograms in ESDs subdir
+       
   TH1F * h0 = new TH1F("hPhosESDs",    "ESDs energy distribution in PHOS",       100, 0., 100.) ;  
   h0->Sumw2() ; 
   Add2ESDsList(h0, 0) ;
@@ -313,8 +316,7 @@ void AliPHOSQADataMaker::MakeRaws(AliRawReader* rawReader)
   rawReader->Reset() ; 
   AliPHOSRawDecoder decoder(rawReader);
   decoder.SetOldRCUFormat(kFALSE);
-  decoder.SubtractPedestals(kTRUE);
-
+  decoder.SubtractPedestals(AliPHOSReconstructor::GetRecoParamEmc()->SubtractPedestals());
   Int_t count = 0 ; 
   while (decoder.NextDigit()) {
    Int_t module  = decoder.GetModule() ;