Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:54

0001 #include "CommonFuncs.C"
0002 
0003 #include <onlmon/pktsize/PktSizeMonDraw.h>
0004 
0005 #include <onlmon/OnlMonClient.h>
0006 
0007 // cppcheck-suppress unknownMacro
0008 R__LOAD_LIBRARY(libonlpktsizemon_client.so)
0009 
0010 void pktsizeDrawInit(const int online = 0)
0011 {
0012   OnlMonClient *cl = OnlMonClient::instance();
0013   // register histos we want with monitor name
0014   cl->registerHisto("pktsize_hist", "PKTSIZEMON_0");
0015   cl->AddServerHost("localhost");  // check local host first
0016 //  CreateHostList(online);
0017   // get my histos from server, the second parameter = 1
0018   // says I know they are all on the same node
0019   cl->requestHistoBySubSystem("PKTSIZEMON_0", 1);
0020   OnlMonDraw *pktsizemon = new PktSizeMonDraw("PKTSIZEMONDRAW");  // create Drawing Object
0021   cl->registerDrawer(pktsizemon);             // register with client framework
0022 }
0023 
0024 void pktsizeDraw(const char *what = "ALL")
0025 {
0026   OnlMonClient *cl = OnlMonClient::instance();  // get pointer to framewrk
0027   cl->requestHistoBySubSystem("PKTSIZEMON_0",1);        // update histos
0028   cl->Draw("PKTSIZEMONDRAW", what);                     // Draw Histos of registered Drawers
0029 }
0030 
0031 void pktsizeSavePlot()
0032 {
0033   OnlMonClient *cl = OnlMonClient::instance();  // get pointer to framewrk
0034   cl->SavePlot("PKTSIZEMONDRAW");                         // Save Plots
0035   return;
0036 }
0037 
0038 void pktsizeHtml()
0039 {
0040   OnlMonClient *cl = OnlMonClient::instance();  // get pointer to framewrk
0041   cl->MakeHtml("PKTSIZEMONDRAW");                       // Create html output
0042   return;
0043 }