23#include "TGeoMaterial.h"
68 fRootMaterials[iMaterial] = rootMaterial;
69 fVgmMaterials[rootMaterial] = iMaterial;
77 std::cout <<
"Root Materials Map: " << std::endl;
81 for (i = fRootMaterials.begin(); i != fRootMaterials.end(); i++) {
83 TGeoMaterial* rootMaterial = (*i).second;
85 std::cout <<
" " << counter++ <<
"th entry:"
86 <<
" vgmMaterial " << iMaterial <<
" " << iMaterial->
Name()
87 <<
" rootMaterial " << rootMaterial <<
" "
88 << rootMaterial->GetName() << std::endl;
98 if (i != fRootMaterials.end())
106 TGeoMaterial* rootMaterial)
const
111 if (i != fVgmMaterials.end())
The map between VGM and Root material.
VgmMaterialMap::const_iterator VgmMaterialMapCIterator
TGeoMaterial * GetMaterial(VGM::IMaterial *iMaterial) const
RootMaterialMap::const_iterator RootMaterialMapCIterator
void AddMaterial(VGM::IMaterial *, TGeoMaterial *)
static MaterialMap * Instance()
The VGM interface to materials.
virtual std::string Name() const =0
Return the name of this element.