1 #ifndef RecoPixelVertexingPixelTrackFittingStoreTracks_H
2 #define RecoPixelVertexingPixelTrackFittingStoreTracks_H
19 template <
typename Ev,
typename TWH>
21 auto tracks = std::make_unique<reco::TrackCollection>();
22 auto recHits = std::make_unique<TrackingRecHitCollection>();
23 auto trackExtras = std::make_unique<reco::TrackExtraCollection>();
25 int cc = 0,
nTracks = tracksWithHits.size();
29 const auto&
hits = tracksWithHits[
i].second;
31 for (
unsigned int k = 0;
k <
hits.size();
k++) {
34 track->appendHitPattern(*
hit, ttopo);
41 LogDebug(
"TrackProducer") <<
"put the collection of TrackingRecHit in the event"
51 theTrackExtra.setHits(hitCollProd,
cc,
nHits);
57 trackExtras->push_back(theTrackExtra);
60 LogDebug(
"TrackProducer") <<
"put the collection of TrackExtra in the event"
66 (
tracks->at(
k)).setExtra(theTrackExtraRef);