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
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
PHGeomUtility.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHGeomUtility.h
1
#ifndef PHGEOMETRY_PHGEOMUTILITY_H
2
#define PHGEOMETRY_PHGEOMUTILITY_H
3
4
#include <string>
5
6
class
PHCompositeNode
;
7
class
TGeoManager;
8
class
PHGeomTGeo
;
9
class
PHGeomIOTGeo
;
10
12
class
PHGeomUtility
13
{
14
public
:
16
static
TGeoManager *
17
GetTGeoManager
(
PHCompositeNode
*topNode);
18
20
static
int
21
ImportGeomFile
(
PHCompositeNode
*topNode,
const
std::string
&geometry_file);
22
24
static
int
25
ImportCurrentTGeoManager
(
PHCompositeNode
*topNode);
26
28
static
void
29
ExportGeomtry
(
PHCompositeNode
*topNode,
const
std::string
&geometry_file);
30
32
static
PHGeomTGeo
*
33
GetGeomTGeoNode
(
PHCompositeNode
*topNode,
bool
build_new =
true
);
34
36
static
PHGeomIOTGeo
*
37
GetGeomIOTGeoNode
(
PHCompositeNode
*topNode,
bool
build_new =
true
);
38
41
static
PHGeomIOTGeo
*
42
UpdateIONode
(
PHCompositeNode
*topNode);
43
46
static
PHGeomTGeo
*
47
LoadFromIONode
(
PHCompositeNode
*topNode);
48
52
static
std::string
53
GenerateGeometryFileName
(
const
std::string
&filename_extension =
"gdml"
);
54
56
static
bool
57
RemoveGeometryFile
(
const
std::string
&file_name);
58
60
static
void
SetVerbosity
(
int
v
);
61
63
static
int
GetVerbosity
();
64
66
static
std::string
67
GetDSTNodeName
()
68
{
69
return
std::string
(
"GEOMETRY"
);
70
}
71
73
static
std::string
74
GetDSTIONodeName
()
75
{
76
return
std::string
(
"GEOMETRY_IO"
);
77
}
78
81
static
void
SetGenerateGeometryFileNameBase
(
const
std::string
&base) {
mg_GenerateGeometryFileNameBase
= base; }
82
83
private
:
84
PHGeomUtility
() =
delete
;
85
~PHGeomUtility
() =
delete
;
86
89
static
std::string
mg_GenerateGeometryFileNameBase
;
90
};
91
92
#endif
coresoftware
blob
master
offline
packages
PHGeometry
PHGeomUtility.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:08
using
1.8.2 with
sPHENIX GitHub integration