ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
blob
master
calibrations
generators
offline
database
framework
packages
CaloBase
CaloReco
centrality
ClusterIso
compressor
Half
HelixHough
intt
jetbackground
KFParticle_sPHENIX
micromegas
mvtx
NodeDump
particleflow
PHField
PHGenFitPkg
PHGeometry
macros
Fun4All_ExportGeom.C
Fun4All_ImportGeom.C
PHGeom_DSTInspection.C
PHGeomFileImport.cc
PHGeomFileImport.h
PHGeomIOTGeo.cc
PHGeomIOTGeo.h
PHGeomIOTGeoLinkDef.h
PHGeomTGeo.cc
PHGeomTGeo.h
PHGeomUtility.cc
PHGeomUtility.h
PHTpcTracker
tpc
tpccalib
tpcdaq
trackbase
trackbase_historic
trackreco
trigger
vararray
QA
simulation
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
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:
Wed Jun 29 2022 17:24:36
using
1.8.2 with
ECCE GitHub integration