11 #include "TBufferFile.h" 25 : store_(&*
edm::
Service<
DQMStore>()), net_(nullptr), lastFlush_(0), publishFrequency_(5.0) {
30 int port =
pset.getUntrackedParameter<
int>(
"collectorPort", 9090);
31 bool verbose =
pset.getUntrackedParameter<
bool>(
"verbose",
false);
57 std::set<std::string> seen;
68 if (!
me->wasUpdated())
73 o.flags =
me->data_.flags;
75 o.dirname =
me->data_.dirname.substr(0,
me->data_.dirname.size() - 1);
76 o.objname =
me->data_.objname;
87 me->packScalarData(
o.scalar,
"");
90 TBufferFile
buffer(TBufferFile::kWrite);
93 buffer.WriteObjectAny(
nullptr,
nullptr);
94 o.rawdata.resize(
buffer.Length());
static std::recursive_mutex s_mutex
void lock()
Acquire a lock on the DQM net layer.
void watchPostEvent(PostEvent::slot_type const &iSlot)
void watchPostStreamEndLumi(PostStreamEndLumi::slot_type const &iSlot)
~DQMScope()
Release access lock to the DQM core.
void shutdown()
Stop the network layer and wait it to finish.
virtual std::vector< dqm::harvesting::MonitorElement * > getAllContents(std::string const &path) const
void flush(edm::StreamContext const &sc)
static size_t dqmhash(const void *key, size_t keylen)
unsigned long long uint64_t
bool removeLocalExcept(const std::set< std::string > &known)
static void packQualityData(std::string &into, const QReports &qr)
DQMService(const edm::ParameterSet &pset, edm::ActivityRegistry &ar)
void unlock()
Release the lock on the DQM net layer.
void updateLocalObject(Object &o)
void updateToCollector(const std::string &host, int port)
std::vector< unsigned char > DataBlob