Geant4 VMC Version 6.6
|
The map of media to logical volumes. More...
#include <TG4MediumMap.h>
Public Member Functions | |
TG4MediumMap () | |
~TG4MediumMap () | |
TG4Medium * | AddMedium (G4int mediumID, G4bool warn=true) |
void | MapMedium (G4LogicalVolume *lv, G4int mediumID) |
void | MapMedium (const G4String &lvName, G4int mediumID) |
void | Print () const |
G4int | GetNofMedia () const |
TG4Medium * | GetMedium (G4int mediumID, G4bool warn=true) const |
TG4Medium * | GetMedium (const G4String &name, G4bool warn=true) const |
TG4Medium * | GetMedium (G4LogicalVolume *lv, G4bool warn=true) const |
TG4Medium * | GetMedium (const G4Material *material, G4bool warn=true) const |
void | GetMedia (const G4String &namePattern, std::vector< TG4Medium * > &media, G4bool warn=true) const |
Private Member Functions | |
TG4MediumMap (const TG4MediumMap &right) | |
Not implemented. | |
TG4MediumMap & | operator= (const TG4MediumMap &right) |
Not implemented. | |
Private Attributes | |
std::map< G4int, TG4Medium * > | fIdMap |
map of medias to their IDs | |
std::map< G4LogicalVolume *, TG4Medium * > | fLVMap |
map of medias to the logical volumes | |
std::map< const G4Material *, TG4Medium * > | fMaterialMap |
map of materials to medias | |
The map of media to logical volumes.
Definition at line 33 of file TG4MediumMap.h.
TG4MediumMap::TG4MediumMap | ( | ) |
Default constructor
Definition at line 26 of file TG4MediumMap.cxx.
TG4MediumMap::~TG4MediumMap | ( | ) |
Destructor
Definition at line 32 of file TG4MediumMap.cxx.
|
private |
Not implemented.
TG4Medium * TG4MediumMap::AddMedium | ( | G4int | mediumID, |
G4bool | warn = true ) |
Create a new medium with given mediumID and name if it is not yet present in the map, and add it to the map.
Definition at line 46 of file TG4MediumMap.cxx.
Referenced by TG4GeometryManager::FillMediumMapFromG3(), TG4GeometryManager::FillMediumMapFromG4(), and TG4GeometryManager::FillMediumMapFromRoot().
void TG4MediumMap::MapMedium | ( | G4LogicalVolume * | lv, |
G4int | mediumID ) |
Map the medium with the given mediumID to the given logical volume lv
Definition at line 69 of file TG4MediumMap.cxx.
Referenced by TG4GeometryManager::FillMediumMapFromG3(), TG4GeometryManager::FillMediumMapFromG4(), TG4GeometryManager::FillMediumMapFromRoot(), and MapMedium().
void TG4MediumMap::MapMedium | ( | const G4String & | lvName, |
G4int | mediumID ) |
Map the medium with the given mediumID to the logical volume with given name lvName
Definition at line 92 of file TG4MediumMap.cxx.
void TG4MediumMap::Print | ( | ) | const |
Print the whole map.
Definition at line 110 of file TG4MediumMap.cxx.
Referenced by TG4GeometryServices::PrintMedia().
G4int TG4MediumMap::GetNofMedia | ( | ) | const |
Return the number of media registered in the map
Definition at line 128 of file TG4MediumMap.cxx.
Referenced by TG4GeometryManager::FinishGeometry(), TG4GeometryServices::PrintControls(), and TG4GeometryServices::PrintCuts().
TG4Medium * TG4MediumMap::GetMedium | ( | G4int | mediumID, |
G4bool | warn = true ) const |
Return medium with the given mediumID
Definition at line 136 of file TG4MediumMap.cxx.
Referenced by AddMedium(), TG4VRegionsManager::CheckRegionsInGeometry(), TG4GeometryManager::ConstructZeroFields(), TG4RegionsManager::DefineRegions(), TG4GeometryManager::FillMediumMapFromG3(), TG4GeometryServices::FindLimits(), TG4GeometryServices::GetMediumId(), TG4PhysicsManager::GstparControl(), TG4PhysicsManager::GstparCut(), MapMedium(), TG4MCGeometry::MediumId(), TG4GeometryServices::PrintControls(), TG4GeometryServices::PrintCuts(), TG4OpGeometryManager::SetCerenkov(), TG4OpGeometryManager::SetMaterialProperty(), TG4OpGeometryManager::SetMaterialProperty(), TG4ModelConfigurationManager::SetRegionsNames(), and TG4GeometryManager::SetUserLimits().
TG4Medium * TG4MediumMap::GetMedium | ( | const G4String & | name, |
G4bool | warn = true ) const |
Return medium with the given name
Definition at line 156 of file TG4MediumMap.cxx.
TG4Medium * TG4MediumMap::GetMedium | ( | G4LogicalVolume * | lv, |
G4bool | warn = true ) const |
Return medium for the given lv
Definition at line 173 of file TG4MediumMap.cxx.
TG4Medium * TG4MediumMap::GetMedium | ( | const G4Material * | material, |
G4bool | warn = true ) const |
Return medium for the given material
Definition at line 191 of file TG4MediumMap.cxx.
void TG4MediumMap::GetMedia | ( | const G4String & | namePattern, |
std::vector< TG4Medium * > & | media, | ||
G4bool | warn = true ) const |
Fill the 'media' vector with media which name matches the pattern. Only ABC* pattern is supported.
Definition at line 212 of file TG4MediumMap.cxx.
Referenced by TG4ModelConfigurationManager::SetRegionsNames().
|
private |
Not implemented.
|
private |
map of medias to their IDs
Definition at line 64 of file TG4MediumMap.h.
Referenced by AddMedium(), GetMedia(), GetMedium(), GetMedium(), GetNofMedia(), Print(), and ~TG4MediumMap().
|
private |
map of medias to the logical volumes
Definition at line 67 of file TG4MediumMap.h.
Referenced by GetMedium(), and MapMedium().
|
private |
map of materials to medias
Definition at line 70 of file TG4MediumMap.h.
Referenced by GetMedium(), and MapMedium().