Skip to content

Commit b2cd7e5

Browse files
author
Laura Serksnyte
committed
Add min pT cut
1 parent 1c80af5 commit b2cd7e5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

PWGLF/Tasks/Resonances/f1protoncorrelation.cxx

Lines changed: 7 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) {
@@ -345,6 +346,7 @@ struct f1protoncorrelation {
345346
}
346347
}
347348
if (f1track.f1SignalStat() == -1) {
349+
histos.fill(HIST("h2SameEventInvariantMassLike_mass"), relative_momentum, F1.Pt(), F1.M(), protontrack.protonCharge(), collision.numContrib());
348350
histos.fill(HIST("h2SameEventInvariantMassLike_mass"), relative_momentum, F1.Pt(), F1.M(), protontrack.protonCharge(), collision.numContrib());
349351
if (fillSparse) {
350352
histos.fill(HIST("SEMassLike"), F1.M(), F1.Pt(), Proton.Pt(), relative_momentum, combinedTPC, protontrack.protonCharge());
@@ -405,7 +407,7 @@ struct f1protoncorrelation {
405407

406408
for (auto const& t2 : p_c1) { // proton from c1
407409
Proton.SetXYZM(t2.protonPx(), t2.protonPy(), t2.protonPz(), 0.938);
408-
if (Proton.Pt() > momentumProtonMax)
410+
if (Proton.Pt() > momentumProtonMax || Proton.Pt() < momentumProtonMin)
409411
continue;
410412
if (Proton.P() < momentumTOFProton && TMath::Abs(t2.protonNsigmaTPC()) > 2.5)
411413
continue;
@@ -475,7 +477,7 @@ struct f1protoncorrelation {
475477

476478
for (auto const& t2 : p_c2) { // proton from c2
477479
Proton.SetXYZM(t2.protonPx(), t2.protonPy(), t2.protonPz(), 0.938);
478-
if (Proton.Pt() > momentumProtonMax)
480+
if (Proton.Pt() > momentumProtonMax || Proton.Pt() < momentumProtonMin)
479481
continue;
480482
if (Proton.P() < momentumTOFProton && TMath::Abs(t2.protonNsigmaTPC()) > 2.5)
481483
continue;
@@ -580,7 +582,7 @@ struct f1protoncorrelation {
580582
combinedTPC = (t1.f1d1TPC() - t1.f1d2TPC()) / (t1.f1d1TPC() + t1.f1d2TPC());
581583
}
582584
Proton.SetXYZM(t2.protonPx(), t2.protonPy(), t2.protonPz(), 0.938);
583-
if (Proton.Pt() > momentumProtonMax) {
585+
if (Proton.Pt() > momentumProtonMax || Proton.Pt() < momentumProtonMin) {
584586
continue;
585587
}
586588
if (Proton.P() < momentumTOFProton && TMath::Abs(t2.protonNsigmaTPC()) > 2.5) {
@@ -630,6 +632,7 @@ struct f1protoncorrelation {
630632
}
631633
}
632634
if (t1.f1SignalStat() == -1) {
635+
histos.fill(HIST("h2MixEventInvariantMassLike_mass"), relative_momentum, F1.Pt(), F1.M(), t2.protonCharge(), collision1.numContrib());
633636
histos.fill(HIST("h2MixEventInvariantMassLike_mass"), relative_momentum, F1.Pt(), F1.M(), t2.protonCharge(), collision1.numContrib());
634637
if (fillSparse) {
635638
histos.fill(HIST("MEMassLike"), F1.M(), F1.Pt(), Proton.Pt(), relative_momentum, combinedTPC, t2.protonCharge());

0 commit comments

Comments
 (0)