Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
run_example_server0.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file run_example_server0.C
1 // This starts the example server with id=0
2 
3 #include <ServerFuncs.C>
4 
5 #include <onlmon/example/MyMon.h>
6 
7 #include <onlmon/OnlMonServer.h>
8 
9 // cppcheck-suppress unknownMacro
10 R__LOAD_LIBRARY(libonlmymon_server.so)
11 
12 void run_example_server0(const std::string &name = "MYMON", unsigned int serverid = 0, const std::string &prdffile = "/sphenix/data/data02/sphenix/t1044/rcdaq-00000221-0000.prdf")
13 {
14 // create subsystem Monitor object
15  OnlMon *m = new MyMon(name);
16 // set server id needed for running multiple servers
17  m->SetMonitorServerId(serverid);
18 // get pointer to Server Framework
20 // se->Verbosity(3);
21  se->registerMonitor(m);
23  prun(100);
24  return;
25 }