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
Fun4All_ImportGeom.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_ImportGeom.C
1
// $Id: $
2
11
#include <string>
12
using namespace
std;
13
15
void
16
Fun4All_ImportGeom
(
const
string
& geom_file =
"./sPHENIX.root"
)
17
{
18
gSystem->Load(
"libphgeom.so"
);
19
20
Fun4AllServer
*se =
Fun4AllServer::instance
();
21
se->
Verbosity
(1);
22
// just if we set some flags somewhere in this macro
23
recoConsts
*rc =
recoConsts::instance
();
24
25
PHGeomFileImport
*
import
=
new
PHGeomFileImport
(geom_file);
26
se->
registerSubsystem
(
import
);
27
28
// dummy input
29
Fun4AllInputManager
*
in
=
new
Fun4AllDummyInputManager
(
"JADE"
);
30
se->
registerInputManager
(in);
31
32
// output in DST
33
Fun4AllDstOutputManager
*
out
=
new
Fun4AllDstOutputManager
(
"DSTOUT"
,
34
geom_file +
"_DST.root"
);
35
se->
registerOutputManager
(out);
36
37
// run one event as example
38
se->
run
(1);
39
40
PHGeomUtility::ExportGeomtry
(se->
topNode
(),geom_file +
"_export.root"
);
41
42
se->
End
();
43
std::cout <<
"All done"
<< std::endl;
44
delete
se;
45
gSystem->Exit(0);
46
47
}
48
coresoftware
blob
master
offline
packages
PHGeometry
macros
Fun4All_ImportGeom.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:08
using
1.8.2 with
sPHENIX GitHub integration