18 trackProducers.emplace_back(consumes<vector<Trajectory>>(
prod), consumes<TrajTrackAssociationCollection>(
prod));
21 produces<reco::TrackCollection>();
22 produces<reco::TrackExtraCollection>();
23 produces<TrackingRecHitCollection>();
24 produces<vector<Trajectory>>();
25 produces<TrajTrackAssociationCollection>();
33 auto recoTracks = std::make_unique<reco::TrackCollection>();
34 auto recoTrackExtras = std::make_unique<reco::TrackExtraCollection>();
35 auto recoHits = std::make_unique<TrackingRecHitCollection>();
36 auto recoTrajectories = std::make_unique<vector<Trajectory>>();
37 auto recoTrajTrackMap = std::make_unique<TrajTrackAssociationCollection>();
39 LogTrace(
"MinBiasTracking") <<
"[TrackListCombiner]";
69 LogTrace(
"MinBiasTracking") <<
" [TrackListCombiner] " <<
labels.module <<
" : " << theAssoMap->
size();
75 anAssociation = theAssoMap->
begin();
76 lastAssociation = theAssoMap->
end();
79 for (; anAssociation != lastAssociation; ++anAssociation) {
89 recoTracks->push_back(aRecoTrack);
93 for (
unsigned ih = 0; ih <
nh; ++ih) {
95 recoHits->push_back(
hit);
99 recoTrajectories->push_back(*aTrajectoryRef);
103 LogTrace(
"MinBiasTracking") <<
" [TrackListCombiner] allTracks : " << recoTracks->size() <<
"|"
104 << recoTrajectories->size();
112 unsigned nTracks = recoTracks->size();
113 recoTrackExtras->reserve(
nTracks);
130 aTrackExtra.setHits(theRecoHitsProd,
hits,
nHits);
133 recoTrackExtras->push_back(aTrackExtra);
142 (recoTracks->at(
index)).setExtra(theTrackExtraRef);
155 recoTrajTrackMap->insert(trajRef, tkRef);