Analysis Software
Documentation for sPHENIX simulation software
|
PHG4GDMLUtility is utility class that drive the PHG4GDMLWriteStructure. More...
#include <coresoftware/blob/master/simulation/g4simulation/g4gdml/PHG4GDMLUtility.hh>
Public Member Functions | |
virtual | ~PHG4GDMLUtility () |
Static Public Member Functions | |
static void | Dump_GDML (const std::string &filename, G4VPhysicalVolume *vol, PHCompositeNode *topNode=nullptr) |
save the current Geant4 geometry to GDML file. Reading PHG4GDMLConfig from topNode | |
static void | Dump_G4_GDML (const std::string &filename, G4VPhysicalVolume *vol) |
same as above but use default Geant functions as much as possible | |
static constexpr const char * | get_PHG4GDML_Schema () |
static PHG4GDMLConfig * | GetOrMakeConfigNode (PHCompositeNode *topNode, bool build_new=true) |
Get or make the parameter node PHG4GDMLConfig from DST nodes. If not found, make a new one. | |
static constexpr const char * | getDSTNodeName () |
Private Member Functions | |
PHG4GDMLUtility () | |
PHG4GDMLUtility is utility class that drive the PHG4GDMLWriteStructure.
Definition at line 23 of file PHG4GDMLUtility.hh.
View newest version in sPHENIX GitHub at line 23 of file PHG4GDMLUtility.hh
|
inlinevirtual |
Definition at line 26 of file PHG4GDMLUtility.hh.
View newest version in sPHENIX GitHub at line 26 of file PHG4GDMLUtility.hh
|
inlineprivate |
Definition at line 48 of file PHG4GDMLUtility.hh.
View newest version in sPHENIX GitHub at line 48 of file PHG4GDMLUtility.hh
|
static |
same as above but use default Geant functions as much as possible
Definition at line 54 of file PHG4GDMLUtility.cc.
View newest version in sPHENIX GitHub at line 54 of file PHG4GDMLUtility.cc
References assert, and Initialize().
Referenced by PHG4Reco::Dump_G4_GDML().
|
static |
save the current Geant4 geometry to GDML file. Reading PHG4GDMLConfig from topNode
Definition at line 33 of file PHG4GDMLUtility.cc.
View newest version in sPHENIX GitHub at line 33 of file PHG4GDMLUtility.cc
References assert, filter::config, Initialize(), Fun4AllServer::instance(), Fun4AllServer::topNode(), and PHG4GDMLWrite::Write().
Referenced by PHG4Reco::Dump_GDML().
|
inlinestatic |
Definition at line 34 of file PHG4GDMLUtility.hh.
View newest version in sPHENIX GitHub at line 34 of file PHG4GDMLUtility.hh
|
inlinestatic |
Definition at line 42 of file PHG4GDMLUtility.hh.
View newest version in sPHENIX GitHub at line 42 of file PHG4GDMLUtility.hh
|
static |
Get or make the parameter node PHG4GDMLConfig from DST nodes. If not found, make a new one.
Definition at line 66 of file PHG4GDMLUtility.cc.
View newest version in sPHENIX GitHub at line 66 of file PHG4GDMLUtility.cc
References filter::config, and PHNodeIterator::findFirst().
Referenced by PHG4GDMLDetector::PHG4GDMLDetector(), PHG4IHCalDetector::PHG4IHCalDetector(), PHG4OHCalDetector::PHG4OHCalDetector(), and PHG4SpacalDetector::PHG4SpacalDetector().