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 logic to handle exclusion of CALOL2 in DQM #20579

Merged
merged 1 commit into from
Sep 20, 2017
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
6 changes: 6 additions & 0 deletions DQM/L1TMonitor/src/L1TdeStage2CaloLayer2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,12 @@ bool L1TdeStage2CaloLayer2::compareSums(
l1t::EtSumBxCollection::const_iterator dataIt = dataCol->begin(currBx);
l1t::EtSumBxCollection::const_iterator emulIt = emulCol->begin(currBx);

// if either data or emulator collections are empty, or they have different
// size, mark the event as bad (this should never occur in normal running)
if (dataCol->isEmpty(currBx) == 0 || emulCol->isEmpty(currBx) == 0 ||
(dataCol->size() != emulCol->size()))
return false;

while(true) {

// It should be possible to implement this with a switch statement
Expand Down