Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
run_tpot_server.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file run_tpot_server.C
1 #include "ServerFuncs.C"
2 
3 #include <onlmon/tpot/TpotMon.h>
4 
5 #include <onlmon/OnlMonServer.h>
6 
7 // cppcheck-suppress unknownMacro
8 R__LOAD_LIBRARY(libonltpotmon_server.so)
9 
11  const std::string &name = "TPOTMON",
12  unsigned int serverid = 0,
13  const std::string &prdffile = "/sphenix/lustre01/sphnxpro/commissioning/TPOT/junk/TPOT_ebdc39_junk-00020121-0000.prdf"
14  )
15 {
16  // create subsystem Monitor object
17  auto m = new TpotMon(name);
18  m->SetMonitorServerId(serverid);
19 
20  // get pointer to Server Framework
21  auto se = OnlMonServer::instance();
22 
23  // register subsystem Monitor with Framework
24  se->registerMonitor(m);
25 
26  // and start
28  return;
29 }