Skip to content

Commit ea2aebe

Browse files
committed
Add pT cut in thermal toy model
1 parent e46b2ac commit ea2aebe

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

PWGLF/Tasks/Strangeness/strangenessInJetsIons.cxx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,19 +1939,19 @@ struct StrangenessInJetsIons {
19391939
pj.set_user_index(p.pdgCode());
19401940
v0PseudoJets.push_back(pj);
19411941
// LOG(info) << "[AddV0sForJetReconstructionMCP] Add V0 as input for jet finder.";
1942+
}
1943+
}
19421944

1943-
// Remove V0 daughter particles if already in the input list for the jet finder
1944-
for (long unsigned int i = 0; i < fjParticleObj.size(); ++i) {
1945-
const auto& mcPart = fjParticleObj[i];
1946-
if (!mcPart.has_mothers())
1947-
continue;
1948-
auto mother = mcParticles.iteratorAt(mcPart.mothersIds()[0]);
1949-
int motherPdg = std::abs(mother.pdgCode());
1950-
if (motherPdg == kK0Short || motherPdg == kLambda0) {
1951-
isTrackReplaced[i] = true;
1952-
// LOG(info) << "[AddV0sForJetReconstructionMCP] V0 daughter particle found in fjParticleObj.";
1953-
}
1954-
}
1945+
// Remove V0 daughter particles if already in the input list for the jet finder
1946+
for (long unsigned int i = 0; i < fjParticleObj.size(); ++i) {
1947+
const auto& mcPart = fjParticleObj[i];
1948+
if (!mcPart.has_mothers())
1949+
continue;
1950+
auto mother = mcParticles.iteratorAt(mcPart.mothersIds()[0]);
1951+
int motherPdg = std::abs(mother.pdgCode());
1952+
if (motherPdg == kK0Short || motherPdg == kLambda0) {
1953+
isTrackReplaced[i] = true;
1954+
// LOG(info) << "[AddV0sForJetReconstructionMCP] V0 daughter particle found in fjParticleObj.";
19551955
}
19561956
}
19571957

@@ -2035,6 +2035,9 @@ struct StrangenessInJetsIons {
20352035
double phi = fRng.Uniform(0.0, TMath::TwoPi());
20362036
double eta = fRng.Uniform(configTracks.etaMin, configTracks.etaMax);
20372037

2038+
if (pt < 0.1f)
2039+
continue;
2040+
20382041
double px = pt * std::cos(phi);
20392042
double py = pt * std::sin(phi);
20402043
double pz = pt * std::sinh(eta);

0 commit comments

Comments
 (0)