Skip to content

Commit c2aed8a

Browse files
lauraserLaura Serksnyte
andauthored
[PWGLF] Add min pT cut (#13642)
Co-authored-by: Laura Serksnyte <laura.serksnyte@cern.ch>
1 parent ca28321 commit c2aed8a

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) {
@@ -405,7 +406,7 @@ struct f1protoncorrelation {
405406

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

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

0 commit comments

Comments
 (0)