43 fWorldVolume(worldvolume)
54void G4IStore::SetInternalIterator(
const G4GeometryCell &gCell)
const
56 fCurrentIterator = fGeometryCelli.find(gCell);
61 if (importance < 0 ) {
62 Error(
"AddImportanceGeometryCell() - Invalid importance value given.");
65 Error(
"AddImportanceGeometryCell() - Physical volume not found!");
67 SetInternalIterator(gCell);
68 if (fCurrentIterator!=fGeometryCelli.end()) {
69 Error(
"AddImportanceGeometryCell() - Region already existing!");
71 fGeometryCelli[gCell] = importance;
84 if (importance < 0 ) {
85 Error(
"ChangeImportance() - Invalid importance value given.");
88 Error(
"ChangeImportance() - Physical volume not found!");
90 SetInternalIterator(gCell);
91 if (fCurrentIterator==fGeometryCelli.end()) {
92 Error(
"ChangeImportance() - Region does not exist!");
94 fGeometryCelli[gCell] = importance;
108 G4GeometryCellImportance::const_iterator gCellIterator = fCurrentIterator;
109 if (gCellIterator==fGeometryCelli.end()) {
110 Error(
"GetImportance() - Region does not exist!");
113 return (*fCurrentIterator).second;
119 SetInternalIterator(gCell);
120 G4GeometryCellImportance::const_iterator gCellIterator = fCurrentIterator;
121 if (gCellIterator==fGeometryCelli.end()) {
122 std::ostringstream err_mess;
123 err_mess <<
"GetImportance() - Region does not exist!" <<
G4endl
124 <<
"Geometry cell, " << gCell
125 <<
", not found in: " << fGeometryCelli <<
".";
126 Error(err_mess.str());
129 return (*fCurrentIterator).second;
135 if ( inWorldKnown ) {
136 SetInternalIterator(gCell);
137 inWorldKnown = (fCurrentIterator!=fGeometryCelli.end());
145 if (!(aVolume == fWorldVolume)) {
153void G4IStore::Error(
const G4String &msg)
const
const G4VPhysicalVolume & GetPhysicalVolume() const
virtual G4double GetImportance(const G4GeometryCell &gCell) const
void AddImportanceGeometryCell(G4double importance, const G4GeometryCell &gCell)
virtual const G4VPhysicalVolume & GetWorldVolume() const
void ChangeImportance(G4double importance, const G4GeometryCell &gCell)
G4IStore(const G4VPhysicalVolume &worldvolume)
virtual G4bool IsKnown(const G4GeometryCell &gCell) const
G4bool IsAncestor(const G4VPhysicalVolume *p) const
G4LogicalVolume * GetLogicalVolume() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)