File indexing completed on 2025-08-03 08:20:54
0001 #include "ServerFuncs.C"
0002
0003 #include <onlmon/hcal/HcalMon.h>
0004
0005 #include <onlmon/OnlMonServer.h>
0006
0007
0008 R__LOAD_LIBRARY(libonlhcalmon_server.so)
0009
0010 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")
0011 {
0012 char OHCALMON_STR[100];
0013 sprintf(OHCALMON_STR, "O%s", name.c_str());
0014 char IHCALMON_STR[100];
0015 sprintf(IHCALMON_STR, "I%s", name.c_str());
0016 OnlMon *m = new HcalMon(OHCALMON_STR);
0017 m->SetMonitorServerId(serverid);
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 }