Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add EventGenerationFailure exit code #21330

Merged
merged 2 commits into from
Nov 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions FWCore/Utilities/interface/EDMException.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ namespace edm {
ExceededResourceRSS = 8031,
ExceededResourceTime = 8032,

EventGenerationFailure = 8501,

CaughtSignal = 9000
};

Expand Down
1 change: 1 addition & 0 deletions FWCore/Utilities/src/EDMException.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ namespace edm {
EDM_MAP_ENTRY_NONS(trans_, ExceededResourceVSize);
EDM_MAP_ENTRY_NONS(trans_, ExceededResourceRSS);
EDM_MAP_ENTRY_NONS(trans_, ExceededResourceTime);
EDM_MAP_ENTRY_NONS(trans_, EventGenerationFailure);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ ExternalLHEProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)
{
nextEvent();
if (!partonLevel) {
throw cms::Exception("ExternalLHEProducer") << "No lhe event found in ExternalLHEProducer::produce(). "
throw edm::Exception(edm::errors::EventGenerationFailure) << "No lhe event found in ExternalLHEProducer::produce(). "
<< "The likely cause is that the lhe file contains fewer events than were requested, which is possible "
<< "in case of phase space integration or uneweighting efficiency problems.";
}
Expand Down Expand Up @@ -296,7 +296,7 @@ ExternalLHEProducer::endRunProduce(edm::Run& run, edm::EventSetup const& es)

nextEvent();
if (partonLevel) {
throw cms::Exception("ExternalLHEProducer") << "Error in ExternalLHEProducer::endRunProduce(). "
throw edm::Exception(edm::errors::EventGenerationFailure) << "Error in ExternalLHEProducer::endRunProduce(). "
<< "Event loop is over, but there are still lhe events to process."
<< "This could happen if lhe file contains more events than requested. This is never expected to happen.";
}
Expand Down