BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
A class for writing fully constructed geometry from BDSIM out to other formats. More...
#include <BDSGeometryWriter.hh>
Public Member Functions | |
void | ExportGeometry (G4String geometryType, G4String geometryFileName) |
Private Member Functions | |
void | WriteToGDML (G4String outputFileName, G4VPhysicalVolume *volume=nullptr) |
A class for writing fully constructed geometry from BDSIM out to other formats.
Definition at line 33 of file BDSGeometryWriter.hh.
BDSGeometryWriter::BDSGeometryWriter | ( | ) |
Definition at line 37 of file BDSGeometryWriter.cc.
BDSGeometryWriter::~BDSGeometryWriter | ( | ) |
Definition at line 34 of file BDSGeometryWriter.cc.
void BDSGeometryWriter::ExportGeometry | ( | G4String | geometryType, |
G4String | geometryFileName | ||
) |
Dispatch function that matchest the geometry type and uses the appropraite member function to write out the geometry
Definition at line 40 of file BDSGeometryWriter.cc.
References WriteToGDML().
Referenced by BDSIM::Initialise(), and BDSIMLink::Initialise().
|
private |
Write the geometry to specified output filename. The filename should be the filename ending in .gdml. If the supplied volume is nullptr (default), the world volume will be written out.
Definition at line 54 of file BDSGeometryWriter.cc.
References BDS::DirectoryExists(), BDS::FileExists(), BDS::GetFullPath(), and BDS::StrContains().
Referenced by ExportGeometry().