#include <G4IStore.hh>
Definition at line 49 of file G4IStore.hh.
◆ G4IStore() [1/2]
Definition at line 51 of file G4IStore.cc.
54{
55}
const G4VPhysicalVolume & GetWorldVolume() const override
static G4TransportationManager * GetTransportationManager()
Referenced by GetInstance(), and GetInstance().
◆ G4IStore() [2/2]
G4IStore::G4IStore |
( |
const G4String & | ParallelWorldName | ) |
|
|
explicitprotected |
Definition at line 57 of file G4IStore.cc.
59 ->GetParallelWorld(ParallelWorldName))
60{
61#ifdef G4VERBOSE
62 G4cout <<
" G4IStore:: ParallelWorldName = "
63 << ParallelWorldName <<
G4endl;
64 G4cout <<
" G4IStore:: fParallelWorldVolume = "
66#endif
67}
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
◆ ~G4IStore()
◆ AddImportanceGeometryCell() [1/2]
Definition at line 109 of file G4IStore.cc.
111{
112 if (importance < 0 )
113 {
114 Error("AddImportanceGeometryCell() - Invalid importance value given.");
115 }
117 {
118 Error("AddImportanceGeometryCell() - Physical volume not found!");
119 }
120 SetInternalIterator(gCell);
121 if (fCurrentIterator != fGeometryCelli.cend())
122 {
123 Error("AddImportanceGeometryCell() - Region already existing!");
124 }
125 fGeometryCelli[gCell] = importance;
126}
const G4VPhysicalVolume & GetPhysicalVolume() const
Referenced by AddImportanceGeometryCell().
◆ AddImportanceGeometryCell() [2/2]
Definition at line 128 of file G4IStore.cc.
131{
133}
void AddImportanceGeometryCell(G4double importance, const G4GeometryCell &gCell)
◆ ChangeImportance() [1/2]
Definition at line 135 of file G4IStore.cc.
137{
138 if (importance < 0 )
139 {
140 Error("ChangeImportance() - Invalid importance value given.");
141 }
143 {
144 Error("ChangeImportance() - Physical volume not found!");
145 }
146 SetInternalIterator(gCell);
147 if (fCurrentIterator == fGeometryCelli.cend())
148 {
149 Error("ChangeImportance() - Region does not exist!");
150 }
151 fGeometryCelli[gCell] = importance;
152
153}
Referenced by ChangeImportance().
◆ ChangeImportance() [2/2]
Definition at line 155 of file G4IStore.cc.
158{
160}
void ChangeImportance(G4double importance, const G4GeometryCell &gCell)
◆ Clear()
Definition at line 71 of file G4IStore.cc.
72{
73 fGeometryCelli.clear();
74}
◆ GetImportance() [1/2]
Implements G4VIStore.
Definition at line 179 of file G4IStore.cc.
180{
182 SetInternalIterator(gCell);
183 auto gCellIterator = fCurrentIterator;
184 if (gCellIterator == fGeometryCelli.cend())
185 {
186 std::ostringstream err_mess;
187 err_mess <<
"GetImportance() - Region does not exist!" <<
G4endl
188 << "Geometry cell, " << gCell
189 << ", not found in: " << fGeometryCelli << ".";
190 Error(err_mess.str());
191 return 0.;
192 }
193 G4double importance_value = (*fCurrentIterator).second;
194 l.unlock();
195
196 return importance_value;
197}
◆ GetImportance() [2/2]
Definition at line 162 of file G4IStore.cc.
164{
167 auto gCellIterator = fCurrentIterator;
168 if (gCellIterator == fGeometryCelli.cend())
169 {
170 Error("GetImportance() - Region does not exist!");
171 return 0.;
172 }
173 G4double importance_value = (*fCurrentIterator).second;
174 l.unlock();
175
176 return importance_value;
177}
◆ GetInstance() [1/2]
◆ GetInstance() [2/2]
Definition at line 251 of file G4IStore.cc.
252{
253 if (fInstance == nullptr)
254 {
255#ifdef G4VERBOSE
256 G4cout <<
"G4IStore:: Creating new Parallel IStore "
257 << ParallelWorldName <<
G4endl;
258#endif
259 fInstance =
new G4IStore(ParallelWorldName);
260 }
261 return fInstance;
262}
◆ GetParallelWorldVolumePointer()
Definition at line 99 of file G4IStore.cc.
100{
101 return fWorldVolume;
102}
◆ GetWorldVolume()
◆ IsKnown()
Implements G4VIStore.
Definition at line 199 of file G4IStore.cc.
200{
203
204 if ( inWorldKnown )
205 {
206 SetInternalIterator(gCell);
207 inWorldKnown = (fCurrentIterator != fGeometryCelli.cend());
208 }
209 l.unlock();
210
211 return inWorldKnown;
212}
◆ SetParallelWorldVolume()
void G4IStore::SetParallelWorldVolume |
( |
const G4String & | paraName | ) |
|
Definition at line 85 of file G4IStore.cc.
86{
87 G4cout <<
" G4IStore:: SetParallelWorldVolume " <<
G4endl;
91
92}
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
◆ SetWorldVolume()
void G4IStore::SetWorldVolume |
( |
| ) |
|
Definition at line 76 of file G4IStore.cc.
77{
82
83}
G4VPhysicalVolume * GetWorldVolume() const
G4Navigator * GetNavigatorForTracking() const
The documentation for this class was generated from the following files: