Skip to content

Commit

Permalink
restore mcRecoParticles argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcellocosti committed Dec 30, 2024
1 parent e9bddd3 commit ed50a50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PWGHF/D2H/Tasks/taskDplus.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ struct HfTaskDplus {
// Run analysis for the reconstructed Dplus candidates with MC matching
/// \param recoCandidates are reconstructed candidates
/// \param recoColls are reconstructed collisions
template <bool fillMl>
void runAnalysisMcRec(McRecoCollisionsCent const& /*recoColls*/)
template <bool fillMl, typename T1>
void runAnalysisMcRec(const T1& /*recoCandidates*/, McRecoCollisionsCent const& /*recoColls*/)
{
float cent{-1};
float occ{-1};
Expand Down Expand Up @@ -702,7 +702,7 @@ struct HfTaskDplus {
McRecoCollisionsCent const& mcRecoCollisions,
aod::McCollisions const& mcGenCollisions)
{
runAnalysisMcRec<false>(mcRecoCollisions);
runAnalysisMcRec<false>(mcRecoParticles, mcRecoCollisions);
runAnalysisMcGen<false>(mcGenCollisions, mcRecoCollisions, mcGenParticles);
}
PROCESS_SWITCH(HfTaskDplus, processMc, "Process MC w/o ML", false);
Expand All @@ -712,7 +712,7 @@ struct HfTaskDplus {
McRecoCollisionsCent const& mcRecoCollisions,
aod::McCollisions const& mcGenCollisions)
{
runAnalysisMcRec<true>(mcRecoCollisions);
runAnalysisMcRec<true>(mcRecoParticles, mcRecoCollisions);
runAnalysisMcGen<true>(mcGenCollisions, mcRecoCollisions, mcGenParticles);
}
PROCESS_SWITCH(HfTaskDplus, processMcWithMl, "Process MC with ML", false);
Expand Down

0 comments on commit ed50a50

Please sign in to comment.