@@ -110,11 +110,11 @@ class DCAFitterN
110110 using MatSymND = o2::math_utils::SMatrix<double , N, N, o2::math_utils::MatRepSym<double , N>>;
111111 using MatStdND = o2::math_utils::SMatrix<double , N, N, o2::math_utils::MatRepStd<double , N>>;
112112 using TrackCoefVtx = MatStd3D;
113- using ArrTrack = o2::gpu::gpustd ::array<Track, N>; // container for prongs (tracks) at single vertex cand.
114- using ArrTrackCovI = o2::gpu::gpustd ::array<TrackCovI, N>; // container for inv.cov.matrices at single vertex cand.
115- using ArrTrCoef = o2::gpu::gpustd ::array<TrackCoefVtx, N>; // container of TrackCoefVtx coefficients at single vertex cand.
116- using ArrTrDer = o2::gpu::gpustd ::array<TrackDeriv, N>; // container of Track 1st and 2nd derivative over their X param
117- using ArrTrPos = o2::gpu::gpustd ::array<Vec3D, N>; // container of Track positions
113+ using ArrTrack = std ::array<Track, N>; // container for prongs (tracks) at single vertex cand.
114+ using ArrTrackCovI = std ::array<TrackCovI, N>; // container for inv.cov.matrices at single vertex cand.
115+ using ArrTrCoef = std ::array<TrackCoefVtx, N>; // container of TrackCoefVtx coefficients at single vertex cand.
116+ using ArrTrDer = std ::array<TrackDeriv, N>; // container of Track 1st and 2nd derivative over their X param
117+ using ArrTrPos = std ::array<Vec3D, N>; // container of Track positions
118118
119119 public:
120120 enum BadCovPolicy : uint8_t { // if encountering non-positive defined cov. matrix, the choice is:
@@ -158,7 +158,7 @@ class DCAFitterN
158158 GPUd () const auto getPCACandidatePos (int cand = 0 ) const
159159 {
160160 const auto & vd = mPCA [mOrder [cand]];
161- return o2::gpu::gpustd ::array<float , 3 >{static_cast <float >(vd[0 ]), static_cast <float >(vd[1 ]), static_cast <float >(vd[2 ])};
161+ return std ::array<float , 3 >{static_cast <float >(vd[0 ]), static_cast <float >(vd[1 ]), static_cast <float >(vd[2 ])};
162162 }
163163
164164 // /< return position of quality-ordered candidate in the internal structures
@@ -213,7 +213,7 @@ class DCAFitterN
213213
214214 GPUd () MatSym3D calcPCACovMatrix (int cand = 0 ) const ;
215215
216- o2::gpu::gpustd ::array<float , 6 > calcPCACovMatrixFlat (int cand = 0 ) const
216+ std ::array<float , 6 > calcPCACovMatrixFlat (int cand = 0 ) const
217217 {
218218 auto m = calcPCACovMatrix (cand);
219219 return {static_cast <float >(m (0 , 0 )), static_cast <float >(m (1 , 0 )), static_cast <float >(m (1 , 1 )), static_cast <float >(m (2 , 0 )), static_cast <float >(m (2 , 1 )), static_cast <float >(m (2 , 2 ))};
@@ -364,39 +364,39 @@ class DCAFitterN
364364
365365 private:
366366 // vectors of 1st derivatives of track local residuals over X parameters
367- o2::gpu::gpustd:: array<o2::gpu::gpustd ::array<Vec3D, N>, N> mDResidDx ;
367+ std:: array<std ::array<Vec3D, N>, N> mDResidDx ;
368368 // vectors of 1nd derivatives of track local residuals over X parameters
369369 // (cross-derivatives DR/(dx_j*dx_k) = 0 for j!=k, therefore the hessian is diagonal)
370- o2::gpu::gpustd:: array<o2::gpu::gpustd ::array<Vec3D, N>, N> mD2ResidDx2 ;
370+ std:: array<std ::array<Vec3D, N>, N> mD2ResidDx2 ;
371371 VecND mDChi2Dx ; // 1st derivatives of chi2 over tracks X params
372372 MatSymND mD2Chi2Dx2 ; // 2nd derivatives of chi2 over tracks X params (symmetric matrix)
373373 MatSymND mCosDif ; // matrix with cos(alp_j-alp_i) for j<i
374374 MatSymND mSinDif ; // matrix with sin(alp_j-alp_i) for j<i
375- o2::gpu::gpustd ::array<const Track*, N> mOrigTrPtr ;
376- o2::gpu::gpustd ::array<TrackAuxPar, N> mTrAux ; // Aux track info for each track at each cand. vertex
377- CrossInfo mCrossings ; // info on track crossing
378-
379- o2::gpu::gpustd ::array<ArrTrackCovI, MAXHYP> mTrcEInv ; // errors for each track at each cand. vertex
380- o2::gpu::gpustd ::array<ArrTrack, MAXHYP> mCandTr ; // tracks at each cond. vertex (Note: Errors are at seed XY point)
381- o2::gpu::gpustd ::array<ArrTrCoef, MAXHYP> mTrCFVT ; // TrackCoefVtx for each track at each cand. vertex
382- o2::gpu::gpustd ::array<ArrTrDer, MAXHYP> mTrDer ; // Track derivativse
383- o2::gpu::gpustd ::array<ArrTrPos, MAXHYP> mTrPos ; // Track positions
384- o2::gpu::gpustd ::array<ArrTrPos, MAXHYP> mTrRes ; // Track residuals
385- o2::gpu::gpustd ::array<Vec3D, MAXHYP> mPCA ; // PCA for each vertex candidate
386- o2::gpu::gpustd ::array<float , MAXHYP> mChi2 = {0 }; // Chi2 at PCA candidate
387- o2::gpu::gpustd ::array<int , MAXHYP> mNIters ; // number of iterations for each seed
388- o2::gpu::gpustd ::array<bool , MAXHYP> mTrPropDone {}; // Flag that the tracks are fully propagated to PCA
389- o2::gpu::gpustd ::array<bool , MAXHYP> mPropFailed {}; // Flag that some propagation failed for this PCA candidate
375+ std ::array<const Track*, N> mOrigTrPtr ;
376+ std ::array<TrackAuxPar, N> mTrAux ; // Aux track info for each track at each cand. vertex
377+ CrossInfo mCrossings ; // info on track crossing
378+
379+ std ::array<ArrTrackCovI, MAXHYP> mTrcEInv ; // errors for each track at each cand. vertex
380+ std ::array<ArrTrack, MAXHYP> mCandTr ; // tracks at each cond. vertex (Note: Errors are at seed XY point)
381+ std ::array<ArrTrCoef, MAXHYP> mTrCFVT ; // TrackCoefVtx for each track at each cand. vertex
382+ std ::array<ArrTrDer, MAXHYP> mTrDer ; // Track derivativse
383+ std ::array<ArrTrPos, MAXHYP> mTrPos ; // Track positions
384+ std ::array<ArrTrPos, MAXHYP> mTrRes ; // Track residuals
385+ std ::array<Vec3D, MAXHYP> mPCA ; // PCA for each vertex candidate
386+ std ::array<float , MAXHYP> mChi2 = {0 }; // Chi2 at PCA candidate
387+ std ::array<int , MAXHYP> mNIters ; // number of iterations for each seed
388+ std ::array<bool , MAXHYP> mTrPropDone {}; // Flag that the tracks are fully propagated to PCA
389+ std ::array<bool , MAXHYP> mPropFailed {}; // Flag that some propagation failed for this PCA candidate
390390 LogLogThrottler mLoggerBadCov {};
391391 LogLogThrottler mLoggerBadInv {};
392392 LogLogThrottler mLoggerBadProp {};
393393 MatSym3D mWeightInv ; // inverse weight of single track, [sum{M^T E M}]^-1 in EQ.T
394- o2::gpu::gpustd ::array<int , MAXHYP> mOrder {0 };
394+ std ::array<int , MAXHYP> mOrder {0 };
395395 int mCurHyp = 0 ;
396396 int mCrossIDCur = 0 ;
397397 int mCrossIDAlt = -1 ;
398398 BadCovPolicy mBadCovPolicy {BadCovPolicy::Discard}; // what to do in case of non-pos-def. cov. matrix, see BadCovPolicy enum
399- o2::gpu::gpustd:: array<FitStatus, MAXHYP> mFitStatus {}; // fit status of each hypothesis fit
399+ std:: array<FitStatus, MAXHYP> mFitStatus {}; // fit status of each hypothesis fit
400400 bool mAllowAltPreference = true ; // if the fit converges to alternative PCA seed, abandon the current one
401401 bool mUseAbsDCA = false ; // use abs. distance minimization rather than chi2
402402 bool mWeightedFinalPCA = false ; // recalculate PCA as a cov-matrix weighted mean, even if absDCA method was used
@@ -657,7 +657,7 @@ template <int N, typename... Args>
657657GPUd () void DCAFitterN<N, Args...>::calcChi2Derivatives()
658658{
659659 // < calculate 1st and 2nd derivatives of wighted DCA (chi2) over track parameters X, see EQ.Chi2 in the ref
660- o2::gpu::gpustd:: array<o2::gpu::gpustd ::array<Vec3D, N>, N> covIDrDx; // tempory vectors of covI_j * dres_j/dx_i
660+ std:: array<std ::array<Vec3D, N>, N> covIDrDx; // tempory vectors of covI_j * dres_j/dx_i
661661
662662 // chi2 1st derivative
663663 for (int i = N; i--;) {
@@ -1175,13 +1175,13 @@ GPUd() o2::track::TrackParCov DCAFitterN<N, Args...>::createParentTrackParCov(in
11751175{
11761176 const auto & trP = getTrack (0 , cand);
11771177 const auto & trN = getTrack (1 , cand);
1178- o2::gpu::gpustd ::array<float , 21 > covV = {0 .};
1179- o2::gpu::gpustd ::array<float , 3 > pvecV = {0 .};
1178+ std ::array<float , 21 > covV = {0 .};
1179+ std ::array<float , 3 > pvecV = {0 .};
11801180 int q = 0 ;
11811181 for (int it = 0 ; it < N; it++) {
11821182 const auto & trc = getTrack (it, cand);
1183- o2::gpu::gpustd ::array<float , 3 > pvecT = {0 .};
1184- o2::gpu::gpustd ::array<float , 21 > covT = {0 .};
1183+ std ::array<float , 3 > pvecT = {0 .};
1184+ std ::array<float , 21 > covT = {0 .};
11851185 trc.getPxPyPzGlo (pvecT);
11861186 trc.getCovXYZPxPyPzGlo (covT);
11871187 constexpr int MomInd[6 ] = {9 , 13 , 14 , 18 , 19 , 20 }; // cov matrix elements for momentum component
@@ -1210,18 +1210,18 @@ GPUd() o2::track::TrackPar DCAFitterN<N, Args...>::createParentTrackPar(int cand
12101210 const auto & trP = getTrack (0 , cand);
12111211 const auto & trN = getTrack (1 , cand);
12121212 const auto & wvtx = getPCACandidate (cand);
1213- o2::gpu::gpustd ::array<float , 3 > pvecV = {0 .};
1213+ std ::array<float , 3 > pvecV = {0 .};
12141214 int q = 0 ;
12151215 for (int it = 0 ; it < N; it++) {
12161216 const auto & trc = getTrack (it, cand);
1217- o2::gpu::gpustd ::array<float , 3 > pvecT = {0 .};
1217+ std ::array<float , 3 > pvecT = {0 .};
12181218 trc.getPxPyPzGlo (pvecT);
12191219 for (int i = 0 ; i < 3 ; i++) {
12201220 pvecV[i] += pvecT[i];
12211221 }
12221222 q += trc.getCharge ();
12231223 }
1224- const o2::gpu::gpustd ::array<float , 3 > vertex = {(float )wvtx[0 ], (float )wvtx[1 ], (float )wvtx[2 ]};
1224+ const std ::array<float , 3 > vertex = {(float )wvtx[0 ], (float )wvtx[1 ], (float )wvtx[2 ]};
12251225 return o2::track::TrackPar (vertex, pvecV, q, sectorAlpha);
12261226}
12271227
0 commit comments