#include <DBWriterWorkers.h>
Definition at line 111 of file DBWriterWorkers.h.
◆ OccupancyWriter()
◆ ~OccupancyWriter()
ecaldqm::OccupancyWriter::~OccupancyWriter |
( |
| ) |
|
|
inlineoverride |
◆ run()
Implements ecaldqm::DBWriterWorker.
Definition at line 1287 of file DBWriterWorkers.cc.
1293 std::map<EcalLogicID, MonOccupancyDat> occupancy;
1295 MESet
const &occupancyME(
source_.
at(
"Occupancy"));
1296 MESet
const &energyME(
source_.
at(
"Energy"));
1298 MESet::const_iterator oEnd(occupancyME.end());
1299 MESet::const_iterator eItr(energyME);
1300 for (MESet::const_iterator oItr(occupancyME.beginChannel()); oItr != oEnd; oItr.toNextChannel()) {
1301 if (oItr->getME()->getTH1()->GetEntries() < 1000.)
1304 int entries(oItr->getBinContent());
1310 int eEntries(eItr->getBinEntries());
1311 float energy(eEntries > 10 ? eItr->getBinContent() : -1.);
1314 data.setEventsOverLowThreshold(entries);
1315 data.setEventsOverHighThreshold(eEntries);
1320 if (!occupancy.empty())
1322 }
catch (std::runtime_error &
e) {
References ecaldqm::MESetCollection::at(), ecaldqm::crystalID(), data, MillePedeFileConverter_cfg::e, HCALHighEnergyHPDFilter_cfi::energy, Exception, spr::find(), EcalCondDBInterface::insertDataArraySet(), ecaldqm::DBWriterWorker::source_, AlCaHLTBitMon_QueryRunRegistry::string, and ecaldqm::MESet::const_iterator::toNextChannel().
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().