EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4GDMLUtility Class Reference

PHG4GDMLUtility is utility class that drive the PHG4GDMLWriteStructure. More...

#include <fun4all_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 PHG4GDMLConfigGetOrMakeConfigNode (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 ()
 

Detailed Description

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

Constructor & Destructor Documentation

virtual PHG4GDMLUtility::~PHG4GDMLUtility ( )
inlinevirtual

Definition at line 26 of file PHG4GDMLUtility.hh.

View newest version in sPHENIX GitHub at line 26 of file PHG4GDMLUtility.hh

PHG4GDMLUtility::PHG4GDMLUtility ( )
inlineprivate

Definition at line 48 of file PHG4GDMLUtility.hh.

View newest version in sPHENIX GitHub at line 48 of file PHG4GDMLUtility.hh

Member Function Documentation

void PHG4GDMLUtility::Dump_G4_GDML ( const std::string &  filename,
G4VPhysicalVolume *  vol 
)
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

Referenced by PHG4Reco::Dump_G4_GDML().

+ Here is the caller graph for this function:

void PHG4GDMLUtility::Dump_GDML ( const std::string &  filename,
G4VPhysicalVolume *  vol,
PHCompositeNode topNode = nullptr 
)
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 configureMap::config, Fun4AllServer::instance(), Fun4AllServer::topNode(), and PHG4GDMLWrite::Write().

Referenced by PHG4Reco::Dump_GDML().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static constexpr const char* PHG4GDMLUtility::get_PHG4GDML_Schema ( )
inlinestatic

Definition at line 34 of file PHG4GDMLUtility.hh.

View newest version in sPHENIX GitHub at line 34 of file PHG4GDMLUtility.hh

static constexpr const char* PHG4GDMLUtility::getDSTNodeName ( )
inlinestatic

Definition at line 42 of file PHG4GDMLUtility.hh.

View newest version in sPHENIX GitHub at line 42 of file PHG4GDMLUtility.hh

PHG4GDMLConfig * PHG4GDMLUtility::GetOrMakeConfigNode ( PHCompositeNode topNode,
bool  build_new = true 
)
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 configureMap::config, and PHNodeIterator::findFirst().

Referenced by PHG4BarrelEcalDetector::PHG4BarrelEcalDetector(), PHG4GDMLDetector::PHG4GDMLDetector(), and PHG4SpacalDetector::PHG4SpacalDetector().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: