Skip to content

Commit

Permalink
Add logic to handle exclusion of CALOL2 in DQM
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoni Shtipliyski committed Sep 19, 2017
1 parent 390ffe7 commit ec8b525
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit ec8b525

Please sign in to comment.