#include <DBWriterWorkers.h>
Definition at line 111 of file DBWriterWorkers.h.
Definition at line 113 of file DBWriterWorkers.h.
DBWriterWorker(std::string const &, edm::ParameterSet const &)
ecaldqm::OccupancyWriter::~OccupancyWriter |
( |
| ) |
|
|
inlineoverride |
Implements ecaldqm::DBWriterWorker.
Definition at line 1287 of file DBWriterWorkers.cc.
References ecaldqm::crystalID(), data, MillePedeFileConverter_cfg::e, randomXiThetaGunProducer_cfi::energy, Exception, spr::find(), EcalCondDBInterface::insertDataArraySet(), MonOccupancyDat::setAvgEnergy(), MonOccupancyDat::setEventsOverHighThreshold(), MonOccupancyDat::setEventsOverLowThreshold(), ecaldqm::DBWriterWorker::source_, AlCaHLTBitMon_QueryRunRegistry::string, and ecaldqm::MESet::const_iterator::toNextChannel().
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().
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) {
1323 if (
std::string(e.what()).
find(
"unique constraint") != std::string::npos)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov) noexcept(false)
char data[epos_bytes_allocation]
EcalLogicID crystalID(DetId const &)