1 #ifndef PHGeomUtility_HH__
2 #define PHGeomUtility_HH__
82 return std::string(
"GEOMETRY");
89 return std::string(
"GEOMETRY_IO");
PHGeomIOTGeo store geometry information to DST files in the format of binary streamed TGeoVolume....
PHGeomTGeo provide run-time access to TGeoManger. It is transient object and it shall NOT be saved to...
Toolsets to do geometry operations.
static PHGeomIOTGeo * UpdateIONode(PHCompositeNode *topNode)
static std::string GenerateGeometryFileName(const std::string &filename_extension="gdml")
static int ImportGeomFile(PHCompositeNode *topNode, const std::string &geometry_file)
TGeo ROOT/GDML/Macro file -> DST node with automatic file type discrimination based on file names.
static PHGeomIOTGeo * GetGeomIOTGeoNode(PHCompositeNode *topNode, bool build_new=true)
Get persistent PHGeomIOTGeo from DST nodes. If not found, make a new one.
static std::string GetDSTNodeName()
DST node name for RunTime geometry object.
static int GetVerbosity()
Verbosity for geometry IO like, TGeoMangers.
static PHGeomTGeo * GetGeomTGeoNode(PHCompositeNode *topNode, bool build_new=true)
Get non-persistent PHGeomTGeo from DST nodes. If not found, make a new one.
static TGeoManager * GetTGeoManager(PHCompositeNode *topNode)
Main user interface: DST node -> TGeoManager for downstream use.
static void ExportGeomtry(PHCompositeNode *topNode, const std::string &geometry_file)
DST node -> TGeoManager -> export files, like gdml, .root or .C formats.
static void SetVerbosity(int v)
Verbosity for geometry IO like, TGeoMangers.
static std::string GetDSTIONodeName()
DST node name for persistent geometry storage node.
static int ImportCurrentTGeoManager(PHCompositeNode *topNode)
gGeoManager -> DST node
static PHGeomTGeo * LoadFromIONode(PHCompositeNode *topNode)
static bool RemoveGeometryFile(const std::string &file_name)
delete the geometry file after use