Skip to content

Commit 8b4657a

Browse files
fmazzascFrancesco Mazzaschi
andauthored
[PWGLF] Add pt cut (#14196)
Co-authored-by: Francesco Mazzaschi <fmazzasc@alipap1.cern.ch>
1 parent 974089a commit 8b4657a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

PWGLF/TableProducer/Strangeness/sigmaProtonCorr.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ struct sigmaProtonCorrTask {
7878
HistogramRegistry rSigmaProton{"sigmaProton", {}, OutputObjHandlingPolicy::AnalysisObject, true, true};
7979
// Configurable for event selection
8080
Configurable<float> cutzvertex{"cutZVertex", 10.0f, "Accepted z-vertex range (cm)"};
81+
82+
Configurable<float> minPtSigma{"minPtSigma", 1.f, "Minimum pT for Sigma candidates (GeV/c)"};
8183
Configurable<float> cutEtaDaught{"cutEtaDaughter", 0.8f, "Eta cut for daughter tracks"};
8284
Configurable<float> cutDCAtoPVSigma{"cutDCAtoPVSigma", 0.1f, "Max DCA to primary vertex for Sigma candidates (cm)"};
8385
Configurable<bool> doSigmaMinus{"doSigmaMinus", true, "If true, pair Sigma- candidates, else Sigma+"};
@@ -175,6 +177,11 @@ struct sigmaProtonCorrTask {
175177
std::array<float, 3> momDaug = {sigmaCand.pxDaug(), sigmaCand.pyDaug(), sigmaCand.pzDaug()};
176178
float alphaAP = getAlphaAP(momMoth, momDaug);
177179
float qtAP = getQtAP(momMoth, momDaug);
180+
181+
if (sigmaCand.ptMoth() < minPtSigma) {
182+
return false;
183+
}
184+
178185
if (alphaAP > alphaAPCut || (qtAP < qtAPCutLow || qtAP > qtAPCutHigh)) {
179186
return false;
180187
}

0 commit comments

Comments
 (0)