@@ -715,7 +715,7 @@ struct FlowGenericFramework {
715715 registryQA.add (" K0/PiMinusTOF_K0" , " " , {HistType::kTH2D , {{ptAxis, axisNsigmaTOF}}});
716716 registryQA.add (" K0/hK0Phi" , " " , {HistType::kTH1D , {phiAxis}});
717717 registryQA.add (" K0/hK0Eta" , " " , {HistType::kTH1D , {etaAxis}});
718- registryQA.add (" K0/hK0AP" , " " , {HistType::kTH2D , {{100 , -1 , 1 }, {100 , 0 , 5 .}}});
718+ registryQA.add (" K0/hK0AP" , " " , {HistType::kTH2D , {{100 , -1 , 1 }, {500 , 0 , 1 .}}});
719719 registryQA.add (" K0/hK0Mass_sparse" , " " , {HistType::kTHnSparseF , {{axisK0Mass, ptAxis, nchAxis}}});
720720 registryQA.add (" K0/hK0s" , " " , {HistType::kTH1D , {singleCount}});
721721 registryQA.add (" K0/hK0s_corrected" , " " , {HistType::kTH1D , {singleCount}});
@@ -2916,20 +2916,6 @@ struct FlowGenericFramework {
29162916 return track.eta () > cfgKinematics.cfgEta ->first && track.eta () < cfgKinematics.cfgEta ->second ;
29172917 }
29182918
2919- template <typename TParticle>
2920- bool areGeneratedDaughtersWithinEfficiencyEtaAcceptance (const TParticle& particle)
2921- {
2922- if (!particle.has_daughters ()) {
2923- return false ;
2924- }
2925- for (const auto & daughter : particle.template daughters_as <aod::McParticles>()) {
2926- if (daughter.eta () <= cfgKinematics.cfgEta ->first || daughter.eta () >= cfgKinematics.cfgEta ->second ) {
2927- return false ;
2928- }
2929- }
2930- return true ;
2931- }
2932-
29332919 void fillV0EfficiencyRecoDebug (float pt, float centrality, int particleIndex, int stage)
29342920 {
29352921 registry.fill (HIST (" Efficiency/v0RecoDebug" ), pt, centrality, particleIndex, stage);
@@ -3010,7 +2996,7 @@ struct FlowGenericFramework {
30102996 return ;
30112997 }
30122998 fillV0EfficiencyRecoDebug (posMother.pt (), centrality, EfficiencyK0, V0EfficiencySelection);
3013- if (!areGeneratedDaughtersWithinEfficiencyEtaAcceptance (posMother )) {
2999+ if (!isWithinEfficiencyEtaAcceptance (posMcParticle) || ! isWithinEfficiencyEtaAcceptance (negMcParticle )) {
30143000 return ;
30153001 }
30163002 fillV0EfficiencyRecoDebug (posMother.pt (), centrality, EfficiencyK0, V0EfficiencyGeneratedDaughterEta);
@@ -3035,7 +3021,7 @@ struct FlowGenericFramework {
30353021 return ;
30363022 }
30373023 fillV0EfficiencyRecoDebug (posMother.pt (), centrality, EfficiencyLambda, V0EfficiencySelection);
3038- if (!areGeneratedDaughtersWithinEfficiencyEtaAcceptance (posMother )) {
3024+ if (!isWithinEfficiencyEtaAcceptance (posMcParticle) || ! isWithinEfficiencyEtaAcceptance (negMcParticle )) {
30393025 return ;
30403026 }
30413027 fillV0EfficiencyRecoDebug (posMother.pt (), centrality, EfficiencyLambda, V0EfficiencyGeneratedDaughterEta);
0 commit comments