Skip to content

Commit

Permalink
Merge pull request cms-sw#1231 from BenjaminRS/fixL1TrackVtxAssocProd…
Browse files Browse the repository at this point in the history
…Debug

L1TrackVertexAssociationProducer bug fix to stop accessing data after move
  • Loading branch information
aloeliger committed Apr 3, 2024
2 parents c85ebef + 092a818 commit f57ef2b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,13 @@ void L1TrackVertexAssociationProducer::produce(edm::StreamID, edm::Event& iEvent
} //end if (processEmulatedTracks_)
} //end loop over input converted tracks

if (processSimulatedTracks_ && processEmulatedTracks_ && debug_ >= 2) {
printDebugInfo(l1SelectedTracksHandle,
l1SelectedTracksEmulationHandle,
vTTTrackAssociatedOutput,
vTTTrackAssociatedEmulationOutput);
}

if (processSimulatedTracks_) {
iEvent.put(std::move(vTTTrackAssociatedOutput), outputCollectionName_);
}
Expand All @@ -572,13 +579,6 @@ void L1TrackVertexAssociationProducer::produce(edm::StreamID, edm::Event& iEvent
if (debug_ >= 2)
linkLimitSelEmu.log();
}

if (processSimulatedTracks_ && processEmulatedTracks_ && debug_ >= 2) {
printDebugInfo(l1SelectedTracksHandle,
l1SelectedTracksEmulationHandle,
vTTTrackAssociatedOutput,
vTTTrackAssociatedEmulationOutput);
}
}

// ------------ method fills 'descriptions' with the allowed parameters for the module ------------
Expand Down

0 comments on commit f57ef2b

Please sign in to comment.