EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
blob
master
AnaTutorial
block
CaloAna
clusters
CreateSubsysRecoModule
macros
Fun4All_MySimpleReco.C
cylinder
eventgenerator_display
IonGun
MagneticField
materialscan
Momentum
myjetanalysis
MyOwnTTree
PHG4DSTReader
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
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
#include <
fun4all/Fun4AllServer.h
>
4
#include <
fun4all/Fun4AllInputManager.h
>
5
#include <
fun4all/Fun4AllDummyInputManager.h
>
6
7
#include <mysimplereco/MySimpleReco.h>
8
9
R__LOAD_LIBRARY
(libfun4all.so)
10
R__LOAD_LIBRARY
(libMySimpleReco.so)
11
12
void
Fun4All_MySimpleReco
(const
int
nEvents
= 3)
13
{
15
// Make the Server
17
Fun4AllServer
*se =
Fun4AllServer::instance
();
18
MySimpleReco *myreco =
new
MySimpleReco();
19
se->
registerSubsystem
(myreco);
20
// this (dummy) input manager just drives the event loop
21
Fun4AllInputManager
*
in
=
new
Fun4AllDummyInputManager
(
"Bozo"
);
22
in->
Verbosity
(1);
23
se->
registerInputManager
( in );
24
// events = 0 => run till end of input file
25
if
(nEvents <= 0)
26
{
27
return
;
28
}
29
cout << endl <<
"Running over "
<< nEvents <<
" Events"
<< endl;
30
se->
run
(nEvents);
31
cout << endl <<
"Calling End in Fun4All_MySimpleReco.C"
<< endl;
32
se->
End
();
33
cout << endl <<
"All done, calling delete Fun4AllServer"
<< endl;
34
delete
se;
35
cout << endl <<
"gSystem->Exit(0)"
<< endl;
36
gSystem->Exit(0);
37
}
38
#endif // MACRO_FUN4ALLMYSIMPLERECO_C
39
fun4all_tutorials
blob
master
CreateSubsysRecoModule
macros
Fun4All_MySimpleReco.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:54
using
1.8.2 with
EIC GitHub integration