void run_thresh(//const int arm = 0, const int maxevents = 100000000) { gSystem->Load("libonlmonserver_funcs.so"); gSystem->Load("libonlmui_mon.so"); gROOT->ProcessLine(".L $ONLMON_MACROS/ServerFuncs.C"); muiMonitor *m = new muiMonitor(); // create subsystem Monitor object m->getOptions()->setVerbose(-1); // Change trigger selection /* int TriggerSelection = 0x4; // -1 means all, x>0 => actual bit match is done const char *outfilename = "onlmon_minbias.root"; */ int TriggerSelection = 0x1; // -1 means all, x>0 => actual bit match is done const char *outfilename = "onlmon_clock.root"; m->getOptions()->set_trigger(TriggerSelection); // Process possible MIN BIAS OnlMonServer *se = OnlMonServer::instance(); // get pointer to Server Framework se->registerMonitor(m); // register subsystem Monitor with Framework // we do a not very general hack here: there should only be one file in the list; we'll just take the first one.. char prdffile[200]; ifstream fin("filelist.txt"); fin >> prdffile; fin.close(); cout << " prdffile " << prdffile << endl; start_server(prdffile); prun(maxevents); se->dumpHistos(outfilename); return; } ///////////////////////////////////////////////////////////////// void muiDrawInit(const int online = 0) { gSystem->Load("libonlmui_mon.so"); gSystem->Load("libonlmonclient.so"); gROOT->ProcessLine(".L CommonFuncs.C"); OnlMonClient *cl = OnlMonClient::instance(); CreateHostList(online); // get my histos from server, the second parameter = 1 // says I know they are all on the same node // cl->requestHistoBySubSystem("MUIDMONITOR", 1); muiMonDraw *muimon = new muiMonDraw(); // create Drawing Object muimon->UseReferences(); // comment out to stop using reference histograms cl->registerDrawer(muimon); // register with client framework } ///////////////////////////////////////////////////////////////// void muiDraw(const char *what = "ALL") { OnlMonClient *cl = OnlMonClient::instance(); // get pointer to framewrk cl->requestHistoBySubSystem("MUIDMONITOR", 1); // update histos cl->Draw("MUIDMONITOR",what); // Draw Histos of registered Drawers } ///////////////////////////////////////////////////////////////// void muiPS() { OnlMonClient *cl = OnlMonClient::instance(); // get pointer to framewrk cl->MakePS("MUIDMONITOR"); // Create PS files } ///////////////////////////////////////////////////////////////// void muiHtml() { OnlMonClient *cl = OnlMonClient::instance(); // get pointer to framewrk cl->MakeHtml("MUIDMONITOR"); // Create html output }