1#ifndef TG4_MEDIUM_MAP_H
2#define TG4_MEDIUM_MAP_H
41 void MapMedium(G4LogicalVolume* lv, G4int mediumID);
42 void MapMedium(
const G4String& lvName, G4int mediumID);
51 void GetMedia(
const G4String& namePattern, std::vector<TG4Medium*>& media,
52 G4bool warn =
true)
const;
67 std::map<G4LogicalVolume*, TG4Medium*>
fLVMap;
The map of media to logical volumes.
TG4MediumMap & operator=(const TG4MediumMap &right)
Not implemented.
void MapMedium(G4LogicalVolume *lv, G4int mediumID)
TG4Medium * AddMedium(G4int mediumID, G4bool warn=true)
std::map< G4int, TG4Medium * > fIdMap
map of medias to their IDs
G4int GetNofMedia() const
TG4MediumMap(const TG4MediumMap &right)
Not implemented.
TG4Medium * GetMedium(G4int mediumID, G4bool warn=true) const
std::map< const G4Material *, TG4Medium * > fMaterialMap
map of materials to medias
std::map< G4LogicalVolume *, TG4Medium * > fLVMap
map of medias to the logical volumes
void GetMedia(const G4String &namePattern, std::vector< TG4Medium * > &media, G4bool warn=true) const
Helper class to keep medium data.