Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-04-07 08:16:10

0001 #define ONLINE
0002 #include "ServerFuncs.C"
0003 
0004 #include <onlmon/bbc/BbcMon.h>
0005 
0006 #include <onlmon/OnlMonServer.h>
0007 
0008 R__LOAD_LIBRARY(libonlbbcmon_server.so)
0009 
0010 void run_bbc_server(const std::string &name = "BBCMON", unsigned int serverid = 0, const std::string &prdffile = "/sphenix/data/data02/sphenix/t1044/rcdaq-00000221-0000.prdf")
0011 {
0012   OnlMon *m = new BbcMon(name);                     // create subsystem Monitor object
0013   m->SetMonitorServerId(serverid);
0014 // If running the eventServer_classic on the local host for offline debugging
0015 // uncomment the m->SetEventReceiverClient("localhost");
0016 //  m->SetEventReceiverClient("localhost");
0017 
0018   OnlMonServer *se = OnlMonServer::instance();  // get pointer to Server Framework
0019   se->registerMonitor(m);                       // register subsystem Monitor with Framework
0020   start_server(prdffile);
0021   return;
0022 }