File indexing completed on 2026-04-05 08:16:02
0001 #include "ServerFuncs.C"
0002
0003 #include <onlmon/hcal/HcalMon.h>
0004
0005 #include <onlmon/OnlMonServer.h>
0006
0007 R__LOAD_LIBRARY(libonlhcalmon_server.so)
0008
0009 void run_hcal_server(const std::string &name = "HCALMON", unsigned int serverid = 0, const std::string &prdffile = "/sphenix/lustre01/sphnxpro/commissioning/HCal/beam/beam_West-00020797-0000.prdf")
0010 {
0011 char OHCALMON_STR[100];
0012 sprintf(OHCALMON_STR, "O%s", name.c_str());
0013 char IHCALMON_STR[100];
0014 sprintf(IHCALMON_STR, "I%s", name.c_str());
0015 OnlMon *m = new HcalMon(OHCALMON_STR);
0016 m->SetMonitorServerId(serverid);
0017
0018
0019
0020
0021 OnlMonServer *se = OnlMonServer::instance();
0022 se->registerMonitor(m);
0023 m = new HcalMon(IHCALMON_STR);
0024 m->SetMonitorServerId(serverid);
0025 se->registerMonitor(m);
0026 start_server(prdffile);
0027 return;
0028 }