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
prototype
pythia6
rcdaq
RDBC
tutorials
blob
master
AnaTutorial
block
CaloAna
clusters
CreateSubsysRecoModule
macros
Fun4All_MySimpleReco.C
cylinder
eventgenerator_display
IonGun
MagneticField
materialscan
Momentum
myjetanalysis
MyOwnTTree
PHG4DSTReader
sPHENIX_sims
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Fun4All_MySimpleReco.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_MySimpleReco.C
1
#ifndef MACRO_FUN4ALLMYSIMPLERECO_C
2
#define MACRO_FUN4ALLMYSIMPLERECO_C
3
4
#include <
fun4all/Fun4AllServer.h
>
5
#include <
fun4all/Fun4AllInputManager.h
>
6
#include <
fun4all/Fun4AllDummyInputManager.h
>
7
8
#include <mysimplereco/MySimpleReco.h>
9
10
R__LOAD_LIBRARY(libfun4all.so)
11
R__LOAD_LIBRARY(libMySimpleReco.so)
12
13
void
Fun4All_MySimpleReco
(const
int
nEvents
= 3)
14
{
16
// Make the Server
18
Fun4AllServer
*se =
Fun4AllServer::instance
();
19
MySimpleReco *myreco =
new
MySimpleReco();
20
se->
registerSubsystem
(myreco);
21
// this (dummy) input manager just drives the event loop
22
Fun4AllInputManager
*
in
=
new
Fun4AllDummyInputManager
(
"Bozo"
);
23
in->
Verbosity
(1);
24
se->
registerInputManager
( in );
25
// events = 0 => run till end of input file
26
if
(nEvents <= 0)
27
{
28
return
;
29
}
30
cout << endl <<
"Running over "
<< nEvents <<
" Events"
<< endl;
31
se->
run
(nEvents);
32
cout << endl <<
"Calling End in Fun4All_MySimpleReco.C"
<< endl;
33
se->
End
();
34
cout << endl <<
"All done, calling delete Fun4AllServer"
<< endl;
35
delete
se;
36
cout << endl <<
"gSystem->Exit(0)"
<< endl;
37
gSystem->Exit(0);
38
}
39
40
#endif // MACRO_FUN4ALLMYSIMPLERECO_C
tutorials
blob
master
CreateSubsysRecoModule
macros
Fun4All_MySimpleReco.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:49
using
1.8.2 with
sPHENIX GitHub integration