Definition at line 72 of file DBWriterWorkers.h.
Implements ecaldqm::DBWriterWorker.
Definition at line 776 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().
786 std::map<EcalLogicID, MonPedestalsOnlineDat> pedestals;
788 MESet
const& pedestalME(
source_.at(
"Pedestal"));
789 MESet
const& qualityME(
source_.at(
"Quality"));
791 MESet::const_iterator pEnd(pedestalME.end());
792 MESet::const_iterator qItr(qualityME);
793 for(MESet::const_iterator pItr(pedestalME.beginChannel()); pItr != pEnd; pItr.toNextChannel()){
794 float entries(pItr->getBinEntries());
795 if(entries < 1.)
continue;
799 float mean(pItr->getBinContent());
806 int channelStatus(qItr->getBinContent());
807 bool channelBad(channelStatus ==
kBad || channelStatus ==
kMBad);
808 data.setTaskStatus(channelBad);
814 if(!pedestals.empty())
817 catch(std::runtime_error&
e){
818 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 &)