Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
blob
main
macros
CommonFuncs.C
makehtml.C
run_bbc_client.C
run_bbc_server.C
run_cemc_client.C
run_cemc_client_2subevents.C
run_cemc_server.C
run_cemc_server_SEB00.C
run_cemc_server_SEB01.C
run_daq_client.C
run_daq_server.C
run_example_client.C
run_example_server0.C
run_example_server1.C
run_hcal_server.C
run_ihcal_client.C
run_intt_client.C
run_intt_server.C
run_ll1_client.C
run_ll1_server.C
run_mvtx_client.C
run_mvtx_server.C
run_ohcal_client.C
run_pktsize_client.C
run_pktsize_server.C
run_Poms.C
run_sepd_client.C
run_sepd_server.C
run_tpc_client.C
run_tpc_server.C
run_tpot_client.C
run_tpot_server.C
run_zdc_client.C
run_zdc_server.C
ServerFuncs.C
onlmonclient
onlmondatabase
onlmonserver
onlmonutils
poms
subsystems
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ServerFuncs.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ServerFuncs.C
1
#include <onlmon/OnlMonServer.h>
2
#include <
pmonitor/pmonitor.h
>
3
4
// cppcheck-suppress unknownMacro
5
R__LOAD_LIBRARY(libonlmonserver.so)
6
// cppcheck-suppress unknownMacro
7
R__LOAD_LIBRARY(libonlmonserver_funcs.so)
8
void
CleanUpServer
();
9
10
void
start_server
(const std::
string
&
prdffile
= "")
11
{
12
OnlMonServer
*se =
OnlMonServer::instance
();
// get pointer to Server Framework
13
if
(prdffile.empty())
14
{
15
cout <<
"No Input file given"
<< endl;
16
return
;
17
}
18
if
(prdffile.find(
"seb"
) == 0 || prdffile.find(
"ebdc"
) == 0 || prdffile.find(
"intt"
) == 0 || prdffile.find(
"mvtx"
) == 0)
19
{
20
pidentify
(0);
21
rcdaqopen
(prdffile.c_str());
22
prun
();
23
// if the rcdaq server is terminated we execute the EndRun and then
24
// save the histograms
25
se->
EndRun
(se->
RunNumber
());
//
26
se->
WriteHistoFile
();
27
// delete enablecorbabuf;
28
CleanUpServer
();
29
}
30
else
31
{
32
pfileopen
(prdffile.c_str());
33
}
34
return
;
35
}
36
37
void
CleanUpServer
()
38
{
39
pclose
();
40
OnlMonServer
*se =
OnlMonServer::instance
();
41
delete
se;
42
gSystem->Exit(0);
43
}
OnlMon
blob
main
macros
ServerFuncs.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration