diff --git a/PWGLF/Tasks/Resonances/kstarInOO.cxx b/PWGLF/Tasks/Resonances/kstarInOO.cxx index a5aa4753276..d295aa655eb 100644 --- a/PWGLF/Tasks/Resonances/kstarInOO.cxx +++ b/PWGLF/Tasks/Resonances/kstarInOO.cxx @@ -222,7 +222,11 @@ struct kstarInOO { histos.add("QA_track_pT_AC", "QA_track_pT_AC", kTH1F, {{13, 0.0, 13.0}}); } if (cfgJetQAHistos) { - histos.add("nTriggerQA", "nTriggerQA", kTH1F, {{7, 0.0, 7.0}}); + histos.add("nTriggerQA", "nTriggerQA", kTH1F, {{8, 0.0, 8.0}}); + histos.add("nTriggerQA_GoodEv", "nTriggerQA_GoodEv", kTH1F, {{8, 0.0, 8.0}}); + histos.add("nTriggerQA_GoodTrig", "nTriggerQA_GoodTrig", kTH1F, {{8, 0.0, 8.0}}); + histos.add("nTriggerQA_GoodEvTrig", "nTriggerQA_GoodEvTrig", kTH1F, {{8, 0.0, 8.0}}); + histos.add("JetpT", "Jet pT (GeV/c)", kTH1F, {{4000, 0., 200.}}); histos.add("JetEta", "Jet Eta", kTH1F, {{100, -1.0, 1.0}}); histos.add("JetPhi", "Jet Phi", kTH1F, {{80, -1.0, 7.0}}); @@ -1149,12 +1153,10 @@ struct kstarInOO { if (!jetderiveddatautilities::selectTrigger(collision, RealTriggerMaskBits)) return; - - histos.fill(HIST("nEvents"), 1.5); // Before passing the condition - if (!jetderiveddatautilities::selectCollision(collision, eventSelectionBits)) { return; } + histos.fill(HIST("nEvents"), 1.5); // Before passing the condition bool INELgt0 = false; for (auto& jetTrack : jetTracks) { @@ -1571,13 +1573,22 @@ struct kstarInOO { // check K* PID if (goodEv) { histos.fill(HIST("hGen_pT_GoodEv"), particle.pt()); - } + + } // goodEv + if (goodTrig) { histos.fill(HIST("hGen_pT_GoodTrig"), particle.pt()); - } + + } // goodTrig + if (goodEv && goodTrig) { histos.fill(HIST("hGen_pT_GoodEvTrig"), particle.pt()); - } + + if (cfgJetQAHistos) { + histos.fill(HIST("nTriggerQA"), 7.5); + } + + } // goodEvTrig } // cfgJetMCHistos } // mcParticles } // recocolls (=reconstructed collisions) @@ -1585,8 +1596,8 @@ struct kstarInOO { //================= //|| Efficiency //================= - if (fabs(collision.posZ()) > cfgEventVtxCut) - return; + // if (fabs(collision.posZ()) > cfgEventVtxCut) + // return; for (auto& recocoll : recocolls) { // poorly reconstructed auto goodEv = jetderiveddatautilities::selectCollision(recocoll, eventSelectionBits);