38 preid_{consumes<std::vector<reco::PreId> >(iConfig.getParameter<
edm::InputTag>(
"gsfPreID"))},
39 gsftracks_{consumes<std::vector<reco::GsfTrack> >(iConfig.getParameter<
edm::InputTag>(
"gsfTracks"))} {
40 produces<edm::Association<reco::TrackCollection> >();
49 const size_t ngsf = gsftracks->size();
52 std::vector<int> gsf2track(ngsf, -1);
55 for (
unsigned int igsf = 0; igsf < ngsf; ++igsf) {
62 "The reco::Track collection used to match against the GSF Tracks was not used to produce such tracks");
65 size_t trkid = trk.
index();
66 gsf2track[igsf] = trkid;
70 auto assoc = std::make_unique<edm::Association<reco::TrackCollection> >(
tracks);
72 filler.insert(gsftracks, gsf2track.begin(), gsf2track.end());
82 descriptions.
add(
"lowPtGsfToTrackLinks",
desc);