X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;ds=sidebyside;f=PHOS%2FAliPHOSQADataMaker.cxx;h=2b554a98a34a367ff8e8a814541d370a028928b0;hb=96b85d73badd3a1fb2ce89f0833b71882d4e04a4;hp=ce0e01c1c180f5aa7b6a6f6a2115c3a6b959762f;hpb=62b1a9219726f8aad4d2adcee7aaa2321ebb7843;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSQADataMaker.cxx b/PHOS/AliPHOSQADataMaker.cxx index ce0e01c1c18..2b554a98a34 100644 --- a/PHOS/AliPHOSQADataMaker.cxx +++ b/PHOS/AliPHOSQADataMaker.cxx @@ -44,6 +44,8 @@ #include "AliPHOSRecParticle.h" #include "AliPHOSTrackSegment.h" #include "AliPHOSRawDecoder.h" +#include "AliPHOSReconstructor.h" +#include "AliPHOSRecoParam.h" ClassImp(AliPHOSQADataMaker) @@ -73,7 +75,7 @@ AliPHOSQADataMaker& AliPHOSQADataMaker::operator = (const AliPHOSQADataMaker& qa } //____________________________________________________________________________ -void AliPHOSQADataMaker::EndOfDetectorCycle(AliQA::TASKINDEX task, TList * list) +void AliPHOSQADataMaker::EndOfDetectorCycle(AliQA::TASKINDEX task, TObjArray * list) { //Detector specific actions at end of cycle // do the QA checking @@ -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) ; @@ -312,9 +315,8 @@ void AliPHOSQADataMaker::MakeRaws(AliRawReader* rawReader) const Int_t modMax = 5 ; rawReader->Reset() ; AliPHOSRawDecoder decoder(rawReader); - decoder.SetOldRCUFormat(kFALSE); - decoder.SubtractPedestals(kTRUE); - + decoder.SetOldRCUFormat (AliPHOSReconstructor::GetRecoParamEmc()->IsOldRCUFormat()); + decoder.SubtractPedestals(AliPHOSReconstructor::GetRecoParamEmc()->SubtractPedestals()); Int_t count = 0 ; while (decoder.NextDigit()) { Int_t module = decoder.GetModule() ;