From 438c6fb2d88e0d369920bb9f08e4f2eb96412624 Mon Sep 17 00:00:00 2001 From: Jan-Frederik Date: Wed, 24 May 2017 12:12:56 +0200 Subject: [PATCH] address David's comment --- .../PixelTrackFitting/plugins/PixelTrackProducer.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/RecoPixelVertexing/PixelTrackFitting/plugins/PixelTrackProducer.cc b/RecoPixelVertexing/PixelTrackFitting/plugins/PixelTrackProducer.cc index a7602a888d746..64fd664a6b032 100644 --- a/RecoPixelVertexing/PixelTrackFitting/plugins/PixelTrackProducer.cc +++ b/RecoPixelVertexing/PixelTrackFitting/plugins/PixelTrackProducer.cc @@ -93,13 +93,9 @@ void PixelTrackProducer::store(edm::Event& ev, const TracksWithTTRHs& tracksWith unsigned int nHits = tracks->at(k).numberOfValidHits(); theTrackExtra.setHits(hitCollProd, cc, nHits); cc +=nHits; - reco::TrackExtra::TrajParams trajParams; AlgebraicVector5 v = AlgebraicVector5(0,0,0,0,0); - reco::TrackExtra::Chi2sFive chi2s; - for (unsigned int i = 0; i < nHits; ++i){ - chi2s.push_back(0); - trajParams.push_back(LocalTrajectoryParameters(v,1.)); - } + reco::TrackExtra::TrajParams trajParams(nHits,LocalTrajectoryParameters(v,1.)); + reco::TrackExtra::Chi2sFive chi2s(nHits,0); theTrackExtra.setTrajParams(std::move(trajParams),std::move(chi2s)); trackExtras->push_back(theTrackExtra); }