BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Private Member Functions
BDSGeometryWriter Class Reference

A class for writing fully constructed geometry from BDSIM out to other formats. More...

#include <BDSGeometryWriter.hh>

Collaboration diagram for BDSGeometryWriter:
Collaboration graph

Public Member Functions

void ExportGeometry (G4String geometryType, G4String geometryFileName)
 

Private Member Functions

void WriteToGDML (G4String outputFileName, G4VPhysicalVolume *volume=nullptr)
 

Detailed Description

A class for writing fully constructed geometry from BDSIM out to other formats.

Author
Laurie Nevay

Definition at line 33 of file BDSGeometryWriter.hh.

Constructor & Destructor Documentation

◆ BDSGeometryWriter()

BDSGeometryWriter::BDSGeometryWriter ( )

Definition at line 36 of file BDSGeometryWriter.cc.

◆ ~BDSGeometryWriter()

BDSGeometryWriter::~BDSGeometryWriter ( )

Definition at line 33 of file BDSGeometryWriter.cc.

Member Function Documentation

◆ ExportGeometry()

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 39 of file BDSGeometryWriter.cc.

References WriteToGDML().

Referenced by BDSIM::Initialise(), and BDSIMLink::Initialise().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteToGDML()

void BDSGeometryWriter::WriteToGDML ( G4String  outputFileName,
G4VPhysicalVolume *  volume = nullptr 
)
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 53 of file BDSGeometryWriter.cc.

References BDS::FileExists().

Referenced by ExportGeometry().

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: