Skip to content

Commit

Permalink
logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Long committed Nov 25, 2022
1 parent be8387e commit 1242f3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DQM/HcalTasks/plugins/HcalGPUComparisonTask.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ HcalGPUComparisonTask::HcalGPUComparisonTask(edm::ParameterSet const& ps)
auto const chbhe_ref = e.getHandle(tokHBHE_ref_);
auto const chbhe_target = e.getHandle(tokHBHE_target_);

if (not(chbhe_ref.isValid() or chbhe_target.isValid())) {
if (not(chbhe_ref.isValid() and chbhe_target.isValid())) {
edm::LogWarning("HcalGPUComparisonTask")
<< "Either CPU or GPU RecHit Collection is available, will not fill this event.";
<< "Either CPU or GPU RecHit Collection is unavailable, will not fill this event.";
return;
}

Expand Down

0 comments on commit 1242f3f

Please sign in to comment.