2222
2323#include < CommonConstants/MathConstants.h>
2424#include < DCAFitter/DCAFitterN.h>
25- #include < MathUtils/Utils .h>
25+ #include < MathUtils/Cartesian .h>
2626#include < ReconstructionDataFormats/HelixHelper.h>
2727#include < ReconstructionDataFormats/Track.h>
2828
@@ -44,7 +44,7 @@ inline o2::track::TrackParCov trackFromLeg(LegParam const& leg)
4444 std::array<float , 21 > cov{}; // o2-linter: disable=magic-number (lab-frame covariance has 21 elements)
4545 cov[0 ] = cov[2 ] = cov[5 ] = 0 .01f ; // o2-linter: disable=magic-number (placeholder sigma_xyz = 0.1 cm)
4646 cov[9 ] = cov[14 ] = cov[20 ] = 1e-4f ; // o2-linter: disable=magic-number (placeholder sigma_p = 0.01 GeV/c)
47- return o2::track::TrackParCov ( leg.xyz , leg.mom , cov, leg.charge , true ) ;
47+ return { leg.xyz , leg.mom , cov, leg.charge , true } ;
4848}
4949
5050inline std::array<float , 3 > getPropMomentumFromTrackHelix (const float s, const o2::track::TrackParCov& track,
@@ -57,7 +57,7 @@ inline std::array<float, 3> getPropMomentumFromTrackHelix(const float s, const o
5757 if (dotProd < 0 .f ) {
5858 addPhi -= o2::constants::math::PI ;
5959 }
60- const float phi = RecoDecay::constrainAngle<float >(phi0 + dphi + addPhi);
60+ const auto phi = RecoDecay::constrainAngle<float >(phi0 + dphi + addPhi);
6161 return {std::cos (phi) * pt, std::sin (phi) * pt, track.getTgl () * pt};
6262}
6363
@@ -126,7 +126,7 @@ inline AnalyticV0 buildAnalyticV0(LegParam const& pos, LegParam const& neg, floa
126126 const float r1 = h1.rC , r2 = h2.rC ;
127127
128128 int nCand = 0 ;
129- float c1x[ 2 ] , c1y[ 2 ] , c2x[ 2 ] , c2y[ 2 ] ;
129+ std::array< float , 2 > c1x{} , c1y{} , c2x{} , c2y{} ;
130130 float pcaXY = 0 .f ;
131131 if (d > r1 + r2) { // external gap: tangent points along the centre line
132132 c1x[0 ] = h1.xC + r1 * ux;
0 commit comments