@@ -101,6 +101,31 @@ o2::track::TrackParCovFwd getTrackParCovFwdShift(TFwdTrack const& track, float z
101101 return o2::track::TrackParCovFwd (track.z () + zshift, tpars, tcovs, chi2);
102102}
103103
104+ inline o2::track::TrackParCovFwd getTrackParCovFwdShiftManual (
105+ const double x, const double y, const double phi, const double tgl, const double signed1Pt,
106+ const double cXX,
107+ const double cXY, const double cYY,
108+ const double cPhiX, const double cPhiY, const double cPhiPhi,
109+ const double cTglX, const double cTglY, const double cTglPhi, const double cTglTgl,
110+ const double c1PtX, const double c1PtY, const double c1PtPhi, const double c1PtTgl, const double c1Pt21Pt2,
111+ const float z, const float zshift, const float chi2)
112+ {
113+ SMatrix5 tpars (x, y, phi, tgl, signed1Pt);
114+
115+ SMatrix55 tcovs;
116+ std::vector<double > v1{
117+ cXX,
118+ cXY, cYY,
119+ cPhiX, cPhiY, cPhiPhi,
120+ cTglX, cTglY, cTglPhi, cTglTgl,
121+ c1PtX, c1PtY, c1PtPhi, c1PtTgl, c1Pt21Pt2};
122+ tcovs = SMatrix55 (v1.begin (), v1.end ());
123+ v1.clear ();
124+ v1.shrink_to_fit ();
125+
126+ return o2::track::TrackParCovFwd (z + zshift, tpars, tcovs, chi2);
127+ }
128+
104129template <typename TFwdTrack, typename TFwdTrackCov>
105130o2::track::TrackParCovFwd getTrackParCovFwd (TFwdTrack const & track, TFwdTrackCov const & cov)
106131{
0 commit comments