Skip to content

Commit 0295cb1

Browse files
authored
Merge pull request cms-sw#42690 from ArturAkh/master
Replace the access to track reference with a more robust approach
2 parents ec475ce + a87d5fb commit 0295cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RecoEgamma/EgammaElectronProducers/plugins/LowPtGSFToTrackLinker.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void LowPtGSFToTrackLinker::produce(edm::StreamID, edm::Event& iEvent, const edm
5454
//map Track --> GSF and fill GSF --> PackedCandidates and GSF --> Lost associations
5555
for (unsigned int igsf = 0; igsf < ngsf; ++igsf) {
5656
reco::GsfTrackRef gref(gsftracks, igsf);
57-
reco::TrackRef trk = preid->at(gref->seedRef().castTo<reco::ElectronSeedRef>().index()).trackRef();
57+
reco::TrackRef trk = gref->seedRef().castTo<reco::ElectronSeedRef>()->ctfTrack();
5858

5959
if (trk.id() != tracks.id()) {
6060
throw cms::Exception(

0 commit comments

Comments
 (0)