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
blob
master
calibrations
generators
offline
database
framework
packages
CaloBase
CaloEmbedding
CaloReco
centrality
ClusterIso
compressor
decayfinder
epd
eventplaneinfo
globalvertex
Half
HFTrackEfficiency
intt
jetbackground
jetbase
KFParticle_sPHENIX
mbd
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
QAUtils
rawtodst
ResonanceJetTagging
tpc
tpccalib
tpcdaq
TPCHitTrackDisplay
trackbase
trackbase_historic
TrackerMillepedeAlignment
TrackingDiagnostics
trackreco
trigger
vararray
QA
simulation
validation
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
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
Fun4All_ExportGeom.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_ExportGeom.C
1
// $Id: $
2
11
12
void
13
Fun4All_ExportGeom
(
string
DST_file_name =
"sPHENIX.root_DST.root"
)
14
{
15
16
gSystem->Load(
"libphgeom.so"
);
17
18
// in case DST contains sPHENIX stuff
19
gSystem->Load(
"libg4calo.so"
);
20
gSystem->Load(
"libg4vertex.so"
);
21
gSystem->Load(
"libg4eval.so"
);
22
23
Fun4AllServer
*se =
Fun4AllServer::instance
();
24
se->
Verbosity
(1);
25
recoConsts
*rc =
recoConsts::instance
();
26
rc->
set_IntFlag
(
"RUNNUMBER"
, 12345);
27
28
Fun4AllInputManager
*hitsin =
new
Fun4AllDstInputManager
(
"DSTin"
);
29
hitsin->
fileopen
(DST_file_name);
30
se->
registerInputManager
(hitsin);
31
32
// run one event as example
33
se->
run
(1);
34
35
string
output
= DST_file_name +
"_export.root"
;
36
PHGeomUtility::ExportGeomtry
(se->
topNode
(),DST_file_name +
"_export.root"
);
37
cout <<
"Done export Geometry to "
<<output<<endl;
38
39
se->
End
();
40
delete
se;
41
cout <<
"All done"
<<endl;
42
gSystem->Exit(0);
43
44
}
45
46
47
coresoftware
blob
master
offline
packages
PHGeometry
macros
Fun4All_ExportGeom.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:08
using
1.8.2 with
sPHENIX GitHub integration