Skip to content

Commit d2d41ea

Browse files
authored
[PWGLF] Add histograms for inclusive V0s in MB events (#15647)
1 parent 49906a9 commit d2d41ea

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

PWGLF/Tasks/Strangeness/strangenessInJetsIons.cxx

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,10 @@ struct StrangenessInJetsIons {
458458
registryMC.add("K0s_reconstructed_MB", "K0s_reconstructed_MB", HistType::kTH2F, {multAxis, ptAxis});
459459
registryMC.add("Lambda_reconstructed_MB", "Lambda_reconstructed_MB", HistType::kTH2F, {multAxis, ptAxis});
460460
registryMC.add("AntiLambda_reconstructed_MB", "AntiLambda_reconstructed_MB", HistType::kTH2F, {multAxis, ptAxis});
461+
462+
registryMC.add("K0s_reconstructed_MB_incl", "K0s_reconstructed_MB_incl", HistType::kTH2F, {multAxis, ptAxis});
463+
registryMC.add("Lambda_reconstructed_MB_incl", "Lambda_reconstructed_MB_incl", HistType::kTH2F, {multAxis, ptAxis});
464+
registryMC.add("AntiLambda_reconstructed_MB_incl", "AntiLambda_reconstructed_MB_incl", HistType::kTH2F, {multAxis, ptAxis});
461465
}
462466
if (particleOfInterestDict[ParticleOfInterest::kCascades]) {
463467
registryMC.add("XiPos_reconstructed_jet", "XiPos_reconstructed_jet", HistType::kTH2F, {multAxis, ptAxis});
@@ -1217,8 +1221,6 @@ struct StrangenessInJetsIons {
12171221
auto motherNeg = mcParticles.iteratorAt(negParticle.mothersIds()[0]);
12181222
if (motherPos != motherNeg)
12191223
continue;
1220-
if (!motherPos.isPhysicalPrimary())
1221-
continue;
12221224

12231225
if (std::abs(motherPos.eta()) > 0.8)
12241226
continue;
@@ -1228,13 +1230,30 @@ struct StrangenessInJetsIons {
12281230

12291231
// K0s
12301232
if (passedK0ShortSelection(v0, pos, neg, vtxPos) && motherPos.pdgCode() == kK0Short) {
1231-
registryMC.fill(HIST("K0s_reconstructed_MB"), multiplicity, v0.pt());
1233+
registryMC.fill(HIST("K0s_reconstructed_MB_incl"), multiplicity, v0.pt());
12321234
}
12331235
// Lambda
12341236
if (passedLambdaSelection(v0, pos, neg, vtxPos) && motherPos.pdgCode() == kLambda0) {
1235-
registryMC.fill(HIST("Lambda_reconstructed_MB"), multiplicity, v0.pt());
1237+
registryMC.fill(HIST("Lambda_reconstructed_MB_incl"), multiplicity, v0.pt());
12361238
}
12371239
// AntiLambda
1240+
if (passedAntiLambdaSelection(v0, pos, neg, vtxPos) && motherPos.pdgCode() == kLambda0Bar) {
1241+
registryMC.fill(HIST("AntiLambda_reconstructed_MB_incl"), multiplicity, v0.pt());
1242+
}
1243+
1244+
if (!motherPos.isPhysicalPrimary())
1245+
continue;
1246+
1247+
// Histograms below are filled only for PhysicalPrimary particles
1248+
// K0s (primary)
1249+
if (passedK0ShortSelection(v0, pos, neg, vtxPos) && motherPos.pdgCode() == kK0Short) {
1250+
registryMC.fill(HIST("K0s_reconstructed_MB"), multiplicity, v0.pt());
1251+
}
1252+
// Lambda (primary)
1253+
if (passedLambdaSelection(v0, pos, neg, vtxPos) && motherPos.pdgCode() == kLambda0) {
1254+
registryMC.fill(HIST("Lambda_reconstructed_MB"), multiplicity, v0.pt());
1255+
}
1256+
// AntiLambda (primary)
12381257
if (passedAntiLambdaSelection(v0, pos, neg, vtxPos) && motherPos.pdgCode() == kLambda0Bar) {
12391258
registryMC.fill(HIST("AntiLambda_reconstructed_MB"), multiplicity, v0.pt());
12401259
}

0 commit comments

Comments
 (0)