14 formula_(_ps.getUntrackedParameter<
std::
string>(
"formula")),
16 verbosity_(_ps.getUntrackedParameter<
int>(
"verbosity")) {
20 if (table ==
"CrystalConsistency")
22 if (table ==
"TTConsistency")
24 if (table ==
"MemChConsistency")
26 if (table ==
"MemTTConsistency")
28 if (table ==
"LaserBlue")
30 if (table ==
"TimingLaserBlueCrystal")
32 if (table ==
"PNBlue")
34 if (table ==
"LaserGreen")
36 if (table ==
"TimingLaserGreenCrystal")
38 if (table ==
"PNGreen")
40 if (table ==
"LaserIRed")
42 if (table ==
"TimingLaserIRedCrystal")
44 if (table ==
"PNIRed")
46 if (table ==
"LaserRed")
48 if (table ==
"TimingLaserRedCrystal")
52 if (table ==
"Pedestals")
56 if (table ==
"PedestalsOnline")
58 if (table ==
"TestPulse")
60 if (table ==
"PulseShape")
62 if (table ==
"PNMGPA")
64 if (table ==
"TimingCrystal")
68 if (table ==
"TimingLed1Crystal")
72 if (table ==
"TimingLed2Crystal")
74 if (table ==
"Occupancy")
86 std::unique_ptr<EcalCondDBInterface>
db(
nullptr);
92 db = std::unique_ptr<EcalCondDBInterface>(
new EcalCondDBInterface(DBName, userName, password));
93 }
catch (std::runtime_error &re) {
94 if (!hostName.empty()) {
96 db = std::unique_ptr<EcalCondDBInterface>(
98 }
catch (std::runtime_error &re2) {
119 edm::LogError(
"EcalDQM") <<
"Cannot fetch RunIOV for location=" << location <<
" runNumber=" <<
runNumber;
132 }
catch (std::runtime_error &
e) {
133 edm::LogError(
"EcalDQM") <<
"Cannot fetch MonRunIOV for location=" << location <<
" runNumber=" << runNumber
151 for (std::map<DetId, double>::const_iterator vItr(
values.begin()); vItr !=
values.end(); ++vItr)
T getUntrackedParameter(std::string const &, T const &) const
MonRunIOV fetchMonRunIOV(RunTag *runtag, MonRunTag *montag, run_t run, subrun_t monrun) noexcept(false)
virtual void book(DQMStore::IBooker &)
ecaldqm::DBReaderWorker * worker_
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
EcalCondDBInterface * db_
~EcalCondDBReader() override
virtual void setBinContent(DetId const &, double)
void setGeneralTag(std::string tag)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
RunIOV fetchRunIOV(RunTag *tag, run_t run) noexcept(false)
void setMonVersionDef(const MonVersionDef &ver)
void setMonitoringVersion(std::string ver)
EcalCondDBReader(edm::ParameterSet const &)
virtual std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &)=0
MESet * createMESet(edm::ParameterSet const &)