Skip to content

Commit d5fdffa

Browse files
committed
PWGLF/Strangeness: add possibility to accept ITSsa tracks in strangenessbuilder.cxx
1 parent b5699e6 commit d5fdffa

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ struct StrangenessBuilder {
318318
Configurable<float> dcav0dau{"dcav0dau", 1.0, "DCA V0 Daughters"};
319319
Configurable<float> v0radius{"v0radius", 0.9, "v0radius"};
320320
Configurable<float> maxDaughterEta{"maxDaughterEta", 5.0, "Maximum daughter eta (in abs value)"};
321+
Configurable<bool> acceptITSonly{"acceptITSonly", false, "flag to accept ITSonly tracks"};
321322

322323
// MC builder options
323324
Configurable<bool> mc_populateV0MCCoresSymmetric{"mc_populateV0MCCoresSymmetric", false, "populate V0MCCores table for derived data analysis, keep V0MCCores joinable with V0Cores"};
@@ -947,7 +948,7 @@ struct StrangenessBuilder {
947948
// process candidate with helper, generate properties for consulting
948949
// <false>: do not apply selections: do as much as possible to preserve
949950
// candidate at this level and do not select with topo selections
950-
if (straHelper.buildV0Candidate<false>(v0tableGrouped[iV0].collisionIds[ic], collision.posX(), collision.posY(), collision.posZ(), pTrack, nTrack, posTrackPar, negTrackPar, true, false, true)) {
951+
if (straHelper.buildV0Candidate<false>(v0tableGrouped[iV0].collisionIds[ic], collision.posX(), collision.posY(), collision.posZ(), pTrack, nTrack, posTrackPar, negTrackPar, true, false, true, v0BuilderOpts.acceptITSonly)) {
951952
// candidate built, check pointing angle
952953
if (straHelper.v0.pointingAngle < bestPointingAngle) {
953954
bestPointingAngle = straHelper.v0.pointingAngle;
@@ -1425,7 +1426,7 @@ struct StrangenessBuilder {
14251426
}
14261427
}
14271428

1428-
if (!straHelper.buildV0Candidate(v0.collisionId, pvX, pvY, pvZ, posTrack, negTrack, posTrackPar, negTrackPar, v0.isCollinearV0, mEnabledTables[kV0Covs], true)) {
1429+
if (!straHelper.buildV0Candidate(v0.collisionId, pvX, pvY, pvZ, posTrack, negTrack, posTrackPar, negTrackPar, v0.isCollinearV0, mEnabledTables[kV0Covs], true, v0BuilderOpts.acceptITSonly)) {
14291430
products.v0dataLink(-1, -1);
14301431
continue;
14311432
}

PWGLF/Utils/strangenessBuilderHelper.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,16 @@ class strangenessBuilderHelper
273273
TTrackParametrization& negativeTrackParam,
274274
bool useCollinearFit = false,
275275
bool calculateCovariance = false,
276-
bool acceptTPCOnly = false)
276+
bool acceptTPCOnly = false,
277+
bool acceptITSOnly = false)
277278
{
278279
if constexpr (useSelections) {
279280
// verify track quality
280-
if (positiveTrack.tpcNClsCrossedRows() < v0selections.minCrossedRows) {
281+
if (!acceptITSOnly && positiveTrack.tpcNClsCrossedRows() < v0selections.minCrossedRows) {
281282
v0 = {};
282283
return false;
283284
}
284-
if (negativeTrack.tpcNClsCrossedRows() < v0selections.minCrossedRows) {
285+
if (!acceptITSOnly && negativeTrack.tpcNClsCrossedRows() < v0selections.minCrossedRows) {
285286
v0 = {};
286287
return false;
287288
}

0 commit comments

Comments
 (0)