VGM Version 5.3
|
The map between VGM and Root material. More...
#include <MaterialMap.h>
Public Types | |
typedef std::map< VGM::IMaterial *, TGeoMaterial * > | RootMaterialMap |
typedef RootMaterialMap::const_iterator | RootMaterialMapCIterator |
typedef std::map< TGeoMaterial *, VGM::IMaterial * > | VgmMaterialMap |
typedef VgmMaterialMap::const_iterator | VgmMaterialMapCIterator |
Public Member Functions | |
MaterialMap () | |
virtual | ~MaterialMap () |
void | AddMaterial (VGM::IMaterial *, TGeoMaterial *) |
void | Print () const |
TGeoMaterial * | GetMaterial (VGM::IMaterial *iMaterial) const |
VGM::IMaterial * | GetMaterial (TGeoMaterial *rootMaterial) const |
Static Public Member Functions | |
static MaterialMap * | Instance () |
The map between VGM and Root material.
Definition at line 35 of file MaterialMap.h.
std::map<VGM::IMaterial*, TGeoMaterial*> RootGM::MaterialMap::RootMaterialMap |
Definition at line 38 of file MaterialMap.h.
RootMaterialMap::const_iterator RootGM::MaterialMap::RootMaterialMapCIterator |
Definition at line 39 of file MaterialMap.h.
std::map<TGeoMaterial*, VGM::IMaterial*> RootGM::MaterialMap::VgmMaterialMap |
Definition at line 41 of file MaterialMap.h.
VgmMaterialMap::const_iterator RootGM::MaterialMap::VgmMaterialMapCIterator |
Definition at line 42 of file MaterialMap.h.
RootGM::MaterialMap::MaterialMap | ( | ) |
Standard default constructor
Definition at line 38 of file MaterialMap.cxx.
|
virtual |
Definition at line 52 of file MaterialMap.cxx.
|
static |
Singleton access function
Definition at line 28 of file MaterialMap.cxx.
void RootGM::MaterialMap::AddMaterial | ( | VGM::IMaterial * | iMaterial, |
TGeoMaterial * | rootMaterial ) |
Add the specified pair in the maps
Definition at line 63 of file MaterialMap.cxx.
void RootGM::MaterialMap::Print | ( | ) | const |
Prints all materials in the maps
Definition at line 73 of file MaterialMap.cxx.
TGeoMaterial * RootGM::MaterialMap::GetMaterial | ( | VGM::IMaterial * | iMaterial | ) | const |
Find the Root material corresponding to a specified VGM material
Definition at line 93 of file MaterialMap.cxx.
VGM::IMaterial * RootGM::MaterialMap::GetMaterial | ( | TGeoMaterial * | rootMaterial | ) | const |
Finds the VGM material corresponding to a specified Root material
Definition at line 105 of file MaterialMap.cxx.