Skip to content

Commit 36501fc

Browse files
authored
[PWGLF] Add an option to update ST TrackPar using PV in kink builder (#12233)
1 parent 990e762 commit 36501fc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

PWGLF/TableProducer/Common/kinkBuilder.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ struct kinkBuilder {
111111
Configurable<float> nTPCClusMinDaug{"nTPCClusMinDaug", 80, "daug NTPC clusters cut"};
112112
Configurable<bool> askTOFforDaug{"askTOFforDaug", false, "If true, ask for TOF signal"};
113113
Configurable<bool> doSVRadiusCut{"doSVRadiusCut", true, "If true, apply the cut on the radius of the secondary vertex and tracksIU"};
114+
Configurable<bool> updateMothTrackUsePV{"updateMothTrackUsePV", false, "If true, update the mother track parameters using the primary vertex"};
114115

115116
o2::vertexing::DCAFitterN<2> fitter;
116117
o2::base::MatLayerCylSet* lut = nullptr;
@@ -313,6 +314,14 @@ struct kinkBuilder {
313314
continue;
314315
}
315316

317+
if (updateMothTrackUsePV) {
318+
// update the mother track parameters using the primary vertex
319+
trackParCovMoth = trackParCovMothPV;
320+
if (!trackParCovMoth.update(primaryVertex)) {
321+
continue;
322+
}
323+
}
324+
316325
int nCand = 0;
317326
try {
318327
nCand = fitter.process(trackParCovMoth, trackParCovDaug);

0 commit comments

Comments
 (0)