1 #ifndef MACROS_COMMONFUNCS_C
2 #define MACROS_COMMONFUNCS_C
4 #include <onlmon/OnlMonClient.h>
8 cout <<
"online: " << online << endl;
13 for (
int i = 2061;
i <= 2068;
i++)
18 for (
int i = 1;
i <= 8;
i++)
27 const char *hostlist = gSystem->Getenv(
"ONLMON_RUNDIR");
28 char hostlistname[200];
32 sprintf(hostlistname,
"%s/monitoring_hosts.list", hostlist);
33 FILE *
f = fopen(hostlistname,
"r");
34 while (fscanf(f,
"%19s", &node[0]) != EOF)
36 cout <<
"adding " << node << endl;
57 TSeqCollection* allCanvases = gROOT->GetListOfCanvases();
58 TCanvas* canvas =
nullptr;
59 while ((canvas = (TCanvas*) allCanvases->First()))
61 std::cout <<
"Deleting Canvas " << canvas->GetName() << std::endl;