Skip to content

Commit fda90eb

Browse files
Pass TrackPar by reference in calculateDCA
1 parent f7320e1 commit fda90eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Common/Tools/TrackPropagationModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ class TrackPropagationModule
385385
// TVertex type: either math_utils::Point3D<value_t> or o2::dataformats::VertexBase
386386
// TDCA type: either dim2_t or o2::dataformats::DCA
387387
template <typename TTrackPar, typename TVertex, typename TDCA>
388-
bool calculateDCA(TTrackPar trackPar, const TVertex& vtx, double b, TDCA* dca, double maxD)
388+
bool calculateDCA(TTrackPar& trackPar, const TVertex& vtx, double b, TDCA* dca, double maxD)
389389
{
390390
// propagate track to DCA to the vertex
391391
double sn, cs, alp = trackPar.getAlpha();

0 commit comments

Comments
 (0)