#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 |
( |
| ) |
|
|
inline |
Implements ecaldqm::DBWriterWorker.
Definition at line 1325 of file DBWriterWorkers.cc.
References ecaldqm::crystalID(), data, MillePedeFileConverter_cfg::e, 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().
1332 std::map<EcalLogicID, MonOccupancyDat> occupancy;
1334 MESet
const& occupancyME(
source_.at(
"Occupancy"));
1335 MESet
const& energyME(
source_.at(
"Energy"));
1337 MESet::const_iterator oEnd(occupancyME.end());
1338 MESet::const_iterator eItr(energyME);
1339 for(MESet::const_iterator oItr(occupancyME.beginChannel()); oItr != oEnd; oItr.toNextChannel()){
1341 if(oItr->getME()->getTH1()->GetEntries() < 1000.)
continue;
1343 int entries(oItr->getBinContent());
1344 if(entries < 10)
continue;
1348 int eEntries(eItr->getBinEntries());
1349 float energy(eEntries > 10 ? eItr->getBinContent() : -1.);
1352 data.setEventsOverLowThreshold(entries);
1353 data.setEventsOverHighThreshold(eEntries);
1354 data.setAvgEnergy(energy);
1358 if(occupancy.size() > 0)
1361 catch(std::runtime_error&
e){
1362 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 &)