VGM Version 5.3
|
The map between VGM and Geant4 volumes. More...
#include <VolumeMap.h>
Public Types | |
typedef std::map< VGM::IVolume *, G4LogicalVolume * > | G4VolumeMap |
typedef std::map< G4LogicalVolume *, VGM::IVolume * > | VgmVolumeMap |
typedef std::map< G4LogicalVolume *, std::vector< G4LogicalVolume * > > | G4ParamVolumesMap |
Public Member Functions | |
VolumeMap () | |
virtual | ~VolumeMap () |
void | AddVolume (VGM::IVolume *, G4LogicalVolume *) |
void | AddParamVolume (G4LogicalVolume *, const std::vector< G4LogicalVolume * > &) |
void | Print () const |
G4LogicalVolume * | GetVolume (VGM::IVolume *iVolume) const |
VGM::IVolume * | GetVolume (G4LogicalVolume *lv) const |
const std::vector< G4LogicalVolume * > & | GetParamVolumes (G4LogicalVolume *lv) const |
Static Public Member Functions | |
static VolumeMap * | Instance () |
The map between VGM and Geant4 volumes.
Definition at line 36 of file VolumeMap.h.
std::map<VGM::IVolume*, G4LogicalVolume*> Geant4GM::VolumeMap::G4VolumeMap |
Definition at line 39 of file VolumeMap.h.
std::map<G4LogicalVolume*, VGM::IVolume*> Geant4GM::VolumeMap::VgmVolumeMap |
Definition at line 40 of file VolumeMap.h.
std::map<G4LogicalVolume*, std::vector<G4LogicalVolume*> > Geant4GM::VolumeMap::G4ParamVolumesMap |
Definition at line 41 of file VolumeMap.h.
Geant4GM::VolumeMap::VolumeMap | ( | ) |
Standard default constructor
Definition at line 38 of file VolumeMap.cxx.
|
virtual |
Definition at line 52 of file VolumeMap.cxx.
|
static |
Singleton access function
Definition at line 28 of file VolumeMap.cxx.
void Geant4GM::VolumeMap::AddVolume | ( | VGM::IVolume * | iVolume, |
G4LogicalVolume * | g4Volume ) |
Add the specified pair in the map
Definition at line 60 of file VolumeMap.cxx.
void Geant4GM::VolumeMap::AddParamVolume | ( | G4LogicalVolume * | g4Volume, |
const std::vector< G4LogicalVolume * > & | volumes ) |
Definition at line 70 of file VolumeMap.cxx.
void Geant4GM::VolumeMap::Print | ( | ) | const |
Print all volumes in the map
Definition at line 77 of file VolumeMap.cxx.
G4LogicalVolume * Geant4GM::VolumeMap::GetVolume | ( | VGM::IVolume * | iVolume | ) | const |
Find the G4 logical volume corresponding to a specified VGM volume
Definition at line 95 of file VolumeMap.cxx.
VGM::IVolume * Geant4GM::VolumeMap::GetVolume | ( | G4LogicalVolume * | lv | ) | const |
Find the VGM volume corresponding to a specified G4 logical volume
Definition at line 107 of file VolumeMap.cxx.
const std::vector< G4LogicalVolume * > & Geant4GM::VolumeMap::GetParamVolumes | ( | G4LogicalVolume * | lv | ) | const |
Find the parameterised replicas volumes list
Definition at line 120 of file VolumeMap.cxx.