2 #include "classlib/iobase/InetServerSocket.h" 3 #include "classlib/iobase/LocalServerSocket.h" 4 #include "classlib/sysapi/InetSocket.h" 5 #include "classlib/utils/SystemError.h" 6 #include "classlib/utils/Regexp.h" 7 #include <fmt/format.h> 22 #define MESSAGE_SIZE_LIMIT (1 * 1024 * 1024) 23 #define SOCKET_BUF_SIZE (1 * 1024 * 1024) 25 #define MESSAGE_SIZE_LIMIT (8 * 1024 * 1024) 26 #define SOCKET_BUF_SIZE (8 * 1024 * 1024) 28 #define SOCKET_READ_SIZE (SOCKET_BUF_SIZE / 8) 29 #define SOCKET_READ_GROWTH (SOCKET_BUF_SIZE) 33 static const Regexp
s_rxmeval(
"<(.*)>(i|f|s|qr)=(.*)</\\1>");
48 return std::cout <<
now.format(
true,
"%Y-%m-%d %H:%M:%S.") <<
now.nanoformat(3, 3) <<
" " << appname_ <<
"[" << pid_
54 b->data.insert(
b->data.end(), (
const unsigned char *)
data, (
const unsigned char *)
data + len);
76 for (
auto i = waiting_.begin(),
e = waiting_.end();
i !=
e;)
102 (*msg)->
next =
nullptr;
105 words[0] =
sizeof(words) + len;
106 words[1] = DQM_MSG_GET_OBJECT;
108 copydata(*
msg, words,
sizeof(words));
120 requestObjectData(owner, !
name.empty() ? &
name[0] :
nullptr,
name.size());
122 waiting_.push_back(wo);
133 (*msg)->
next =
nullptr;
135 releaseFromWait(*
msg, *
i,
o);
144 for (
auto i = waiting_.begin(),
e = waiting_.end();
i !=
e;)
146 releaseFromWait(
i++,
o);
156 std::ostringstream qrs;
157 QReports::const_iterator qi, qe;
158 for (qi = qr.begin(), qe = qr.end(); qi != qe; ++qi) {
160 sprintf(
buf,
"%d%c%n%.*g", qi->code, 0, &
pos, DBL_DIG + 2, qi->qtresult);
161 qrs <<
buf <<
'\0' <<
buf +
pos <<
'\0' << qi->qtname <<
'\0' << qi->algorithm <<
'\0' << qi->message <<
'\0' 170 const char *qdata = from;
200 qv.
code = atoi(qdata);
241 if (
buf.Length() ==
buf.BufferSize())
246 TClass *
c =
buf.ReadClass();
249 return c ?
buf.ReadObject(
c) : 0;
254 DQMNet::reconstructObject(Object &
o)
256 TBufferFile
buf(TBufferFile::kRead,
o.rawdata.size(), &
o.rawdata[0], kFALSE);
267 unpackQualityData(
o.qreports,
o.flags,
o.qdata.c_str());
274 DQMNet::reinstateObject(
DQMStore *store, Object &
o)
276 if (! reconstructObject (
o))
282 switch (
o.flags & DQM_PROP_TYPE_MASK)
284 case DQM_PROP_TYPE_INT:
286 obj->Fill(atoll(
o.scalar.c_str()));
289 case DQM_PROP_TYPE_REAL:
291 obj->Fill(atof(
o.scalar.c_str()));
294 case DQM_PROP_TYPE_STRING:
298 case DQM_PROP_TYPE_TH1F:
302 case DQM_PROP_TYPE_TH1S:
306 case DQM_PROP_TYPE_TH1D:
310 case DQM_PROP_TYPE_TH1I:
314 case DQM_PROP_TYPE_TH2F:
318 case DQM_PROP_TYPE_TH2S:
322 case DQM_PROP_TYPE_TH2D:
326 case DQM_PROP_TYPE_TH2I:
330 case DQM_PROP_TYPE_TH3F:
334 case DQM_PROP_TYPE_TH3S:
335 obj = store->book3S(
name, dynamic_cast<TH3S *>(
o.object));
338 case DQM_PROP_TYPE_TH3D:
339 obj = store->book3DD(
name, dynamic_cast<TH3D *>(
o.object));
342 case DQM_PROP_TYPE_PROF:
346 case DQM_PROP_TYPE_PROF2D:
352 <<
"ERROR: unexpected monitor element of type " 353 << (
o.flags & DQM_PROP_TYPE_MASK) <<
" called '" 354 <<
o.dirname <<
'/' <<
o.objname <<
"'\n";
361 obj->data_.tag =
o.tag;
362 obj->data_.qreports =
o.qreports;
378 sendObjectToPeer(
msg, *
o,
true);
381 words[0] =
sizeof(words) +
w.name.size();
382 words[1] = DQM_REPLY_NONE;
383 words[2] =
w.name.size();
385 msg->data.reserve(
msg->data.size() + words[0]);
386 copydata(
msg, &words[0],
sizeof(words));
387 copydata(
msg, &
w.name[0],
w.name.size());
395 uint32_t
flags =
o.flags & ~DQM_PROP_DEAD;
398 if ((
flags & DQM_PROP_TYPE_MASK) <= DQM_PROP_TYPE_SCALAR)
399 objdata.insert(objdata.end(), &
o.scalar[0], &
o.scalar[0] +
o.scalar.size());
401 objdata.insert(objdata.end(), &
o.rawdata[0], &
o.rawdata[0] +
o.rawdata.size());
404 uint32_t namelen =
o.dirname.size() +
o.objname.size() + 1;
405 uint32_t datalen = objdata.size();
406 uint32_t qlen =
o.qdata.size();
408 if (
o.dirname.empty())
411 words[0] = 9 *
sizeof(uint32_t) + namelen + datalen + qlen;
412 words[1] = DQM_REPLY_OBJECT;
414 words[3] = (
o.version >> 0) & 0xffffffff;
415 words[4] = (
o.version >> 32) & 0xffffffff;
421 msg->data.reserve(
msg->data.size() + words[0]);
422 copydata(
msg, &words[0], 9 *
sizeof(uint32_t));
424 copydata(
msg, &(
o.dirname)[0],
o.dirname.size());
425 if (!
o.dirname.empty())
426 copydata(
msg,
"/", 1);
427 copydata(
msg, &
o.objname[0],
o.objname.size());
430 copydata(
msg, &objdata[0], datalen);
432 copydata(
msg, &
o.qdata[0], qlen);
442 case DQM_MSG_UPDATE_ME: {
443 if (len != 2 *
sizeof(uint32_t)) {
444 logme() <<
"ERROR: corrupt 'UPDATE_ME' message of length " << len <<
" from peer " <<
p->peeraddr << std::endl;
449 logme() <<
"DEBUG: received message 'UPDATE ME' from peer " <<
p->peeraddr <<
", size " << len << std::endl;
455 case DQM_MSG_LIST_OBJECTS: {
457 logme() <<
"DEBUG: received message 'LIST OBJECTS' from peer " <<
p->peeraddr <<
", size " << len << std::endl;
460 sendObjectListToPeer(
msg,
true,
false);
464 case DQM_MSG_GET_OBJECT: {
466 logme() <<
"DEBUG: received message 'GET OBJECT' from peer " <<
p->peeraddr <<
", size " << len << std::endl;
468 if (len < 3 *
sizeof(uint32_t)) {
469 logme() <<
"ERROR: corrupt 'GET IMAGE' message of length " << len <<
" from peer " <<
p->peeraddr << std::endl;
474 memcpy(&namelen,
data + 2 *
sizeof(uint32_t),
sizeof(namelen));
475 if (len != 3 *
sizeof(uint32_t) + namelen) {
476 logme() <<
"ERROR: corrupt 'GET OBJECT' message of length " << len <<
" from peer " <<
p->peeraddr
477 <<
", expected length " << (3 *
sizeof(uint32_t)) <<
" + " << namelen << std::endl;
482 Peer *owner =
nullptr;
485 o->lastreq = Time::current().ns();
486 if ((
o->rawdata.empty() || (
o->flags & DQM_PROP_STALE)) &&
487 (
o->flags & DQM_PROP_TYPE_MASK) > DQM_PROP_TYPE_SCALAR)
488 waitForData(
p,
name,
"", owner);
490 sendObjectToPeer(
msg, *
o,
true);
493 words[0] =
sizeof(words) +
name.size();
494 words[1] = DQM_REPLY_NONE;
495 words[2] =
name.size();
497 msg->data.reserve(
msg->data.size() + words[0]);
498 copydata(
msg, &words[0],
sizeof(words));
504 case DQM_REPLY_LIST_BEGIN: {
505 if (len != 4 *
sizeof(uint32_t)) {
506 logme() <<
"ERROR: corrupt 'LIST BEGIN' message of length " << len <<
" from peer " <<
p->peeraddr << std::endl;
512 memcpy(&
flags,
data + 3 *
sizeof(uint32_t),
sizeof(uint32_t));
515 logme() <<
"DEBUG: received message 'LIST BEGIN " << (
flags ?
"FULL" :
"INCREMENTAL") <<
"' from " 516 <<
p->peeraddr <<
", size " << len << std::endl;
529 case DQM_REPLY_LIST_END: {
530 if (len != 4 *
sizeof(uint32_t)) {
531 logme() <<
"ERROR: corrupt 'LIST END' message of length " << len <<
" from peer " <<
p->peeraddr << std::endl;
537 memcpy(&
flags,
data + 3 *
sizeof(uint32_t),
sizeof(uint32_t));
547 logme() <<
"DEBUG: received message 'LIST END " << (
flags ?
"FULL" :
"INCREMENTAL") <<
"' from " <<
p->peeraddr
548 <<
", size " << len << std::endl;
557 case DQM_REPLY_OBJECT: {
559 if (len <
sizeof(words)) {
560 logme() <<
"ERROR: corrupt 'OBJECT' message of length " << len <<
" from peer " <<
p->peeraddr << std::endl;
564 memcpy(&words[0],
data,
sizeof(words));
565 uint32_t &namelen = words[6];
566 uint32_t &datalen = words[7];
567 uint32_t &qlen = words[8];
569 if (len !=
sizeof(words) + namelen + datalen + qlen) {
570 logme() <<
"ERROR: corrupt 'OBJECT' message of length " << len <<
" from peer " <<
p->peeraddr
571 <<
", expected length " <<
sizeof(words) <<
" + " << namelen <<
" + " << datalen <<
" + " << qlen
576 unsigned char *namedata =
data +
sizeof(words);
577 unsigned char *objdata = namedata + namelen;
578 unsigned char *qdata = objdata + datalen;
579 unsigned char *enddata = qdata + qlen;
584 logme() <<
"DEBUG: received message 'OBJECT " <<
name <<
"' from " <<
p->peeraddr <<
", size " << len
595 o->flags = words[2] | DQM_PROP_NEW | DQM_PROP_RECEIVED;
597 o->version = ((
uint64_t)words[4] << 32 | words[3]);
600 if ((
o->flags & DQM_PROP_TYPE_MASK) <= DQM_PROP_TYPE_SCALAR) {
602 o->scalar.insert(
o->scalar.end(), objdata, qdata);
603 }
else if (datalen) {
605 o->rawdata.insert(
o->rawdata.end(), objdata, qdata);
606 }
else if (!
o->rawdata.empty())
607 o->flags |= DQM_PROP_STALE;
608 o->qdata.insert(
o->qdata.end(), qdata, enddata);
612 if (
o->lastreq && !datalen && (
o->flags & DQM_PROP_TYPE_MASK) > DQM_PROP_TYPE_SCALAR)
613 requestObjectData(
p, (namelen ? &
name[0] :
nullptr), namelen);
617 releaseWaiters(
name,
o);
621 case DQM_REPLY_NONE: {
623 if (len <
sizeof(words)) {
624 logme() <<
"ERROR: corrupt 'NONE' message of length " << len <<
" from peer " <<
p->peeraddr << std::endl;
628 memcpy(&words[0],
data,
sizeof(words));
629 uint32_t &namelen = words[2];
631 if (len !=
sizeof(words) + namelen) {
632 logme() <<
"ERROR: corrupt 'NONE' message of length " << len <<
" from peer " <<
p->peeraddr
633 <<
", expected length " <<
sizeof(words) <<
" + " << namelen << std::endl;
637 unsigned char *namedata =
data +
sizeof(words);
641 logme() <<
"DEBUG: received message 'NONE " <<
name <<
"' from " <<
p->peeraddr <<
", size " << len
649 o->flags |= DQM_PROP_DEAD;
654 releaseWaiters(
name,
nullptr);
659 logme() <<
"ERROR: unrecognised message of length " << len <<
" and type " <<
type <<
" from peer " <<
p->peeraddr
669 assert(getPeer(dynamic_cast<Socket *>(
ev->source)) ==
p);
677 logme() <<
"WARNING: connection to the DQM server at " <<
p->peeraddr
678 <<
" lost (will attempt to reconnect in 15 seconds)\n";
679 losePeer(
nullptr,
p,
ev);
681 losePeer(
"WARNING: lost peer connection ",
p,
ev);
690 IOSize len =
b->data.size() -
p->sendpos;
691 const void *
data = (len ? (
const void *)&
b->data[
p->sendpos] : (
const void *)&
data);
695 done = (len ?
ev->source->write(
data, len) : 0);
697 logme() <<
"DEBUG: sent " <<
done <<
" bytes to peer " <<
p->peeraddr << std::endl;
699 losePeer(
"WARNING: unable to write to peer ",
p,
ev, &
e);
705 if (
p->sendpos ==
b->data.size()) {
707 p->sendq = old->
next;
729 if ((sz =
ev->source->read(&
buf[0],
buf.size()))) {
731 logme() <<
"DEBUG: received " << sz <<
" bytes from peer " <<
p->peeraddr << std::endl;
733 if (
data.capacity() <
data.size() + sz)
737 while (sz ==
sizeof(
buf));
739 auto *
next =
dynamic_cast<SystemError *
>(
e.next());
740 if (
next &&
next->portable() == SysErr::ErrTryAgain)
744 losePeer(
"WARNING: failed to read from peer ",
p,
ev, &
e);
753 while (
data.size() - consumed >=
sizeof(uint32_t) &&
p->waiting < MAX_PEER_WAITREQS) {
755 memcpy(&msglen, &
data[0] + consumed,
sizeof(msglen));
758 losePeer(
"WARNING: excessively large message from ",
p,
ev);
763 if (
data.size() - consumed >= msglen) {
765 if (msglen < 2 *
sizeof(uint32_t)) {
766 logme() <<
"ERROR: corrupt peer message of length " << msglen <<
" from peer " <<
p->peeraddr << std::endl;
775 if (!
msg.data.empty()) {
778 prev = &(*prev)->
next;
781 (*prev)->
next =
nullptr;
787 losePeer(
"WARNING: data stream error with ",
p,
ev);
803 sel_.setMask(
p->socket,
p->mask &= ~
IORead);
820 Socket *
s = server_->accept();
828 if (
auto *inet = dynamic_cast<InetSocket *>(
s)) {
829 InetAddress peeraddr = inet->peername();
830 InetAddress myaddr = inet->sockname();
831 p->peeraddr =
fmt::format(
"{}:{}", peeraddr.hostname(), peeraddr.port());
832 localaddr =
fmt::format(
"{}:{}", myaddr.hostname(), myaddr.port());
833 }
else if (
auto *
local = dynamic_cast<LocalSocket *>(
s)) {
834 p->peeraddr =
local->peername().path();
835 localaddr =
local->sockname().path();
844 logme() <<
"INFO: new peer " <<
p->peeraddr <<
" is now connected to " << localaddr << std::endl;
864 unsigned char buf[1024];
865 while ((sz =
ev->source->read(
buf,
sizeof(
buf))))
868 auto *
next =
dynamic_cast<SystemError *
>(
e.next());
869 if (
next &&
next->portable() == SysErr::ErrTryAgain)
872 logme() <<
"WARNING: error reading from notification pipe: " <<
e.explain() << std::endl;
889 unsigned oldmask =
p->mask;
891 sel_.setMask(
p->socket,
p->mask &= ~
IOWrite);
894 sel_.setMask(
p->socket,
p->mask |=
IOWrite);
896 if (debug_ && oldmask !=
p->mask)
897 logme() <<
"DEBUG: updating mask for " <<
p->peeraddr <<
" to " <<
p->mask <<
" from " << oldmask << std::endl;
904 logme() <<
"INFO: connection closed to " <<
p->peeraddr << std::endl;
905 losePeer(
nullptr,
p,
nullptr);
912 appname_(appname.
empty() ?
"DQMNet" : appname.c_str()),
915 version_(
Time::current()),
916 communicate_((pthread_t)-1),
919 waitStale_(0, 0, 0, 0, 500000000 ),
920 waitMax_(0, 0, 0, 5 , 0),
958 logme() <<
"ERROR: DQM server was already started.\n";
964 auto *
s =
new InetSocket(SOCK_STREAM, 0,
addr.family());
969 s->setBlocking(
false);
974 logme() <<
"ERROR: Failed to start server at port " <<
port <<
": " <<
e.explain() << std::endl;
976 throw cms::Exception(
"DQMNet::startLocalServer") <<
"Failed to start server at port " <<
978 port <<
": " <<
e.explain().c_str();
981 logme() <<
"INFO: DQM server started at port " <<
port << std::endl;
989 logme() <<
"ERROR: DQM server was already started.\n";
1002 logme() <<
"ERROR: Failed to start server at path " <<
path <<
": " <<
e.explain() << std::endl;
1005 <<
"Failed to start server at path " <<
path <<
": " <<
e.explain().c_str();
1008 logme() <<
"INFO: DQM server started at path " <<
path << std::endl;
1056 pthread_sigmask(SIG_BLOCK, &sigs,
nullptr);
1064 pthread_mutex_lock(&
lock_);
1070 pthread_mutex_unlock(&
lock_);
1078 logme() <<
"ERROR: DQM networking thread has already been started\n";
1082 pthread_mutex_init(&
lock_,
nullptr);
1094 for (
auto ap : automatic) {
1098 if (!ap->host.empty() && !ap->peer && (
now = Time::current()) > ap->next) {
1099 ap->
next =
now + TimeSpan(0, 0, 0, 15 , 0);
1100 InetSocket *
s =
nullptr;
1102 InetAddress
addr(ap->host.c_str(), ap->port);
1103 s =
new InetSocket(SOCK_STREAM, 0,
addr.family());
1104 s->setBlocking(
false);
1109 auto *sys =
dynamic_cast<SystemError *
>(
e.next());
1110 if (!sys || sys->portable() != SysErr::ErrOperationInProgress) {
1127 InetAddress peeraddr = ((InetSocket *)
s)->peername();
1128 InetAddress myaddr = ((InetSocket *)
s)->sockname();
1129 p->peeraddr =
fmt::format(
"{}:{}", peeraddr.hostname(), peeraddr.port());
1131 p->update = ap->update;
1138 p->sendq->next =
nullptr;
1139 copydata(
p->sendq, words,
sizeof(words));
1144 logme() <<
"INFO: now connected to " <<
p->peeraddr <<
" from " << myaddr.hostname() <<
":" << myaddr.port()
1152 now = Time::current();
1159 nextFlush =
now + TimeSpan(0, 0, 0, 15 , 0);
1178 if (
i->time < waitold) {
1179 logme() <<
"WARNING: source not responding in " << (
waitMax_.ns() * 1
e-9) <<
"s to retrieval, releasing '" 1180 <<
i->name <<
"' from wait, have " << (
o ?
o->rawdata.size() : 0) <<
" data available\n";
1183 logme() <<
"WARNING: source not responding in " << (
waitStale_.ns() * 1
e-9) <<
"s to update, releasing '" 1184 <<
i->name <<
"' from wait, have " <<
o->rawdata.size() <<
" data available\n";
1201 wakeup_.sink()->write(&byte, 1);
1217 o.dirname = *
local_->dirs.insert(
o.dirname).first;
1218 std::pair<ObjectMap::iterator, bool>
info(
local_->objs.insert(
o));
1223 auto &old =
const_cast<Object &
>(*
info.first);
1240 ObjectMap::iterator
i,
e;
1243 path.reserve(
i->dirname.size() +
i->objname.size() + 2);
1249 if (!known.count(
path))
1250 ++removed,
local_->objs.erase(
i++);
edm::ErrorSummaryEntry Error
static void unpackQualityData(QReports &qr, uint32_t &flags, const char *from)
DQMNet(const std::string &appname="")
static const uint32_t DQM_PROP_REPORT_WARN
static const uint32_t DQM_MSG_UPDATE_ME
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
bool onLocalNotify(lat::IOSelectEvent *ev)
MonitorElement * bookProfile2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, double lowZ, double highZ, char const *option="s", FUNC onbooking=NOOP())
MonitorElement * book1I(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * book2S(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
virtual void sendObjectListToPeers(bool all)=0
void lock()
Acquire a lock on the DQM net layer.
static const Regexp s_rxmeval("<(.*)>(i|f|s|qr)=(.*)</>")
#define MESSAGE_SIZE_LIMIT
TObject * extractNextObject(TBufferFile &buf)
static void discard(Bucket *&b)
virtual void updatePeerMasks()=0
virtual Peer * createPeer(lat::Socket *s)=0
void setCurrentFolder(std::string const &fullpath) override
void releaseWaiters(const std::string &name, Object *o)
void staleObjectWaitLimit(lat::TimeSpan time)
static void * communicate(void *obj)
void shutdown()
Stop the network layer and wait it to finish.
void swap(Association< C > &lhs, Association< C > &rhs)
MonitorElement * bookString(TString const &name, TString const &value, FUNC onbooking=NOOP())
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
void waitForData(Peer *p, const std::string &name, const std::string &info, Peer *owner)
virtual bool shouldStop()
void requestObjectData(Peer *p, const char *name, size_t len)
Queue an object request to the data server.
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
virtual Object * findObject(Peer *p, const std::string &name, Peer **owner=nullptr)=0
virtual bool onMessage(Bucket *msg, Peer *p, unsigned char *data, size_t len)
bool onPeerData(lat::IOSelectEvent *ev, Peer *p)
Handle communication to a particular client.
MonitorElement * book1S(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
static const uint32_t DQM_PROP_REPORT_ERROR
#define SOCKET_READ_GROWTH
static const uint32_t DQM_PROP_REPORT_OTHER
virtual void releaseFromWait(Bucket *msg, WaitObject &w, Object *o)
Peer * createPeer(lat::Socket *s) override
virtual void sendObjectToPeer(Bucket *msg, Object &o, bool data)
unsigned long long uint64_t
bool removeLocalExcept(const std::set< std::string > &known)
bool onPeerConnect(lat::IOSelectEvent *ev)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
MonitorElement * bookInt(TString const &name, FUNC onbooking=NOOP())
void startLocalServer(int port)
static void packQualityData(std::string &into, const QReports &qr)
static const uint32_t DQM_PROP_STALE
MonitorElement * book2DD(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
void losePeer(const char *reason, Peer *peer, lat::IOSelectEvent *event, lat::Error *err=nullptr)
char data[epos_bytes_allocation]
void unlock()
Release the lock on the DQM net layer.
void listenToCollector(const std::string &host, int port)
static const int STATUS_OK
static const uint32_t DQM_MSG_LIST_OBJECTS
static void copydata(Bucket *b, const void *data, size_t len)
void updateLocalObject(Object &o)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
std::vector< QValue > QReports
void reserveLocalSpace(uint32_t size)
Give a hint of how much capacity to allocate for local objects.
MonitorElement * book3D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, FUNC onbooking=NOOP())
MonitorElement * book2I(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
if(threadIdxLocalY==0 &&threadIdxLocalX==0)
void updateToCollector(const std::string &host, int port)
std::vector< unsigned char > DataBlob
DQMBasicNet(const std::string &appname="")