Skip to content

Commit e637ded

Browse files
committed
first developments for TrackPar optimization
1 parent 8030bff commit e637ded

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PWGLF/Utils/strangenessBuilderHelper.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ class strangenessBuilderHelper
266266
//_______________________________________________________________________
267267
// standard build V0 function. Populates ::v0 object
268268
// ::v0 will be initialized to defaults if build fails
269+
// Note: TTrackParametrization can be one out of TrackPar
270+
// and TrackParCov, but note that TrackParCov implies
271+
// the update of covariance matrices with multiple scattering
272+
// contributions and will thus require more CPU. It is
273+
// thus advisable to not use TrackParCovs unless covariance
274+
// matrices are strictly necessary in order to save CPU.
269275
template <bool useSelections = true, typename TTrack, typename TTrackParametrization>
270276
bool buildV0Candidate(int collisionIndex,
271277
float pvX, float pvY, float pvZ,
@@ -313,6 +319,10 @@ class strangenessBuilderHelper
313319
auto positiveTrackParamCopy = positiveTrackParam;
314320
auto negativeTrackParamCopy = negativeTrackParam;
315321

322+
//_____________________________________________________________________________________________________________
323+
// core processing: different for TrackPar vs TrackParCov
324+
325+
316326
o2::base::Propagator::Instance()->propagateToDCABxByBz({pvX, pvY, pvZ}, positiveTrackParamCopy, 2.f, fitter.getMatCorrType(), &dcaInfo);
317327
v0.positiveDCAxy = dcaInfo[0];
318328

0 commit comments

Comments
 (0)