33 #include <boost/algorithm/string/join.hpp>
89 return (time.
value() >> 32) + 1
e-6 * (time.
value() & 0xffffffff);
92 static inline double stampToReal(
const timeval& time) {
return time.tv_sec + 1
e-6 * time.tv_usec; }
96 gettimeofday(&now,
nullptr);
149 gethostname(hostname, 64);
153 char*
pwd = getcwd(
nullptr, 0);
168 std::vector<std::string> evSelectionList;
174 std::for_each(evSelectionList.begin(), evSelectionList.end(), [](
std::string&
s) {
176 s = squote +
s + squote;
181 if (evSelection.empty()) {
185 ibooker.
bookString(
"eventSelection", evSelection);
201 gettimeofday(&now,
nullptr);
EventNumber_t event() const
MonitorElement * hostName_
of event processed so far
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * workingDir_
DQM "name" of the job (eg, Hcal or DT)
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
const edm::EventSetup & c
MonitorElement * eventTimeStamp_
virtual void setCurrentFolder(std::string const &fullpath)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
#define DEFINE_FWK_MODULE(type)
MonitorElement * processId_
Number of collector updates (TBD)
MonitorElement * processStartTimeStamp_
The PID associated with this job.
LuminosityBlockNumber_t luminosityBlock() const
ModuleDescription const & moduleDescription() const
MonitorElement * errSummaryEtaPhi_
Subdetector-specific error summary (float)
ParameterSet const & getProcessParameterSetContainingModule(ModuleDescription const &moduleDescription)
MonitorElement * bookString(TString const &name, TString const &value, FUNC onbooking=NOOP())
MonitorElement * cmsswVer_
Current working directory of the job.
MonitorElement * eventId_
UTC time of the run start.
std::string eventInfoFolder_
MonitorElement * lumisecId_
MonitorElement * runStartTimeStamp_
DQMEventInfo(const edm::ParameterSet &ps)
Constructor.
MonitorElement * processEvents_
Avg # of events in programmable window (default: 5 min)
MonitorElement * processLatency_
The UTC time of the last event.
MonitorElement * processName_
Hostname of the local machine.
MonitorElement * errSummary_
DQM patch version for this job.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
~DQMEventInfo() override
Destructor.
std::string getReleaseVersion()
static std::string join(char **cmd)
ParameterSet const & getParameterSet(std::string const &) const
MonitorElement * nUpdates_
These MEs are either static or updated upon each analyze() call.
T getParameter(std::string const &) const
MonitorElement * bookInt(TString const &name, FUNC onbooking=NOOP())
MonitorElement * processEventRate_
Time elapsed since the last event.
Timestamp const & beginTime() const
MonitorElement * dqmPatch_
CMSSW version run for this job.
MonitorElement * errSummarySegment_[10]
Subdetector-specific etaPhi summary (float)
MonitorElement * processTimeStamp_
The UTC time of the first event processed.
static double stampToReal(edm::Timestamp time)
TimeValue_t value() const
std::string subsystemname_
edm::Timestamp time() const