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

Remove check for empty sum collection in CALOL2-uGT comparison #22878

Merged
merged 2 commits into from
Apr 12, 2018
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
7 changes: 3 additions & 4 deletions DQM/L1TMonitor/src/L1TStage2uGTCaloLayer2Comp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,9 @@ bool L1TStage2uGTCaloLayer2Comp::compareSums(
l1t::EtSumBxCollection::const_iterator calol2It = calol2Col->begin();
l1t::EtSumBxCollection::const_iterator uGTIt = uGTCol->begin();

// if either calol2 or ugt collections are empty, or they have different
// size, mark the event as bad (this should never occur in normal running)
if (calol2Col->size() == 0 || uGTCol->size() == 0 ||
(calol2Col->size() != uGTCol->size())) {
// if the calol2 or ugt collections have different size, mark the event as
// bad (this should never occur in normal running)
if ((calol2Col->size() != uGTCol->size())) {
comparisonNum->Fill(EVENTBADSUMCOL);
return false;
}
Expand Down