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

The map between VGM and Root volumes. More...

#include <VolumeMap.h>

Public Types

typedef std::map< VGM::IVolume *, TGeoVolume * > RootVolumeMap
 
typedef RootVolumeMap::const_iterator RootVolumeMapCIterator
 
typedef std::map< TGeoVolume *, VGM::IVolume * > VgmVolumeMap
 
typedef VgmVolumeMap::const_iterator VgmVolumeMapCIterator
 

Public Member Functions

 VolumeMap ()
 
virtual ~VolumeMap ()
 
void AddVolume (VGM::IVolume *, TGeoVolume *)
 
void Print () const
 
TGeoVolume * GetVolume (VGM::IVolume *iVolume) const
 
VGM::IVolumeGetVolume (TGeoVolume *rootVolume) const
 

Static Public Member Functions

static VolumeMapInstance ()
 

Detailed Description

The map between VGM and Root volumes.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 35 of file VolumeMap.h.

Member Typedef Documentation

◆ RootVolumeMap

typedef std::map<VGM::IVolume*, TGeoVolume*> RootGM::VolumeMap::RootVolumeMap

Definition at line 38 of file VolumeMap.h.

◆ RootVolumeMapCIterator

typedef RootVolumeMap::const_iterator RootGM::VolumeMap::RootVolumeMapCIterator

Definition at line 39 of file VolumeMap.h.

◆ VgmVolumeMap

typedef std::map<TGeoVolume*, VGM::IVolume*> RootGM::VolumeMap::VgmVolumeMap

Definition at line 41 of file VolumeMap.h.

◆ VgmVolumeMapCIterator

typedef VgmVolumeMap::const_iterator RootGM::VolumeMap::VgmVolumeMapCIterator

Definition at line 42 of file VolumeMap.h.

Constructor & Destructor Documentation

◆ VolumeMap()

RootGM::VolumeMap::VolumeMap ( )

Standard default constructor

Definition at line 38 of file VolumeMap.cxx.

◆ ~VolumeMap()

RootGM::VolumeMap::~VolumeMap ( )
virtual

Definition at line 52 of file VolumeMap.cxx.

Member Function Documentation

◆ Instance()

RootGM::VolumeMap * RootGM::VolumeMap::Instance ( )
static

Singleton access function

Definition at line 28 of file VolumeMap.cxx.

◆ AddVolume()

void RootGM::VolumeMap::AddVolume ( VGM::IVolume * iVolume,
TGeoVolume * rootVolume )

Add the specified pair in the maps

Definition at line 63 of file VolumeMap.cxx.

◆ Print()

void RootGM::VolumeMap::Print ( ) const

Print all volumes in the maps

Definition at line 72 of file VolumeMap.cxx.

◆ GetVolume() [1/2]

TGeoVolume * RootGM::VolumeMap::GetVolume ( VGM::IVolume * iVolume) const

Find the Root volume corresponding to a specified VGM volume

Definition at line 92 of file VolumeMap.cxx.

◆ GetVolume() [2/2]

VGM::IVolume * RootGM::VolumeMap::GetVolume ( TGeoVolume * rootVolume) const

Finds the VGM volume corresponding to a specified Root volume

Definition at line 104 of file VolumeMap.cxx.


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