Skip to content

Commit 7c180d6

Browse files
authored
[PWGLF] Included all resonances for generated and rec MC (AliceO2Group#9358)
1 parent b2a1496 commit 7c180d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGLF/Tasks/Resonances/higherMassResonances.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ struct HigherMassResonances {
119119
// Configurable for MC
120120
Configurable<bool> allGenCollisions{"allGenCollisions", true, "To fill all generated collisions for the signal loss calculations"};
121121
Configurable<bool> cTVXEvsel{"cTVXEvsel", true, "Triggger selection"};
122+
Configurable<int> selectMCparticles{"selectMCparticles", 1, "0: f0(1710), 1: f2(1525), 2: a2(1320), 3: f0(1370), 4: f0(1500)"};
123+
std::vector<int> pdgCodes = {10331, 335, 115, 10221, 9030221};
122124

123125
// output THnSparses
124126
Configurable<bool> activateTHnSparseCosThStarHelicity{"activateTHnSparseCosThStarHelicity", false, "Activate the THnSparse with cosThStar w.r.t. helicity axis"};
@@ -1014,7 +1016,7 @@ struct HigherMassResonances {
10141016
// std::cout << "PDG code mother " << mcParticle.pdgCode() << std::endl;
10151017
// }
10161018
// counter++;
1017-
if (std::abs(mcParticle.pdgCode()) != 10331) // f2(1525), f0(1710)
1019+
if (std::abs(mcParticle.pdgCode()) != pdgCodes[selectMCparticles]) // f2(1525), f0(1710)
10181020
{
10191021
continue;
10201022
}
@@ -1181,7 +1183,7 @@ struct HigherMassResonances {
11811183
// if (counter2 < 1e4)
11821184
// std::cout << "Mother2 pdg code: " << motpdgs2 << " p_{T} " << mothertrack2.pt() << "Global index " << mothertrack1.globalIndex() << " event " << eventCounter << std::endl;
11831185

1184-
if (mothertrack1.pdgCode() != 10331) {
1186+
if (mothertrack1.pdgCode() != pdgCodes[selectMCparticles]) {
11851187
continue;
11861188
}
11871189
hMChists.fill(HIST("events_checkrec"), 15.5);

0 commit comments

Comments
 (0)