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

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::IMaterialGetMaterial (G4Material *g4Material) const
 

Static Public Member Functions

static MaterialMapInstance ()
 

Protected Member Functions

 MaterialMap (const MaterialMap &)
 

Detailed Description

The map between VGM and Geant4 material.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 35 of file MaterialMap.h.

Member Typedef Documentation

◆ G4MaterialMap

typedef std::map<VGM::IMaterial*, G4Material*> Geant4GM::MaterialMap::G4MaterialMap

Definition at line 38 of file MaterialMap.h.

◆ G4MaterialMapCIterator

typedef G4MaterialMap::const_iterator Geant4GM::MaterialMap::G4MaterialMapCIterator

Definition at line 39 of file MaterialMap.h.

◆ VgmMaterialMap

typedef std::map<G4Material*, VGM::IMaterial*> Geant4GM::MaterialMap::VgmMaterialMap

Definition at line 41 of file MaterialMap.h.

◆ VgmMaterialMapCIterator

typedef VgmMaterialMap::const_iterator Geant4GM::MaterialMap::VgmMaterialMapCIterator

Definition at line 42 of file MaterialMap.h.

Constructor & Destructor Documentation

◆ MaterialMap() [1/2]

Geant4GM::MaterialMap::MaterialMap ( )

Standard default constructor

Definition at line 38 of file MaterialMap.cxx.

◆ ~MaterialMap()

Geant4GM::MaterialMap::~MaterialMap ( )
virtual

Definition at line 52 of file MaterialMap.cxx.

◆ MaterialMap() [2/2]

Geant4GM::MaterialMap::MaterialMap ( const MaterialMap & )
protected

Protected copy constructor

Definition at line 46 of file MaterialMap.cxx.

Member Function Documentation

◆ Instance()

Geant4GM::MaterialMap * Geant4GM::MaterialMap::Instance ( )
static

Singleton access function.

Definition at line 28 of file MaterialMap.cxx.

◆ AddMaterial()

void Geant4GM::MaterialMap::AddMaterial ( VGM::IMaterial * iMaterial,
G4Material * g4Material )

Adds the specified pair in the maps.

Definition at line 63 of file MaterialMap.cxx.

◆ Print()

void Geant4GM::MaterialMap::Print ( ) const

Print all materials in the maps.

Definition at line 73 of file MaterialMap.cxx.

◆ GetMaterial() [1/2]

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.

◆ GetMaterial() [2/2]

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.


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