VGM Version 5.3
Loading...
Searching...
No Matches
Geant4GM::VolumeMap Class Reference

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::IVolumeGetVolume (G4LogicalVolume *lv) const
 
const std::vector< G4LogicalVolume * > & GetParamVolumes (G4LogicalVolume *lv) const
 

Static Public Member Functions

static VolumeMapInstance ()
 

Detailed Description

The map between VGM and Geant4 volumes.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 36 of file VolumeMap.h.

Member Typedef Documentation

◆ G4VolumeMap

typedef std::map<VGM::IVolume*, G4LogicalVolume*> Geant4GM::VolumeMap::G4VolumeMap

Definition at line 39 of file VolumeMap.h.

◆ VgmVolumeMap

typedef std::map<G4LogicalVolume*, VGM::IVolume*> Geant4GM::VolumeMap::VgmVolumeMap

Definition at line 40 of file VolumeMap.h.

◆ G4ParamVolumesMap

typedef std::map<G4LogicalVolume*, std::vector<G4LogicalVolume*> > Geant4GM::VolumeMap::G4ParamVolumesMap

Definition at line 41 of file VolumeMap.h.

Constructor & Destructor Documentation

◆ VolumeMap()

Geant4GM::VolumeMap::VolumeMap ( )

Standard default constructor

Definition at line 38 of file VolumeMap.cxx.

◆ ~VolumeMap()

Geant4GM::VolumeMap::~VolumeMap ( )
virtual

Definition at line 52 of file VolumeMap.cxx.

Member Function Documentation

◆ Instance()

Geant4GM::VolumeMap * Geant4GM::VolumeMap::Instance ( )
static

Singleton access function

Definition at line 28 of file VolumeMap.cxx.

◆ AddVolume()

void Geant4GM::VolumeMap::AddVolume ( VGM::IVolume * iVolume,
G4LogicalVolume * g4Volume )

Add the specified pair in the map

Definition at line 60 of file VolumeMap.cxx.

◆ AddParamVolume()

void Geant4GM::VolumeMap::AddParamVolume ( G4LogicalVolume * g4Volume,
const std::vector< G4LogicalVolume * > & volumes )

Definition at line 70 of file VolumeMap.cxx.

◆ Print()

void Geant4GM::VolumeMap::Print ( ) const

Print all volumes in the map

Definition at line 77 of file VolumeMap.cxx.

◆ GetVolume() [1/2]

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.

◆ GetVolume() [2/2]

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.

◆ GetParamVolumes()

const std::vector< G4LogicalVolume * > & Geant4GM::VolumeMap::GetParamVolumes ( G4LogicalVolume * lv) const

Find the parameterised replicas volumes list

Definition at line 120 of file VolumeMap.cxx.


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