|
|
Go to the documentation of this file.
13 #include "TObjArray.h"
17 void setBit(
int &_bitArray,
unsigned _iBit) { _bitArray |= (0x1 << _iBit); }
19 bool getBit(
int &_bitArray,
unsigned _iBit) {
return (_bitArray & (0
x1 << _iBit)) != 0; }
24 location_(_ps.getUntrackedParameter<
std::
string>(
"location")),
25 runType_(_ps.getUntrackedParameter<
std::
string>(
"runType")),
26 runGeneralTag_(_ps.getUntrackedParameter<
std::
string>(
"runGeneralTag")),
27 monRunGeneralTag_(_ps.getUntrackedParameter<
std::
string>(
"monRunGeneralTag")),
28 summaryWriter_(_ps.getUntrackedParameterSet(
"workerParams")),
29 verbosity_(_ps.getUntrackedParameter<
int>(
"verbosity")),
34 throw cms::Exception(
"Configuration") <<
"No input ROOT file given";
37 edm::LogInfo(
"EcalDQM") <<
"Initializing DQMStore from input ROOT files";
47 TPRegexp
pat(
"DQM_V[0-9]+(?:|_[0-9a-zA-Z]+)_R([0-9]+)");
55 throw cms::Exception(
"Configuration") <<
"Input files disagree in run number";
66 std::unique_ptr<EcalCondDBInterface>
db(
nullptr);
73 }
catch (std::runtime_error &re) {
77 }
catch (std::runtime_error &re2) {
106 for (
unsigned iC(0); iC <
nTasks; ++iC)
114 }
catch (std::runtime_error &
e) {
118 for (
unsigned iC(0); iC <
nTasks; ++iC)
132 unsigned processedEvents(0);
136 for (
unsigned iD(0); iD <
dirs.size(); ++iD) {
142 double timeStampValue(timeStampME->getFloatValue());
145 timeStampInFile = (
seconds << 32) | microseconds;
152 if (timeStampInFile != 0 && processedEvents != 0) {
154 edm::LogInfo(
"EcalDQM") <<
" Event info found; timestamp=" << timeStampInFile
155 <<
" processedEvents=" << processedEvents;
169 for (
unsigned iC(0); iC <
nTasks; ++iC) {
191 }
catch (std::runtime_error &
e) {
194 if (timeStampInFile == 0)
195 throw cms::Exception(
"Initialization") <<
"Time stamp for the run could not be found";
212 }
catch (std::runtime_error &
e) {
234 }
catch (std::runtime_error &
e) {
246 }
catch (std::runtime_error &
e) {
260 for (
unsigned iC(0); iC <
nTasks; ++iC) {
261 if (!
getBit(taskList, iC))
275 edm::LogInfo(
"EcalDQM") <<
"Registering the outcome of DB writing";
void setLocation(std::string loc)
void setMonitoringVersion(std::string ver)
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
MonRunIOV fetchMonRunIOV(RunTag *runtag, MonRunTag *montag, run_t run, subrun_t monrun) noexcept(false)
virtual DQM_DEPRECATED std::vector< std::string > getSubdirs() const
void insertRunIOV(RunIOV *iov) noexcept(false)
bool getBit(int &_bitArray, unsigned _iBit)
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Info, false > LogInfo
void setRunStart(const Tm &start)
void setRunIOV(const RunIOV &iov)
void setSubRunEnd(const Tm &end)
void setGeneralTag(std::string tag)
EcalCondDBInterface * db_
const std::string & getName() const
void setRunType(std::string runtype)
#define DEFINE_FWK_MODULE(type)
void setGeneralTag(std::string tag)
void setBit(int &_bitArray, unsigned _iBit)
std::string monRunGeneralTag_
void setProcessedEvents(unsigned _n)
void setRunTag(const RunTag &tag)
void setTaskList(int _list)
void setRunNumber(run_t run)
void setVerbosity(int _v)
~EcalCondDBWriter() override
ecaldqm::DBWriterWorker * workers_[nTasks]
void insertMonRunIOV(MonRunIOV *iov) noexcept(false)
void setSubRunNumber(subrun_t subrun)
void setMonRunTag(const MonRunTag &tag)
void retrieveSource(DQMStore::IGetter &)
ecaldqm::SummaryWriter summaryWriter_
void setOutcome(int _outcome)
void setLocationDef(const LocationDef &locDef)
EcalCondDBWriter(edm::ParameterSet const &)
virtual MonitorElement * get(std::string const &fullpath) const
unsigned long long uint64_t
void setRunTypeDef(const RunTypeDef &runTypeDef)
void setSubRunStart(const Tm &start)
void setMonVersionDef(const MonVersionDef &ver)
std::string runGeneralTag_
RunIOV fetchRunIOV(RunTag *tag, run_t run) noexcept(false)
virtual int64_t getIntValue() const
static const char runNumber_[]
virtual bool dirExists(std::string const &path) const
bool run(EcalCondDBInterface *, MonRunIOV &) override