23#include "TGeoVolume.h"
67 fRootVolumes[iVolume] = rootVolume;
68 fVgmVolumes[rootVolume] = iVolume;
76 std::cout <<
"Root Volumes Map: " << std::endl;
80 for (i = fRootVolumes.begin(); i != fRootVolumes.end(); i++) {
82 TGeoVolume* rootVolume = (*i).second;
84 std::cout <<
" " << counter++ <<
"th entry:"
85 <<
" vgmVolume " << iVolume <<
" " << iVolume->
Name()
86 <<
" rootVolume " << rootVolume <<
" " << rootVolume->GetName()
97 if (i != fRootVolumes.end())
109 if (i != fVgmVolumes.end())
The map between VGM and Root volumes.
static VolumeMap * Instance()
TGeoVolume * GetVolume(VGM::IVolume *iVolume) const
void AddVolume(VGM::IVolume *, TGeoVolume *)
VgmVolumeMap::const_iterator VgmVolumeMapCIterator
RootVolumeMap::const_iterator RootVolumeMapCIterator
The VGM interface to volumes.
virtual std::string Name() const =0
Return the name of this volume.