#include <DBWriterWorkers.h>
Definition at line 92 of file DBWriterWorkers.h.
Definition at line 94 of file DBWriterWorkers.h.
DBWriterWorker(std::string const &, edm::ParameterSet const &)
ecaldqm::TimingWriter::~TimingWriter |
( |
| ) |
|
|
inlineoverride |
Implements ecaldqm::DBWriterWorker.
Definition at line 1031 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().
1040 std::map<EcalLogicID, MonTimingCrystalDat> timing;
1042 MESet
const &timingME(
source_.at(
"Timing"));
1043 MESet
const &qualityME(
source_.at(
"Quality"));
1045 MESet::const_iterator tEnd(timingME.end());
1046 MESet::const_iterator qItr(qualityME);
1047 for (MESet::const_iterator tItr(timingME.beginChannel()); tItr != tEnd; tItr.toNextChannel()) {
1048 float entries(tItr->getBinEntries());
1054 float mean(tItr->getBinContent());
1061 int channelStatus(qItr->getBinContent());
1062 bool channelBad(channelStatus ==
kBad || channelStatus ==
kMBad);
1063 data.setTaskStatus(channelBad);
1069 if (!timing.empty())
1071 }
catch (std::runtime_error &
e) {
1072 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 &)