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

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::IMaterialGetMaterial (TGeoMaterial *rootMaterial) const
 

Static Public Member Functions

static MaterialMapInstance ()
 

Detailed Description

The map between VGM and Root material.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 35 of file MaterialMap.h.

Member Typedef Documentation

◆ RootMaterialMap

Definition at line 38 of file MaterialMap.h.

◆ RootMaterialMapCIterator

RootMaterialMap::const_iterator RootGM::MaterialMap::RootMaterialMapCIterator

Definition at line 39 of file MaterialMap.h.

◆ VgmMaterialMap

Definition at line 41 of file MaterialMap.h.

◆ VgmMaterialMapCIterator

VgmMaterialMap::const_iterator RootGM::MaterialMap::VgmMaterialMapCIterator

Definition at line 42 of file MaterialMap.h.

Constructor & Destructor Documentation

◆ MaterialMap()

RootGM::MaterialMap::MaterialMap ( )

Standard default constructor

Definition at line 38 of file MaterialMap.cxx.

◆ ~MaterialMap()

RootGM::MaterialMap::~MaterialMap ( )
virtual

Definition at line 52 of file MaterialMap.cxx.

Member Function Documentation

◆ Instance()

RootGM::MaterialMap * RootGM::MaterialMap::Instance ( )
static

Singleton access function

Definition at line 28 of file MaterialMap.cxx.

◆ AddMaterial()

void RootGM::MaterialMap::AddMaterial ( VGM::IMaterial * iMaterial,
TGeoMaterial * rootMaterial )

Add the specified pair in the maps

Definition at line 63 of file MaterialMap.cxx.

◆ Print()

void RootGM::MaterialMap::Print ( ) const

Prints all materials in the maps

Definition at line 73 of file MaterialMap.cxx.

◆ GetMaterial() [1/2]

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.

◆ GetMaterial() [2/2]

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.


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