@@ -64,8 +64,8 @@ struct Alice3HfTask3Prong {
6464
6565 int selectedPdg{-1 };
6666
67- using Cands3PReco = soa::Filtered<soa::Join<aod::Alice3Cand3Ps, aod::Alice3Sel3Ps, aod::Alice3McRecFlags, aod::Alice3SVResos >>;
68- using Cands3PRecoWMl = soa::Filtered<soa::Join<aod::Alice3Cand3Ps, aod::Alice3Sel3Ps, aod::Alice3Ml3Ps, aod::Alice3McRecFlags, aod::Alice3SVResos >>;
67+ using Cands3PReco = soa::Filtered<soa::Join<aod::Alice3Cand3Ps, aod::Alice3Sel3Ps, aod::Alice3McRecFlags>>;
68+ using Cands3PRecoWMl = soa::Filtered<soa::Join<aod::Alice3Cand3Ps, aod::Alice3Sel3Ps, aod::Alice3Ml3Ps, aod::Alice3McRecFlags>>;
6969 using Cands3PGen = soa::Join<aod::McParticles, aod::Alice3McGenFlags>;
7070
7171 Filter filterSelectCandidates = (aod::a3_hf_sel_3prong::isSelMassHypo0 == true || aod::a3_hf_sel_3prong::isSelMassHypo1 == true );
@@ -79,7 +79,6 @@ struct Alice3HfTask3Prong {
7979 ConfigurableAxis thnConfigAxisCanType{" thnConfigAxisCanType" , {5 , 0 ., 5 .}, " " };
8080 ConfigurableAxis thnAxisRapidity{" thnAxisRapidity" , {20 , -1 , 1 }, " Cand. rapidity bins" };
8181 ConfigurableAxis thnConfigAxisGenPtB{" thnConfigAxisGenPtB" , {1000 , 0 , 100 }, " Gen Pt B" };
82- ConfigurableAxis thnConfigAxisDeltaSecVtxCoord{" thnConfigAxisDeltaSecVtxCoord" , {1000 , -10 , 10 }, " " };
8382
8483 HistogramRegistry registry{" registry" , {}};
8584
@@ -143,9 +142,6 @@ struct Alice3HfTask3Prong {
143142 addHistogramsRec (" hCPAxy" , " cosine of pointing angle xy" , " entries" , {HistType::kTH1F , {{110 , -1.1 , 1.1 }}});
144143 addHistogramsRec (" hDca2" , " prong Chi2PCA to sec. vertex (cm)" , " entries" , {HistType::kTH1F , {{400 , 0 ., 20 .}}});
145144 addHistogramsRec (" hEta" , " #it{#eta}" , " entries" , {HistType::kTH1F , {{100 , -2 ., 2 .}}});
146- addHistogramsRec (" hDeltaXRecoGenSecVtx" , " p_{T} (GeV/#it{c})" , " #Delta X Sec. Vtx. (cm)" , {HistType::kTH2F , {thnConfigAxisPt, thnConfigAxisDeltaSecVtxCoord}});
147- addHistogramsRec (" hDeltaYRecoGenSecVtx" , " p_{T} (GeV/#it{c})" , " #Delta Y Sec. Vtx. (cm)" , {HistType::kTH2F , {thnConfigAxisPt, thnConfigAxisDeltaSecVtxCoord}});
148- addHistogramsRec (" hDeltaZRecoGenSecVtx" , " p_{T} (GeV/#it{c})" , " #Delta Z Sec. Vtx. (cm)" , {HistType::kTH2F , {thnConfigAxisPt, thnConfigAxisDeltaSecVtxCoord}});
149145 addHistogramsRec (" hd0VsPtProng0" , " prong 0 DCAxy to prim. vertex (cm)" , " #it{p}_{T} (GeV/#it{c})" , {HistType::kTH2F , {{600 , -0.4 , 0.4 }, {vbins}}});
150146 addHistogramsRec (" hd0VsPtProng1" , " prong 1 DCAxy to prim. vertex (cm)" , " #it{p}_{T} (GeV/#it{c})" , {HistType::kTH2F , {{600 , -0.4 , 0.4 }, {vbins}}});
151147 addHistogramsRec (" hd0VsPtProng2" , " prong 2 DCAxy to prim. vertex (cm)" , " #it{p}_{T} (GeV/#it{c})" , {HistType::kTH2F , {{600 , -0.4 , 0.4 }, {vbins}}});
@@ -261,18 +257,15 @@ struct Alice3HfTask3Prong {
261257 registry.fill (histoPrefix + HIST (" hImpParErrProng1VsPt" ) + histoSuffix, candidate.errorImpactParameterY1 (), candidate.pt ());
262258 registry.fill (histoPrefix + HIST (" hImpParErrProng2VsPt" ) + histoSuffix, candidate.errorImpactParameterY2 (), candidate.pt ());
263259 registry.fill (histoPrefix + HIST (" hDecLenErrVsPt" ) + histoSuffix, candidate.errorDecayLength (), candidate.pt ());
264- registry.fill (histoPrefix + HIST (" hDeltaXRecoGenSecVtx" ) + histoSuffix, candidate.pt (), candidate.deltaXSecVtx ());
265- registry.fill (histoPrefix + HIST (" hDeltaYRecoGenSecVtx" ) + histoSuffix, candidate.pt (), candidate.deltaYSecVtx ());
266- registry.fill (histoPrefix + HIST (" hDeltaZRecoGenSecVtx" ) + histoSuffix, candidate.pt (), candidate.deltaZSecVtx ());
267260 }
268261
269262 // / Fill MC histograms at reconstruction level
270263 // / \tparam CharmHad is the charm hadron species
271264 // / \tparam SaveMl indicates whether ML scores are saved in the THnSparse
272265 // / \tparam CandsRec is the type of the reconstructed candidates collection
273266 // / \param candidates is the collection of reconstructed candidates
274- template <CharmHadAlice3 CharmHad, bool SaveMl, typename CandsRec, typename GenParticles >
275- void fillHistosMcRec (CandsRec const & candidates, GenParticles const & genParticles )
267+ template <CharmHadAlice3 CharmHad, bool SaveMl, typename CandsRec, typename AllParticles >
268+ void fillHistosMcRec (CandsRec const & candidates, AllParticles const & allParticles )
276269 {
277270 registry.fill (HIST (" MC/rec/hCandidateCounter" ), 0 .);
278271 for (const auto & candidate : candidates) {
@@ -284,13 +277,13 @@ struct Alice3HfTask3Prong {
284277 registry.fill (HIST (" MC/rec/hCandidateCounter" ), 2 .);
285278 if (candidate.particleMcRec () >= 0 ) {
286279 registry.fill (HIST (" MC/rec/hCandidateCounter" ), 3 .);
287- auto mcParticle = genParticles .iteratorAt (candidate.particleMcRec ());
280+ auto mcParticle = allParticles .iteratorAt (candidate.particleMcRec ());
288281 if (mcParticle.has_daughters ()) {
289282 auto daughters = mcParticle.daughtersIds ();
290283 LOG (debug) << " Reco candidate matched to MC particle with PDG " << mcParticle.pdgCode () << " daughters: " << daughters.size ();
291284 int prongIdx = 0 ;
292285 for (int dauId = daughters[0 ]; dauId <= daughters[1 ]; dauId++) {
293- auto dau = genParticles .iteratorAt (dauId);
286+ auto dau = allParticles .iteratorAt (dauId);
294287 LOG (debug) << " dauId: " << dauId << " PDG: " << dau.pdgCode () << " with pT: " << dau.pt ();
295288 switch (prongIdx) {
296289 case 0 :
@@ -383,9 +376,9 @@ struct Alice3HfTask3Prong {
383376 // / \tparam ParticleType is the type of the generated particle
384377 // / \tparam TableType is the type of the full table (non-Partition)
385378 // / \param particle is a generated particle
386- // / \param genParticles is the full table of particles for iteratorAt access
379+ // / \param allParticles is the full table of particles for iteratorAt access
387380 template <CharmHadAlice3 CharmHad, int SignalType, typename ParticleType, typename TableType>
388- void fillHistogramsGen (ParticleType const & particle, TableType const & genParticles )
381+ void fillHistogramsGen (ParticleType const & particle, TableType const & allParticles )
389382 {
390383 LOG (debug) << " Filling generated histograms for signal type " << SignalType;
391384 static constexpr auto histoPrefix = HIST (" MC/gen/" ) + HIST (SignalFolders[SignalType]) + HIST (" /" );
@@ -407,7 +400,7 @@ struct Alice3HfTask3Prong {
407400 float pz = 0 .f ;
408401 float e = 0 .f ;
409402 for (int iDau = firstDauIdx; iDau <= lastDauIdx && iDau > 0 ; iDau++) {
410- const auto & dau = genParticles .iteratorAt (iDau);
403+ const auto & dau = allParticles .iteratorAt (iDau);
411404 e += dau.e ();
412405 px += dau.px ();
413406 py += dau.py ();
@@ -422,11 +415,11 @@ struct Alice3HfTask3Prong {
422415 // / Fill MC histograms at generated level
423416 // / \tparam CharmHad is the charm hadron species
424417 // / \tparam CandsGen is the type of the generated candidates collection
425- // / \tparam GenParticles is the type of the full particle table
418+ // / \tparam AllParticles is the type of the full particle table
426419 // / \param mcParticles is the collection of generated particles (can be a Partition)
427- // / \param genParticles is the full table of particles
428- template <CharmHadAlice3 CharmHad, typename CandsGen, typename GenParticles >
429- void fillHistosMcGen (CandsGen const & mcParticles, GenParticles const & genParticles )
420+ // / \param allParticles is the full table of particles
421+ template <CharmHadAlice3 CharmHad, typename CandsGen, typename AllParticles >
422+ void fillHistosMcGen (CandsGen const & mcParticles, AllParticles const & allParticles )
430423 {
431424 // MC gen.
432425 for (const auto & particle : mcParticles) {
@@ -438,14 +431,14 @@ struct Alice3HfTask3Prong {
438431 const auto ptGen = particle.pt ();
439432 const auto originType = particle.originMcGen ();
440433
441- fillHistogramsGen<CharmHad, Signal>(particle, genParticles );
434+ fillHistogramsGen<CharmHad, Signal>(particle, allParticles );
442435
443436 float ptGenB = -1 .f ;
444437 if (originType == RecoDecay::OriginType::Prompt) {
445- fillHistogramsGen<CharmHad, Prompt>(particle, genParticles );
438+ fillHistogramsGen<CharmHad, Prompt>(particle, allParticles );
446439 } else if (particle.originMcGen () == RecoDecay::OriginType::NonPrompt) {
447440 ptGenB = particle.bHadMotherPtGen ();
448- fillHistogramsGen<CharmHad, NonPrompt>(particle, genParticles );
441+ fillHistogramsGen<CharmHad, NonPrompt>(particle, allParticles );
449442 }
450443
451444 if (fillThn) {
0 commit comments