Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-04-05 08:16:03

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