Skip to content

Commit

Permalink
Merge pull request #32621 from Dr15Jones/fixHTXSRivetProducer
Browse files Browse the repository at this point in the history
Avoid seg fault in HTXSRivetProducer
  • Loading branch information
cmsbuild authored Jan 11, 2021
2 parents c02dff9 + 132a719 commit bc13284
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ void HTXSRivetProducer::produce(edm::Event& iEvent, const edm::EventSetup&) {
}
}

void HTXSRivetProducer::endRun(edm::Run const& iRun, edm::EventSetup const& es) { _HTXS->printClassificationSummary(); }
void HTXSRivetProducer::endRun(edm::Run const& iRun, edm::EventSetup const& es) {
if (_HTXS)
_HTXS->printClassificationSummary();
}

void HTXSRivetProducer::beginRun(edm::Run const& iRun, edm::EventSetup const& es) {
if (_prodMode == "AUTO") {
Expand Down

0 comments on commit bc13284

Please sign in to comment.