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_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