Skip to content

Commit 23a1203

Browse files
authored
[PWGHF] Fixing bug introduced in moving McGen part of candidate creators to utility file (#9483)
1 parent 3c0ef12 commit 23a1203

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

PWGHF/TableProducer/candidateCreator2Prong.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ struct HfCandidateCreator2ProngExpressions {
840840
}
841841
continue;
842842
}
843-
hf_mc_gen::fillMcMatchGen2Prong(mcParticlesPerMcColl, rowMcMatchGen, rejectBackground);
843+
hf_mc_gen::fillMcMatchGen2Prong(mcParticles, mcParticlesPerMcColl, rowMcMatchGen, rejectBackground);
844844
}
845845
}
846846

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ struct HfCandidateCreator3ProngExpressions {
10491049
}
10501050
continue;
10511051
}
1052-
hf_mc_gen::fillMcMatchGen3Prong(mcParticlesPerMcColl, rowMcMatchGen, rejectBackground, createDplus, createDs, createLc, createXic);
1052+
hf_mc_gen::fillMcMatchGen3Prong(mcParticles, mcParticlesPerMcColl, rowMcMatchGen, rejectBackground, createDplus, createDs, createLc, createXic);
10531053
}
10541054
}
10551055

PWGHF/TableProducer/candidateCreatorMcGen.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ struct HfCandidateCreatorMcGen {
5555
aod::McParticles const& mcParticles)
5656
{
5757
if (fill2Prong) {
58-
hf_mc_gen::fillMcMatchGen2Prong(mcParticles, rowMcMatchGen2Prong, rejectBackground2Prong);
58+
hf_mc_gen::fillMcMatchGen2Prong(mcParticles, mcParticles, rowMcMatchGen2Prong, rejectBackground2Prong);
5959
}
6060
if (fill3Prong) {
61-
hf_mc_gen::fillMcMatchGen3Prong(mcParticles, rowMcMatchGen3Prong, rejectBackground3Prong, createDplus, createDs, createLc, createXic);
61+
hf_mc_gen::fillMcMatchGen3Prong(mcParticles, mcParticles, rowMcMatchGen3Prong, rejectBackground3Prong, createDplus, createDs, createLc, createXic);
6262
}
6363
if (fillBplus) {
6464
hf_mc_gen::fillMcMatchGenBplus(mcParticles, rowMcMatchGenBplus);

PWGHF/Utils/utilsMcGen.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
namespace hf_mc_gen
3131
{
3232

33-
template <typename T, typename U>
34-
void fillMcMatchGen2Prong(T const& mcParticles, U& rowMcMatchGen, bool rejectBackground)
33+
template <typename T, typename U, typename V>
34+
void fillMcMatchGen2Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V& rowMcMatchGen, bool rejectBackground)
3535
{
3636
using namespace o2::constants::physics;
3737

3838
// Match generated particles.
39-
for (const auto& particle : mcParticles) {
39+
for (const auto& particle : mcParticlesPerMcColl) {
4040
int8_t flag = 0;
4141
int8_t origin = 0;
4242
int8_t sign = 0;
@@ -78,13 +78,13 @@ void fillMcMatchGen2Prong(T const& mcParticles, U& rowMcMatchGen, bool rejectBac
7878
}
7979
}
8080

81-
template <typename T, typename U>
82-
void fillMcMatchGen3Prong(T const& mcParticles, U& rowMcMatchGen, bool rejectBackground, bool createDplus, bool createDs, bool createLc, bool createXic)
81+
template <typename T, typename U, typename V>
82+
void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V& rowMcMatchGen, bool rejectBackground, bool createDplus, bool createDs, bool createLc, bool createXic)
8383
{
8484
using namespace o2::constants::physics;
8585

8686
// Match generated particles.
87-
for (const auto& particle : mcParticles) {
87+
for (const auto& particle : mcParticlesPerMcColl) {
8888
int8_t flag = 0;
8989
int8_t origin = 0;
9090
int8_t channel = 0;

0 commit comments

Comments
 (0)