Skip to content

Commit

Permalink
Merge adefd84 into 03eac44
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmaymudholkar committed Feb 12, 2018
2 parents 03eac44 + adefd84 commit 2715674
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion DQM/EcalMonitorTasks/src/PNDiodeTask.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "../interface/PNDiodeTask.h"

#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

namespace ecaldqm {

Expand Down Expand Up @@ -59,7 +60,15 @@ namespace ecaldqm {
}

std::for_each(_ids.begin(), _ids.end(), [&](EcalElectronicsIdCollection::value_type const& id){
set->fill(EcalElectronicsId(id.dccId(), id.towerId(), 1, id.xtalId()));
try {
set->fill(EcalElectronicsId(id.dccId(), id.towerId(), 1, id.xtalId()));
}
catch(cms::Exception e) {
if (e.category() == "InvalidDetId") {
edm::LogWarning("EcalDQM") << "PNDiodeTask::runOnErrors : one of the ids in the electronics ID collection is unphysical in lumi number " << timestamp_.iLumi << ". Exception message: " << e.message();
}
else throw e;
}
});
}

Expand Down

0 comments on commit 2715674

Please sign in to comment.