Update HFE v2
authorrbailhac <Raphaelle.Bailhache@cern.ch>
Tue, 2 Dec 2014 18:29:44 +0000 (19:29 +0100)
committerrbailhac <Raphaelle.Bailhache@cern.ch>
Tue, 2 Dec 2014 18:29:44 +0000 (19:29 +0100)
PWGHF/hfe/AliAnalysisTaskFlowTPCTOFEPSP.cxx
PWGHF/hfe/macros/AddTaskHFEFlowTPCTOFEPSP.C

index 4b05eef..19366ff 100644 (file)
@@ -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);
  
index 1d1a42d..b34e44d 100644 (file)
@@ -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();