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

[HLTrigger/JSONMonitoring] updated sanity check in L1TriggerJSONMonitoring #28797

Merged
merged 2 commits into from Jan 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -230,7 +230,7 @@ void L1TriggerJSONMonitoring::analyze(edm::StreamID sid, edm::Event const& event

// get hold of TriggerResults
edm::Handle<GlobalAlgBlkBxCollection> handle;
if (not event.getByToken(level1ResultsToken_, handle) or not handle.isValid()) {
if (not event.getByToken(level1ResultsToken_, handle) or not handle.isValid() or handle->isEmpty(0)) {
edm::LogError("L1TriggerJSONMonitoring")
<< "L1 trigger results with label [" + level1Results_.encode() + "] not present or invalid";
return;
Expand Down