From: rbailhac Date: Tue, 2 Dec 2014 18:29:44 +0000 (+0100) Subject: Update HFE v2 X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=cde27fdd201cde508e265e261b15ef7fe284dacd Update HFE v2 --- diff --git a/PWGHF/hfe/AliAnalysisTaskFlowTPCTOFEPSP.cxx b/PWGHF/hfe/AliAnalysisTaskFlowTPCTOFEPSP.cxx index 4b05eef2068..19366ff086c 100644 --- a/PWGHF/hfe/AliAnalysisTaskFlowTPCTOFEPSP.cxx +++ b/PWGHF/hfe/AliAnalysisTaskFlowTPCTOFEPSP.cxx @@ -2277,16 +2277,19 @@ void AliAnalysisTaskFlowTPCTOFEPSP::UserExec(Option_t */*option*/) } } - if(fMonitorPhotonic) { + + if(fBackgroundSubtraction) { Int_t indexmother = -1; Int_t source = 1; if(mcthere) source = fBackgroundSubtraction->FindMother(mctrack->GetLabel(),indexmother); fBackgroundSubtraction->LookAtNonHFE(k, track, fInputEvent, 1, binct, deltaphi, source, indexmother); - + } + + if(fMonitorPhotonic) { if((!fAODAnalysis && mcthere) || !mcthere) { // background - source = 0; - indexmother = -1; + Int_t source = 0; + Int_t indexmother = -1; source = FindMother(TMath::Abs(track->GetLabel()),mcEvent, indexmother); valuensparseMCSourceDeltaPhiMaps[2] = source; if(mcEvent) fMCSourceDeltaPhiMaps->Fill(&valuensparseMCSourceDeltaPhiMaps[0]); @@ -2336,7 +2339,7 @@ void AliAnalysisTaskFlowTPCTOFEPSP::UserExec(Option_t */*option*/) } } - if(fMonitorPhotonic) fBackgroundSubtraction->CountPoolAssociated(fInputEvent,binct); + if(fBackgroundSubtraction) fBackgroundSubtraction->CountPoolAssociated(fInputEvent,binct); PostData(1, fListHist); diff --git a/PWGHF/hfe/macros/AddTaskHFEFlowTPCTOFEPSP.C b/PWGHF/hfe/macros/AddTaskHFEFlowTPCTOFEPSP.C index 1d1a42d6e14..b34e44d4a4d 100644 --- a/PWGHF/hfe/macros/AddTaskHFEFlowTPCTOFEPSP.C +++ b/PWGHF/hfe/macros/AddTaskHFEFlowTPCTOFEPSP.C @@ -90,7 +90,7 @@ AliAnalysisTask *AddTaskHFEFlowTPCTOFEPSP(Int_t trigger=0,Int_t aodfilter=16,Boo //task->SetBinCentralityLess(5,60.0); //task->SetBinCentralityLess(7,80.0); - if(debuglevel==3) { + if(debuglevel==6) { //***************************************// // test Configure NPE plugin // @@ -107,7 +107,7 @@ AliAnalysisTask *AddTaskHFEFlowTPCTOFEPSP(Int_t trigger=0,Int_t aodfilter=16,Boo hfeBackgroundCuts->SetMinNClustersTPC(100); hfeBackgroundCuts->SetMinNClustersTPCPID(80); hfeBackgroundCuts->SetMaxImpactParam(1.,2.); - hfeBackgroundCuts->SetAODFilterBit(4); + hfeBackgroundCuts->SetAODFilterBit(0); //hfeBackgroundCuts->SetQAOn(); // QA break AliHFEpid *pidbackground = backe->GetPIDBackground();