Skip to content

Commit d337709

Browse files
author
Laura Serksnyte
committed
Add min pT cut
1 parent c3e4a3e commit d337709

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

PWGLF/Tasks/Resonances/f1protoncorrelation.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ struct f1protoncorrelation {
7878
Configurable<float> momentumTOFKaonMax{"momentumTOFKaonMax", 0.9, "Kaon momentum TOF Max"};
7979
Configurable<float> momentumTOFProton{"momentumTOFProton", 0.7, "Proton momentum TOF"};
8080
Configurable<float> momentumProtonMax{"momentumProtonMax", 3.0, "Maximum proton momentum"};
81+
Configurable<float> momentumProtonMin{"momentumProtonMin", 0.1, "Minimum proton momentum"};
8182
Configurable<float> lowPtF1{"lowPtF1", 1.0, "PT cut F1"};
8283
Configurable<int> nRot{"nRot", 4, "Number of rotational bkg"};
8384
// Event Mixing
@@ -289,7 +290,7 @@ struct f1protoncorrelation {
289290
}
290291
for (auto protontrack : protontracks) {
291292
Proton.SetXYZM(protontrack.protonPx(), protontrack.protonPy(), protontrack.protonPz(), 0.938);
292-
if (Proton.Pt() > momentumProtonMax) {
293+
if (Proton.Pt() > momentumProtonMax || Proton.Pt() < momentumProtonMin) {
293294
continue;
294295
}
295296
if (Proton.P() < momentumTOFProton && TMath::Abs(protontrack.protonNsigmaTPC()) > 2.5) {
@@ -406,7 +407,7 @@ struct f1protoncorrelation {
406407

407408
for (auto const& t2 : p_c1) { // proton from c1
408409
Proton.SetXYZM(t2.protonPx(), t2.protonPy(), t2.protonPz(), 0.938);
409-
if (Proton.Pt() > momentumProtonMax)
410+
if (Proton.Pt() > momentumProtonMax || Proton.Pt() < momentumProtonMin)
410411
continue;
411412
if (Proton.P() < momentumTOFProton && TMath::Abs(t2.protonNsigmaTPC()) > 2.5)
412413
continue;
@@ -476,7 +477,7 @@ struct f1protoncorrelation {
476477

477478
for (auto const& t2 : p_c2) { // proton from c2
478479
Proton.SetXYZM(t2.protonPx(), t2.protonPy(), t2.protonPz(), 0.938);
479-
if (Proton.Pt() > momentumProtonMax)
480+
if (Proton.Pt() > momentumProtonMax || Proton.Pt() < momentumProtonMin)
480481
continue;
481482
if (Proton.P() < momentumTOFProton && TMath::Abs(t2.protonNsigmaTPC()) > 2.5)
482483
continue;
@@ -581,7 +582,7 @@ struct f1protoncorrelation {
581582
combinedTPC = (t1.f1d1TPC() - t1.f1d2TPC()) / (t1.f1d1TPC() + t1.f1d2TPC());
582583
}
583584
Proton.SetXYZM(t2.protonPx(), t2.protonPy(), t2.protonPz(), 0.938);
584-
if (Proton.Pt() > momentumProtonMax) {
585+
if (Proton.Pt() > momentumProtonMax || Proton.Pt() < momentumProtonMin) {
585586
continue;
586587
}
587588
if (Proton.P() < momentumTOFProton && TMath::Abs(t2.protonNsigmaTPC()) > 2.5) {

0 commit comments

Comments
 (0)