Skip to content

Commit 69425c4

Browse files
authored
[PWGLF] Strangeness in jets: add competing rejetion and histo jets vs mult (#14983)
1 parent 59bf9b6 commit 69425c4

File tree

1 file changed

+20
-37
lines changed

1 file changed

+20
-37
lines changed

PWGLF/Tasks/Strangeness/strangenessInJets.cxx

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ struct StrangenessInJets {
182182
Configurable<double> nsigmaTOFmax{"nsigmaTOFmax", +3.0f, "Maximum nsigma TOF"};
183183
Configurable<bool> requireITS{"requireITS", false, "Require ITS hit"};
184184
Configurable<bool> requireTOF{"requireTOF", false, "Require TOF hit"};
185+
Configurable<bool> doK0sRej{"doK0sRej", false, "K0 mass rejection for Lambda candidates"};
186+
Configurable<bool> doLamRej{"doLamRej", false, "Lambda mass rejection for K0s candidates"};
187+
Configurable<double> lamRejWindow{"lamRejWindow", 0.01f, "Mass window for Lam rejection"};
188+
Configurable<double> k0sRejWindow{"k0sRejWindow", 0.01f, "Mass window for K0 rejection"};
185189

186190
// V0 analysis parameters
187191
Configurable<double> minimumV0Radius{"minimumV0Radius", 0.5f, "Minimum V0 Radius"};
@@ -286,6 +290,7 @@ struct StrangenessInJets {
286290
// Event counters
287291
registryData.add("number_of_events_data", "number of events in data", HistType::kTH1D, {{20, 0, 20, "Event Cuts"}});
288292
registryData.add("number_of_events_vsmultiplicity", "number of events in data vs multiplicity", HistType::kTH1D, {{101, 0, 101, "Multiplicity percentile"}});
293+
registryData.add("number_of_jets_vsmultiplicity", "number of jets in data vs multiplicity", HistType::kTH1D, {{101, 0, 101, "Multiplicity percentile"}});
289294

290295
// Histograms for analysis of strange hadrons
291296
if (enabledSignals.value[ParticleOfInterest::kV0Particles]) {
@@ -323,6 +328,7 @@ struct StrangenessInJets {
323328
// Event counter
324329
registryMC.add("number_of_events_mc_gen", "number of gen events in mc", HistType::kTH1D, {{10, 0, 10, "Event Cuts"}});
325330
registryMC.add("number_of_events_vsmultiplicity_gen", "number of events vs multiplicity", HistType::kTH1D, {{101, 0, 101, "Multiplicity percentile"}});
331+
registryMC.add("number_of_jets_vsmultiplicity", "number of jets in mc gen vs multiplicity", HistType::kTH1D, {{101, 0, 101, "Multiplicity percentile"}});
326332

327333
// Histograms for analysis
328334
if (enabledSignals.value[ParticleOfInterest::kV0Particles]) {
@@ -638,6 +644,9 @@ struct StrangenessInJets {
638644
if (ntrack.tpcNSigmaPi() < nsigmaTPCmin || ntrack.tpcNSigmaPi() > nsigmaTPCmax)
639645
return false;
640646

647+
if (doK0sRej && std::abs(v0.mK0Short() - o2::constants::physics::MassK0Short) < k0sRejWindow)
648+
return false;
649+
641650
// PID selections (TOF): positive track = proton, negative track = pion
642651
if (requireTOF) {
643652
if (ptrack.tofNSigmaPr() < nsigmaTOFmin || ptrack.tofNSigmaPr() > nsigmaTOFmax)
@@ -730,6 +739,10 @@ struct StrangenessInJets {
730739
if (ntrack.tpcNSigmaPi() < nsigmaTPCmin || ntrack.tpcNSigmaPi() > nsigmaTPCmax)
731740
return false;
732741

742+
if (doLamRej && std::abs(v0.mLambda() - o2::constants::physics::MassLambda) < lamRejWindow)
743+
return false;
744+
;
745+
733746
// PID selections (TOF)
734747
if (requireTOF) {
735748
if (ptrack.tofNSigmaPi() < nsigmaTOFmin || ptrack.tofNSigmaPi() > nsigmaTOFmax)
@@ -1075,7 +1088,10 @@ struct StrangenessInJets {
10751088
selectedJet.emplace_back(jetAxis);
10761089
ue1.emplace_back(ueAxis1);
10771090
ue2.emplace_back(ueAxis2);
1091+
1092+
registryData.fill(HIST("number_of_jets_vsmultiplicity"), collision.centFT0M());
10781093
}
1094+
10791095
if (!isAtLeastOneJetSelected)
10801096
return;
10811097

@@ -1415,6 +1431,8 @@ struct StrangenessInJets {
14151431
continue;
14161432
}
14171433

1434+
registryMC.fill(HIST("number_of_jets_vsmultiplicity"), genMultiplicity);
1435+
14181436
// Loop over strange hadrons
14191437
for (const auto& hadron : hadronMomentum) {
14201438
// Compute distance of particles from jet and UE axes
@@ -2003,45 +2021,10 @@ struct StrangenessInJets {
20032021
continue;
20042022
if (std::fabs(v0.v0dcanegtopv()) < dcanegtoPVmin)
20052023
continue;
2006-
// PID selections (TPC) -- K0s
2007-
if (v0.ntpcsigmapospi() < nsigmaTPCmin || v0.ntpcsigmapospi() > nsigmaTPCmax)
2008-
continue;
2009-
if (v0.ntpcsigmanegpi() < nsigmaTPCmin || v0.ntpcsigmanegpi() > nsigmaTPCmax)
2024+
if (doK0sRej && std::abs(v0.massk0short() - o2::constants::physics::MassK0Short) < k0sRejWindow)
20102025
continue;
2011-
2012-
// PID selections (TOF) -- K0s
2013-
if (requireTOF) {
2014-
if (v0.ntofsigmapospi() < nsigmaTOFmin || v0.ntofsigmapospi() > nsigmaTOFmax)
2015-
continue;
2016-
if (v0.ntofsigmanegpi() < nsigmaTOFmin || v0.ntofsigmanegpi() > nsigmaTOFmax)
2017-
continue;
2018-
}
2019-
// PID selections (TPC): positive track = proton, negative track = pion -- Lam
2020-
if (v0.ntpcsigmapospr() < nsigmaTPCmin || v0.ntpcsigmapospr() > nsigmaTPCmax)
2026+
if (doLamRej && std::abs(v0.masslambda() - o2::constants::physics::MassLambda) < lamRejWindow)
20212027
continue;
2022-
if (v0.ntpcsigmanegpi() < nsigmaTPCmin || v0.ntpcsigmanegpi() > nsigmaTPCmax)
2023-
continue;
2024-
2025-
// PID selections (TOF): positive track = proton, negative track = pion -- Lam
2026-
if (requireTOF) {
2027-
if (v0.ntofsigmapospr() < nsigmaTOFmin || v0.ntofsigmapospr() > nsigmaTOFmax)
2028-
continue;
2029-
if (v0.ntofsigmanegpi() < nsigmaTOFmin || v0.ntofsigmanegpi() > nsigmaTOFmax)
2030-
continue;
2031-
}
2032-
// PID selections (TPC): negative track = proton, positive track = pion --- ALam
2033-
if (v0.ntpcsigmapospi() < nsigmaTPCmin || v0.ntpcsigmapospi() > nsigmaTPCmax)
2034-
continue;
2035-
if (v0.ntpcsigmanegpr() < nsigmaTPCmin || v0.ntpcsigmanegpr() > nsigmaTPCmax)
2036-
continue;
2037-
2038-
// PID selections (TOF): negative track = proton, positive track = pion --- ALam
2039-
if (requireTOF) {
2040-
if (v0.ntofsigmapospi() < nsigmaTOFmin || v0.ntofsigmapospi() > nsigmaTOFmax)
2041-
continue;
2042-
if (v0.ntofsigmanegpr() < nsigmaTOFmin || v0.ntofsigmanegpr() > nsigmaTOFmax)
2043-
continue;
2044-
}
20452028

20462029
// PID selections
20472030
bool isPIDK0s = false, isPIDLam = false, isPIDALam = false;

0 commit comments

Comments
 (0)