Definition at line 72 of file DBWriterWorkers.h.
Implements ecaldqm::DBWriterWorker.
Definition at line 747 of file DBWriterWorkers.cc.
References ecaldqm::crystalID(), data, MillePedeFileConverter_cfg::e, Exception, spr::find(), EcalCondDBInterface::insertDataArraySet(), ecaldqm::kBad, ecaldqm::kMBad, SiStripPI::mean, ecaldqm::qualityOK(), mps_fire::result, SiStripPI::rms, ecaldqm::DBWriterWorker::source_, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, and ecaldqm::MESet::const_iterator::toNextChannel().
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().
756 std::map<EcalLogicID, MonPedestalsOnlineDat> pedestals;
758 MESet
const &pedestalME(
source_.at(
"Pedestal"));
759 MESet
const &qualityME(
source_.at(
"Quality"));
761 MESet::const_iterator pEnd(pedestalME.end());
762 MESet::const_iterator qItr(qualityME);
763 for (MESet::const_iterator pItr(pedestalME.beginChannel()); pItr != pEnd; pItr.toNextChannel()) {
764 float entries(pItr->getBinEntries());
770 float mean(pItr->getBinContent());
777 int channelStatus(qItr->getBinContent());
778 bool channelBad(channelStatus ==
kBad || channelStatus ==
kMBad);
779 data.setTaskStatus(channelBad);
785 if (!pedestals.empty())
787 }
catch (std::runtime_error &
e) {
788 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)
bool qualityOK(int _quality)
char data[epos_bytes_allocation]
EcalLogicID crystalID(DetId const &)