26 edm::LogInfo(
"PixelTrackProducer") <<
" construction...";
27 produces<reco::TrackCollection>();
28 produces<TrackingRecHitCollection>();
29 produces<reco::TrackExtraCollection>();
40 descriptions.
add(
"pixelTracks",
desc);
44 LogDebug(
"PixelTrackProducer, produce") <<
"event# :" <<
ev.id();
57 auto tracks = std::make_unique<reco::TrackCollection>();
58 auto recHits = std::make_unique<TrackingRecHitCollection>();
59 auto trackExtras = std::make_unique<reco::TrackExtraCollection>();
61 int cc = 0,
nTracks = tracksWithHits.size();
67 for (
unsigned int k = 0;
k <
hits.size();
k++) {
70 track->appendHitPattern(*
hit, ttopo);
77 LogDebug(
"TrackProducer") <<
"put the collection of TrackingRecHit in the event"
86 unsigned int nHits =
tracks->at(
k).numberOfValidHits();
87 theTrackExtra.setHits(hitCollProd,
cc, nHits);
93 trackExtras->push_back(theTrackExtra);
96 LogDebug(
"TrackProducer") <<
"put the collection of TrackExtra in the event"
102 (
tracks->at(
k)).setExtra(theTrackExtraRef);