Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
run_example_server1.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file run_example_server1.C
1
// This starts the example server with id=1
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_server1
(const std::
string
&
name
= "MYMON",
unsigned
int
serverid = 1, 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
19
OnlMonServer
*se =
OnlMonServer::instance
();
20
// se->Verbosity(3);
21
se->
registerMonitor
(m);
22
start_server
(
prdffile
);
23
prun
(100);
24
return
;
25
}
OnlMon
blob
main
macros
run_example_server1.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration