Definition at line 92 of file DBWriterWorkers.h.
Implements ecaldqm::DBWriterWorker.
Definition at line 1061 of file DBWriterWorkers.cc.
References ecaldqm::crystalID(), data, MillePedeFileConverter_cfg::e, Exception, spr::find(), EcalCondDBInterface::insertDataArraySet(), ecaldqm::kBad, ecaldqm::kMBad, RecoTauDiscriminantConfiguration::mean, ecaldqm::qualityOK(), mps_fire::result, RecoTauDiscriminantConfiguration::rms, ecaldqm::DBWriterWorker::source_, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, and ecaldqm::MESet::const_iterator::toNextChannel().
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().
1071 std::map<EcalLogicID, MonTimingCrystalDat> timing;
1073 MESet
const& timingME(
source_.at(
"Timing"));
1074 MESet
const& qualityME(
source_.at(
"Quality"));
1076 MESet::const_iterator tEnd(timingME.end());
1077 MESet::const_iterator qItr(qualityME);
1078 for(MESet::const_iterator tItr(timingME.beginChannel()); tItr != tEnd; tItr.toNextChannel()){
1079 float entries(tItr->getBinEntries());
1080 if(entries < 1.)
continue;
1084 float mean(tItr->getBinContent());
1091 int channelStatus(qItr->getBinContent());
1092 bool channelBad(channelStatus ==
kBad || channelStatus ==
kMBad);
1093 data.setTaskStatus(channelBad);
1099 if(timing.size() > 0)
1102 catch(std::runtime_error&
e){
1103 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 &)