Skip to content

Commit

Permalink
TrackToTrackComparisonHists: use correct handle to check if collectio…
Browse files Browse the repository at this point in the history
…n is present
  • Loading branch information
mmusich committed Sep 21, 2021
1 parent db48cba commit 59d1654
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void TrackToTrackComparisonHists::analyze(const edm::Event& iEvent, const edm::E

edm::Handle<reco::VertexCollection> monitoredPVHandle;
iEvent.getByToken(monitoredPVToken_, monitoredPVHandle);
if (!monitoredTracksHandle.isValid()) {
if (!monitoredPVHandle.isValid()) {
edm::LogError("TrackToTrackComparisonHists") << "monitoredPVHandle not found, skipping event";
return;
}
Expand Down

0 comments on commit 59d1654

Please sign in to comment.