Skip to content

Commit

Permalink
Merge pull request #46896 from iarspider/iarspider-patch-20241209
Browse files Browse the repository at this point in the history
SeedToTrackProducer: return early if L2 seed collection is not found
  • Loading branch information
cmsbuild authored Dec 10, 2024
2 parents b1d0e43 + ffcde7a commit 3343c21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SimMuon/MCTruth/plugins/SeedToTrackProducerBase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ void SeedToTrackProducerBase<SeedCollection>::produce(edm::StreamID,
const std::vector<SeedType> *L2seeds = nullptr;
if (L2seedsCollection.isValid())
L2seeds = L2seedsCollection.product();
else
else {
edm::LogError("SeedToTrackProducerBase") << "L2 seeds collection not found !! " << endl;
return;
}

edm::Handle<edm::View<TrajectorySeed>> seedHandle;
iEvent.getByToken(L2seedsTagS_, seedHandle);
Expand Down

0 comments on commit 3343c21

Please sign in to comment.