#include <G4ITTransportationManager.hh>
G4int G4ITTransportationManager::ActivateNavigator |
( |
G4ITNavigator * |
aNavigator | ) |
|
Definition at line 268 of file G4ITTransportationManager.cc.
270 std::vector<G4ITNavigator*>::iterator pNav = std::find(fNavigators.begin(),
273 if (pNav == fNavigators.end())
275 G4String message =
"Navigator for volume -"
276 + aNavigator->GetWorldVolume()->GetName() +
"- not found in memory!";
277 G4Exception(
"G4ITTransportationManager::ActivateNavigator()",
"GeomNav1002",
282 aNavigator->Activate(
true);
284 std::vector<G4ITNavigator*>::iterator pActiveNav;
285 for (pActiveNav = fActiveNavigators.begin();
286 pActiveNav != fActiveNavigators.end(); pActiveNav++)
288 if (*pActiveNav == aNavigator)
295 fActiveNavigators.push_back(aNavigator);
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void G4ITTransportationManager::DeActivateNavigator |
( |
G4ITNavigator * |
aNavigator | ) |
|
Definition at line 306 of file G4ITTransportationManager.cc.
308 std::vector<G4ITNavigator*>::iterator pNav = std::find(fNavigators.begin(),
311 if (pNav != fNavigators.end())
313 (*pNav)->Activate(
false);
317 G4String message =
"Navigator for volume -"
318 + aNavigator->GetWorldVolume()->GetName() +
"- not found in memory!";
319 G4Exception(
"G4ITTransportationManager::DeActivateNavigator()",
323 std::vector<G4ITNavigator*>::iterator pActiveNav = std::find(
324 fActiveNavigators.begin(), fActiveNavigators.end(), aNavigator);
325 if (pActiveNav != fActiveNavigators.end())
327 fActiveNavigators.erase(pActiveNav);
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void G4ITTransportationManager::DeleteInstance |
( |
| ) |
|
|
static |
void G4ITTransportationManager::DeRegisterNavigator |
( |
G4ITNavigator * |
aNavigator | ) |
|
Definition at line 229 of file G4ITTransportationManager.cc.
231 if (aNavigator == fNavigators[0])
233 G4Exception(
"G4ITTransportationManager::DeRegisterNavigator()",
235 "The navigator for tracking CANNOT be deregistered!");
237 std::vector<G4ITNavigator*>::iterator pNav = std::find(fNavigators.begin(),
240 if (pNav != fNavigators.end())
244 DeRegisterWorld((*pNav)->GetWorldVolume());
248 fNavigators.erase(pNav);
252 G4String message =
"Navigator for volume -"
253 + aNavigator->GetWorldVolume()->GetName() +
"- not found in memory!";
254 G4Exception(
"G4ITTransportationManager::DeRegisterNavigator()",
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::vector<G4ITNavigator*>::iterator G4ITTransportationManager::GetActiveNavigatorsIterator |
( |
| ) |
|
|
inline |
G4ITNavigator * G4ITTransportationManager::GetNavigator |
( |
const G4String & |
worldName | ) |
|
Definition at line 146 of file G4ITTransportationManager.cc.
150 std::vector<G4ITNavigator*>::iterator pNav;
151 for (pNav = fNavigators.begin(); pNav != fNavigators.end(); pNav++)
153 if ((*pNav)->GetWorldVolume()->GetName() == worldName)
162 G4ITNavigator* aNavigator = 0;
166 aNavigator =
new G4ITNavigator();
167 aNavigator->SetWorldVolume(aWorld);
168 fNavigators.push_back(aNavigator);
172 G4String message =
"World volume with name -"
174 +
"- does not exist. Create it first by GetParallelWorld() method!";
175 G4Exception(
"G4ITTransportationManager::GetNavigator(name)",
"GeomNav0002",
G4VPhysicalVolume * IsWorldExisting(const G4String &worldName)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4ITNavigator * G4ITTransportationManager::GetNavigator |
( |
G4VPhysicalVolume * |
aWorld | ) |
|
Definition at line 189 of file G4ITTransportationManager.cc.
191 std::vector<G4ITNavigator*>::iterator pNav;
192 for (pNav = fNavigators.begin(); pNav != fNavigators.end(); pNav++)
194 if ((*pNav)->GetWorldVolume() == aWorld)
199 G4ITNavigator* aNavigator = 0;
200 std::vector<G4VPhysicalVolume*>::iterator pWorld = std::find(fWorlds.begin(),
203 if (pWorld != fWorlds.end())
205 aNavigator =
new G4ITNavigator();
206 aNavigator->SetWorldVolume(aWorld);
207 fNavigators.push_back(aNavigator);
211 G4String message =
"World volume with name -"
213 +
"- does not exist. Create it first by GetParallelWorld() method!";
214 G4Exception(
"G4ITTransportationManager::GetNavigator(pointer)",
const G4String & GetName() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4ITNavigator* G4ITTransportationManager::GetNavigatorForTracking |
( |
| ) |
const |
size_t G4ITTransportationManager::GetNoActiveNavigators |
( |
| ) |
const |
|
inline |
size_t G4ITTransportationManager::GetNoWorlds |
( |
| ) |
const |
|
inline |
Definition at line 124 of file G4ITTransportationManager.cc.
132 wPV =
new G4PVPlacement(wPV->GetRotation(), wPV->GetTranslation(), wLV,
133 worldName, 0,
false, 0);
G4VSolid * GetSolid() const
G4bool RegisterWorld(G4VPhysicalVolume *aWorld)
G4VPhysicalVolume * IsWorldExisting(const G4String &worldName)
G4LogicalVolume * GetLogicalVolume() const
G4ITNavigator * GetNavigatorForTracking() const
std::vector<G4VPhysicalVolume*>::iterator G4ITTransportationManager::GetWorldsIterator |
( |
| ) |
|
|
inline |
void G4ITTransportationManager::InactivateAll |
( |
| ) |
|
Definition at line 337 of file G4ITTransportationManager.cc.
339 std::vector<G4ITNavigator*>::iterator pNav;
340 for (pNav = fActiveNavigators.begin(); pNav != fActiveNavigators.end();
343 (*pNav)->Activate(
false);
345 fActiveNavigators.clear();
349 fNavigators[0]->Activate(
true);
350 fActiveNavigators.push_back(fNavigators[0]);
Definition at line 360 of file G4ITTransportationManager.cc.
362 std::vector<G4VPhysicalVolume*>::iterator pWorld = fWorlds.begin();
365 *pWorld = fNavigators[0]->GetWorldVolume();
368 for (pWorld = fWorlds.begin(); pWorld != fWorlds.end(); pWorld++)
370 if ((*pWorld)->GetName() ==
name)
Definition at line 385 of file G4ITTransportationManager.cc.
389 std::vector<G4VPhysicalVolume*>::iterator pWorld = std::find(fWorlds.begin(),
392 if (pWorld == fWorlds.end())
394 fWorlds.push_back(aWorld);
The documentation for this class was generated from the following files: