Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
run_intt_server.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file run_intt_server.C
1 #include "ServerFuncs.C"
2 
3 #include <onlmon/intt/InttMonConstants.h>
4 #include <onlmon/intt/InttMon.h>
5 #include <onlmon/OnlMonServer.h>
6 
7 // cppcheck-suppress unknownMacro
8 R__LOAD_LIBRARY(libonlinttmon_server.so)
9 
10 void run_intt_server(const std::string &name = "INTTMON", unsigned int serverid = 0, const std::string &prdffile = "/sphenix/u/jbertaux/evt_files/intt_intt0-00000025-0000.evt")
11 {
12  OnlMon *m = new InttMon(name); // create subsystem Monitor object
13  m->SetMonitorServerId(serverid);
14 
15  OnlMonServer *se = OnlMonServer::instance(); // get pointer to Server Framework
16  se->registerMonitor(m); // register subsystem Monitor with Framework
18  return;
19 }