Back to home page

sPhenix code displayed by LXR

 
 

    


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);                    // create subsystem Monitor object
0016   m->SetMonitorServerId(serverid);
0017 // If running the eventServer_classic on the local host for offline debugging
0018 // uncomment the m->SetEventReceiverClient("localhost");
0019 //  m->SetEventReceiverClient("localhost");
0020   
0021   OnlMonServer *se = OnlMonServer::instance();  // get pointer to Server Framework
0022   se->registerMonitor(m);                       // register subsystem Monitor with Framework
0023   m = new HcalMon(IHCALMON_STR);                  
0024   m->SetMonitorServerId(serverid);
0025   se->registerMonitor(m);                       
0026   start_server(prdffile);
0027   return;
0028 }