VGM Version 5.3
|
The map between VGM and Geant4 material. More...
#include <MaterialMap.h>
Public Types | |
typedef std::map< VGM::IMaterial *, G4Material * > | G4MaterialMap |
typedef G4MaterialMap::const_iterator | G4MaterialMapCIterator |
typedef std::map< G4Material *, VGM::IMaterial * > | VgmMaterialMap |
typedef VgmMaterialMap::const_iterator | VgmMaterialMapCIterator |
Public Member Functions | |
MaterialMap () | |
virtual | ~MaterialMap () |
void | AddMaterial (VGM::IMaterial *, G4Material *) |
void | Print () const |
G4Material * | GetMaterial (VGM::IMaterial *iMaterial) const |
VGM::IMaterial * | GetMaterial (G4Material *g4Material) const |
Static Public Member Functions | |
static MaterialMap * | Instance () |
Protected Member Functions | |
MaterialMap (const MaterialMap &) | |
The map between VGM and Geant4 material.
Definition at line 35 of file MaterialMap.h.
typedef std::map<VGM::IMaterial*, G4Material*> Geant4GM::MaterialMap::G4MaterialMap |
Definition at line 38 of file MaterialMap.h.
typedef G4MaterialMap::const_iterator Geant4GM::MaterialMap::G4MaterialMapCIterator |
Definition at line 39 of file MaterialMap.h.
typedef std::map<G4Material*, VGM::IMaterial*> Geant4GM::MaterialMap::VgmMaterialMap |
Definition at line 41 of file MaterialMap.h.
typedef VgmMaterialMap::const_iterator Geant4GM::MaterialMap::VgmMaterialMapCIterator |
Definition at line 42 of file MaterialMap.h.
Geant4GM::MaterialMap::MaterialMap | ( | ) |
Standard default constructor
Definition at line 38 of file MaterialMap.cxx.
|
virtual |
Definition at line 52 of file MaterialMap.cxx.
|
protected |
Protected copy constructor
Definition at line 46 of file MaterialMap.cxx.
|
static |
Singleton access function.
Definition at line 28 of file MaterialMap.cxx.
void Geant4GM::MaterialMap::AddMaterial | ( | VGM::IMaterial * | iMaterial, |
G4Material * | g4Material ) |
Adds the specified pair in the maps.
Definition at line 63 of file MaterialMap.cxx.
void Geant4GM::MaterialMap::Print | ( | ) | const |
Print all materials in the maps.
Definition at line 73 of file MaterialMap.cxx.
G4Material * Geant4GM::MaterialMap::GetMaterial | ( | VGM::IMaterial * | iMaterial | ) | const |
Find the G4 material corresponding to a specified VGM material.
Definition at line 93 of file MaterialMap.cxx.
VGM::IMaterial * Geant4GM::MaterialMap::GetMaterial | ( | G4Material * | g4Material | ) | const |
Find the VGM material corresponding to a specified G4 material.
Definition at line 105 of file MaterialMap.cxx.