Project
Loading...
Searching...
No Matches
VecGeomG4Navigator.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#include "VecGeomG4Navigator.h"
13
14#include "G4Exception.hh"
15#include "G4TouchableHistory.hh"
16#include "G4VPhysicalVolume.hh"
17
18#include <VecGeom/base/Transformation3D.h>
19#include <VecGeom/management/GeoManager.h>
20#include <VecGeom/navigation/GlobalLocator.h>
21#include <VecGeom/navigation/VNavigator.h>
22#include <VecGeom/navigation/VSafetyEstimator.h>
23#include <VecGeom/volumes/LogicalVolume.h>
24#include <VecGeom/volumes/PlacedVolume.h>
25
26#include <fairlogger/Logger.h>
27
28#include <algorithm>
29#include <cmath>
30#include <limits>
31#include <sstream>
32
33namespace
34{
35const G4ThreeVector kNoPoint(-1e8, -1e8, -1e8);
36
37bool samePoint(const G4ThreeVector& a, const G4ThreeVector& b) { return a.diff2(b) < 1e-20; }
38
39vecgeom::VPlacedVolume const* topOf(vecgeom::NavigationState const& st)
40{
41 return st.IsOutside() ? nullptr : st.Top();
42}
43} // namespace
44
45namespace o2::simsetup
46{
47
48VecGeomG4Navigator::VecGeomG4Navigator(VecGeomG4Map const& map, double pushDepth, bool zeroSafety)
49 : VecGeomG4NavigatorBase(map), mPushDepth(pushDepth), mZeroSafety(zeroSafety)
50{
51 mEmptyState.Clear();
52}
53
55{
56 LOG(info) << "VecGeom navigation: zero steps " << mZeroStepCount << ", stuck pushes " << mStuckPushCount
57 << ", abandoned " << mAbandonCount << ", negative safeties " << mNegativeSafetyCount
58 << ", unmappable touchables " << mUnmappableHistoryCount << ", relocated resumes "
59 << mRelocatedResumeCount << ", missing exit normals " << mNoNormalCount;
60}
61
62G4VPhysicalVolume* VecGeomG4Navigator::updateG4History()
63{
64 // The history is a function of the VecGeom state alone, so it is rebuilt only when that changed.
65 if (mHistoryValid && mCurState.HasSamePathAsOther(mHistoryState)) {
66 return fHistory.GetTopVolume();
67 }
68 mHistoryState = mCurState;
69 mHistoryValid = true;
70 return historyFromState(mCurState);
71}
72
73void VecGeomG4Navigator::locateFromWorld(const V3& point)
74{
75 mCurState.Clear();
76 vecgeom::GlobalLocator::LocateGlobalPoint(vecgeom::GeoManager::Instance().GetWorld(), point, mCurState, true);
77}
78
83double VecGeomG4Navigator::boundaryPush(const V3& point, const V3& dir)
84{
85 constexpr double kMaxPush = 1.e-4; // cm along the direction
86 const double big = std::max({std::abs(point.x()), std::abs(point.y()), std::abs(point.z())});
87 const double rounding = 1.e3 * big * std::numeric_limits<double>::epsilon();
88
89 // The face just crossed: the entered daughter's, or the current volume's own.
90 vecgeom::NavigationState const& st = mWouldEnter ? mNextState : mCurState;
91 double cosn = 1.;
92 mPushNormalValid = false;
93 if (!st.IsOutside() && st.Top() != nullptr) {
94 vecgeom::Transformation3D m;
95 st.TopMatrix(m);
96 V3 n;
97 st.Top()->GetUnplacedVolume()->Normal(m.Transform(point), n);
98 const double c = std::abs(n.Dot(m.TransformDirection(dir)));
99 if (c > 0. && n.Mag2() > 0.5) {
100 cosn = c;
101 }
102 if (n.Mag2() > 0.5) {
103 mPushNormal = m.InverseTransformDirection(n);
104 mPushNormalValid = true;
105 }
106 }
107 return std::max(rounding, std::min(mPushDepth / cosn, kMaxPush));
108}
109
110G4double VecGeomG4Navigator::ComputeStep(const G4ThreeVector& globalPoint, const G4ThreeVector& direction,
111 const G4double proposedStepLength, G4double& newSafety)
112{
113 newSafety = 0.;
114 mWouldEnter = false;
115 mWouldExit = false;
116
117 auto const* top = topOf(mCurState);
118 if (top == nullptr) { // the track is outside the world
119 return kInfinity;
120 }
121 auto const* navigator = top->GetLogicalVolume()->GetNavigator();
122
123 // On the point a boundary locate left the track on, the safety is zero; a point seen before
124 // reuses its safety. Otherwise the navigator computes it with the step.
125 bool calcSafety = !mZeroSafety && !(mLocatedOnBoundary && samePoint(globalPoint, mLastLocatedPoint));
126 if (calcSafety && samePoint(globalPoint, mSafetyOrig) && mLastSafety < mLastSafetyLimit) {
127 calcSafety = false;
128 newSafety = mLastSafety;
129 }
130
131 // The step is computed on a copy. The state stays as the locate left it for every call until the
132 // next locate, which is what the field propagator relies on when it calls this from trial points
133 // along the curve. The volume the last crossing left is blocked in the first call only, and only
134 // while the direction points away from it; a track turning back into it must see its boundary.
135 mStepState = mCurState;
136 if (mExitBlockPending) {
137 const bool block = samePoint(globalPoint, mLastLocatedPoint) &&
138 (mExitNormalFromPush ? directionLeaves(mPushNormal, toDir(direction))
139 : directionLeaves(mExitedState, toVG(globalPoint), toDir(direction)));
140 if (!block) {
141 mStepState.SetLastExited(mEmptyState.GetLastExitedState());
142 }
143 clearLastExited();
144 }
145 const double limit = std::min(proposedStepLength * kG4ToVG, static_cast<double>(vecgeom::kInfLength));
146 double safety = 0.;
147 double vgStep = navigator->ComputeStepAndSafety(toVG(globalPoint), toDir(direction), limit, mStepState, calcSafety,
148 safety, true);
149 if (calcSafety) {
150 if (safety < 0.) {
151 ++mNegativeSafetyCount;
152 safety = 0.;
153 }
154 newSafety = safety * kVGToG4;
155 mSafetyOrig = globalPoint;
156 mLastSafety = newSafety;
157 mLastSafetyLimit = kInfinity;
158 }
159 const bool boundaryLimited = vgStep < limit;
160 G4double step = std::max(vgStep, 0.) * kVGToG4;
161 const bool entering = mStepState.GetCurrentLevel() > mCurState.GetCurrentLevel();
162
163 // A track that is not moving, with G4Navigator's thresholds: after ten zero steps the step is
164 // lengthened, after twenty-five the event is aborted.
165 if (step < 0.05 * kCarTolerance) {
166 ++mZeroStepCount;
167 if (++mNzeroSteps >= kActionThresholdNoZeroSteps) {
168 ++mStuckPushCount;
169 // The push grows from Geant4's 100 kCarTolerance fourfold per try to a micron and doubles from the
170 // eleventh try on: a track tangent to a curved face stays within the tolerance of it for microns.
171 const int tries = mNzeroSteps - kActionThresholdNoZeroSteps;
172 constexpr double kMicron = 1.e-3 * CLHEP::mm;
173 step += tries < 10 ? std::min(100. * kCarTolerance * std::pow(4., tries), kMicron)
174 : kMicron * static_cast<double>(2 << (tries - 10));
175 if (mNzeroSteps >= kAbandonThresholdNoZeroSteps) {
176 ++mAbandonCount;
177 std::ostringstream msg;
178 msg << "Track stuck or not moving: " << mNzeroSteps << " zero steps in " << top->GetLabel() << " at ("
179 << globalPoint.x() << ", " << globalPoint.y() << ", " << globalPoint.z() << ") mm. Event aborted, as "
180 << "G4Navigator does.";
181 mNzeroSteps = 0;
182 G4Exception("VecGeomG4Navigator::ComputeStep()", "GeomNav0003", EventMustBeAborted, msg.str().c_str());
183 }
184 }
185 } else {
186 mNzeroSteps = 0;
187 }
188
189 if (boundaryLimited) {
190 mWouldEnter = entering;
191 mWouldExit = !entering;
192 mNextPoint = globalPoint + step * direction;
193 if (entering) {
194 mNextState = mStepState;
195 }
196 // The surface this step ends on, for the exit normal: the entered daughter's or our own.
197 mNormalState = entering ? mNextState : mCurState;
198 mNormalEnter = entering;
199 mNormalPoint = mNextPoint;
200 mNormalValid = true;
201 } else {
202 step = kInfinity;
203 mNormalValid = false;
204 }
205 return step;
206}
207
215void VecGeomG4Navigator::leaveFlushVolumes(const V3& point, const V3& dir, int minLevel,
216 vecgeom::VPlacedVolume const* avoid)
217{
218 for (int round = 0; round < 4; ++round) {
219 vecgeom::VPlacedVolume const* left = nullptr;
220 while (topOf(mCurState) != nullptr && static_cast<int>(mCurState.GetCurrentLevel()) > minLevel) {
221 vecgeom::Transformation3D m;
222 mCurState.TopMatrix(m);
223 if (mCurState.Top()->GetUnplacedVolume()->DistanceToOut(m.Transform(point), m.TransformDirection(dir)) > 0.) {
224 break;
225 }
226 left = mCurState.Top();
227 mCurState.SetLastExited();
228 setExited(mCurState, false);
229 if (mCurState.GetCurrentLevel() <= 1) {
230 mCurState.Clear(); // nothing to travel in even in the world: the track left it
231 return;
232 }
233 mCurState.Pop();
234 }
235 if (left == nullptr) {
236 return;
237 }
238 auto const* mother = mCurState.Top();
239 vecgeom::Transformation3D m;
240 mCurState.TopMatrix(m);
241 const auto level = mCurState.GetCurrentLevel();
242 const auto blocked = mCurState.GetLastExitedState();
243 mCurState.Pop();
244 vecgeom::GlobalLocator::LocateGlobalPointExclVolume(mother, left, m.Transform(point), mCurState, false);
245 mCurState.SetLastExited(blocked);
246 if (mCurState.GetCurrentLevel() == level) {
247 return; // no daughter holds the point
248 }
249 if (avoid != nullptr && mCurState.GetCurrentLevel() > level) {
250 // Undo a descent into the volume the crossing exited, at whatever depth the search put it.
251 mPathScratch = mCurState;
252 while (mPathScratch.GetCurrentLevel() > level && mPathScratch.Top() != avoid) {
253 mPathScratch.Pop();
254 }
255 if (mPathScratch.GetCurrentLevel() > level) {
256 while (mCurState.GetCurrentLevel() > level) {
257 mCurState.Pop();
258 }
259 return;
260 }
261 }
262 }
263}
264
268void VecGeomG4Navigator::updateCrossingFlags(bool entering)
269{
270 const int preLevel = mReloScratch.IsOutside() ? 0 : static_cast<int>(mReloScratch.GetCurrentLevel());
271 const int curLevel = mCurState.IsOutside() ? 0 : static_cast<int>(mCurState.GetCurrentLevel());
272 mPathScratch = mReloScratch;
273 mStepState = mCurState;
274 int la = preLevel, lb = curLevel;
275 while (la > lb) {
276 mPathScratch.Pop();
277 --la;
278 }
279 while (lb > la) {
280 mStepState.Pop();
281 --lb;
282 }
283 while (la > 0 && !mPathScratch.HasSamePathAsOther(mStepState)) {
284 mPathScratch.Pop();
285 mStepState.Pop();
286 --la;
287 }
288 fExitedMother = !entering || la < preLevel;
289 fEnteredDaughter = entering || la < curLevel;
290}
291
292G4VPhysicalVolume* VecGeomG4Navigator::LocateGlobalPointAndSetup(const G4ThreeVector& point,
293 const G4ThreeVector* direction,
294 const G4bool relativeSearch, const G4bool)
295{
296 // A boundary is being crossed when Geant4 says the last step was limited by the geometry (or the
297 // point is where the last ComputeStep put the boundary) and that step found one.
298 const bool onBoundary = relativeSearch && (fWasLimitedByGeometry || samePoint(point, mNextPoint));
299 const bool crossing = onBoundary && (mWouldEnter || mWouldExit) && direction != nullptr;
300 const bool entering = crossing && mWouldEnter;
301 const V3 p = toVG(point);
302 const V3 dir = direction != nullptr ? toDir(*direction) : V3(0., 0., 0.);
303 const double push = (onBoundary && direction != nullptr) ? boundaryPush(p, dir) : 0.;
304 const V3 q = p + push * dir;
305
306 fWasLimitedByGeometry = false;
307 fEnteredDaughter = false;
308 fExitedMother = false;
309 mLocatedOnBoundary = false;
310 mLastLocatedPoint = point;
311 mSafetyOrig = kNoPoint;
312 clearLastExited();
313
314 if (!relativeSearch) {
315 mNzeroSteps = 0; // a new track: nothing of the previous one applies
316 locateFromWorld(p);
317 } else if (topOf(mCurState) == nullptr) {
318 locateFromWorld(p);
319 } else if (entering) {
320 // Into the daughter the step hit, then down inside it.
321 mReloScratch = mCurState;
322 mCurState = mNextState;
323 // mNextState is a copy of the step state and can still carry the block of the volume the previous
324 // crossing left, which was meant for the first step after that exit only.
325 mCurState.SetLastExited(mEmptyState.GetLastExitedState());
326 auto const* daughter = mCurState.Top();
327 mCurState.Pop();
328 vecgeom::Transformation3D m;
329 mCurState.TopMatrix(m);
330 vecgeom::GlobalLocator::LocateGlobalPoint(daughter, daughter->GetTransformation()->Transform(m.Transform(q)),
331 mCurState, false);
332 mLocatedOnBoundary = true;
333 } else if (crossing) {
334 // Out of the current volume: up until the point is contained, then down, never back into the
335 // volume just left; that volume is blocked at zero distance in the next ComputeStep while the
336 // direction points away from it, as G4Navigator's fBlockedPhysicalVolume.
337 mReloScratch = mCurState;
338 if (mCurState.GetCurrentLevel() <= 1) {
339 mCurState.Clear(); // left the world
340 } else {
341 vecgeom::Transformation3D m;
342 mCurState.TopMatrix(m);
343 vecgeom::GlobalLocator::RelocatePointFromPathForceDifferent(m.Transform(q), mCurState);
344 // As G4Navigator, block the volume left that is a daughter of the deepest volume both paths share.
345 int shared = 0;
346 while (!mCurState.IsOutside() && shared + 1 < static_cast<int>(mCurState.GetCurrentLevel()) &&
347 shared + 1 < static_cast<int>(mReloScratch.GetCurrentLevel()) &&
348 mCurState.At(shared + 1) == mReloScratch.At(shared + 1)) {
349 ++shared;
350 }
351 mPathScratch = mReloScratch;
352 while (static_cast<int>(mPathScratch.GetCurrentLevel()) > shared + 2) {
353 mPathScratch.Pop();
354 }
355 mPathScratch.SetLastExited();
356 mCurState.SetLastExited(mPathScratch.GetLastExitedState());
357 setExited(mReloScratch, true);
358 }
359 mLocatedOnBoundary = true;
360 } else {
361 // Anywhere else: from the current path, up until contained, then down.
362 vecgeom::Transformation3D m;
363 mCurState.TopMatrix(m);
364 vecgeom::GlobalLocator::RelocatePointFromPath(m.Transform(q), mCurState);
365 if (topOf(mCurState) == nullptr) {
366 locateFromWorld(p);
367 }
368 mLocatedOnBoundary = onBoundary;
369 }
370 if (crossing) {
371 leaveFlushVolumes(q, dir, entering ? static_cast<int>(mNextState.GetCurrentLevel()) : 0,
372 entering ? nullptr : topOf(mReloScratch));
373 updateCrossingFlags(entering);
374 }
375 mWouldEnter = false;
376 mWouldExit = false;
377 return updateG4History();
378}
379
380G4VPhysicalVolume* VecGeomG4Navigator::ResetHierarchyAndLocate(const G4ThreeVector& point, const G4ThreeVector&,
381 const G4TouchableHistory& history)
382{
383 // A track resumes from a stored touchable, usually a secondary starting where its parent's step
384 // ended. The touchable names its volume; it is kept unless it does not hold the point.
385 fWasLimitedByGeometry = false;
386 fEnteredDaughter = false;
387 fExitedMother = false;
388 mWouldEnter = false;
389 mWouldExit = false;
390 mLocatedOnBoundary = false;
391 mLastLocatedPoint = point;
392 mSafetyOrig = kNoPoint;
393 mNzeroSteps = 0;
394 fHistory = *history.GetHistory();
395 const V3 p = toVG(point);
396 bool kept = false;
397 if (stateFromHistory(mCurState)) {
398 vecgeom::Transformation3D m;
399 mCurState.TopMatrix(m);
400 if (mCurState.Top()->GetUnplacedVolume()->Contains(m.Transform(p))) {
401 kept = true;
402 } else {
403 ++mRelocatedResumeCount;
404 vecgeom::GlobalLocator::RelocatePointFromPath(m.Transform(p), mCurState);
405 if (topOf(mCurState) == nullptr) {
406 locateFromWorld(p);
407 }
408 }
409 } else {
410 if (++mUnmappableHistoryCount <= 10) {
411 LOG(warning) << "VecGeom navigation: a touchable matches no VecGeom path; locating from the world";
412 }
413 locateFromWorld(p);
414 }
415 clearLastExited();
416 if (kept) {
417 // The touchable's history is the path of the state: keep it rather than rebuild it.
418 mHistoryState = mCurState;
419 mHistoryValid = true;
420 return fHistory.GetTopVolume();
421 }
422 mHistoryValid = false;
423 return updateG4History();
424}
425
427{
428 // The caller guarantees the point is in the current volume, so the state stays; only what
429 // described the last crossing is dropped, as in G4Navigator.
430 mLastLocatedPoint = position;
431 mLocatedOnBoundary = false;
432 mWouldEnter = false;
433 mWouldExit = false;
434 fEnteredDaughter = false;
435 fExitedMother = false;
436 clearLastExited();
437}
438
439G4double VecGeomG4Navigator::ComputeSafety(const G4ThreeVector& globalPoint, const G4double proposedMaxLength,
440 const G4bool)
441{
442 if (mZeroSafety) {
443 return 0.;
444 }
445 if (mLocatedOnBoundary && samePoint(globalPoint, mLastLocatedPoint)) {
446 return 0.;
447 }
448 if ((mWouldEnter || mWouldExit) && samePoint(globalPoint, mNextPoint)) {
449 return 0.;
450 }
451 if (samePoint(globalPoint, mSafetyOrig) && (mLastSafety < mLastSafetyLimit || mLastSafety >= proposedMaxLength)) {
452 return mLastSafety;
453 }
454 if (topOf(mCurState) == nullptr) {
455 return 0.;
456 }
457 // Every point closer to the last safety origin than its safety is in the same volume, so s0 - d is a
458 // valid safety there; it is used when it covers the caller's bound. Every locate drops the cache.
459 const double rest = mLastSafety - std::sqrt(globalPoint.diff2(mSafetyOrig));
460 if (rest >= proposedMaxLength) {
461 return rest;
462 }
463 double safety = boundedSafety(mCurState, globalPoint, proposedMaxLength);
464 if (safety < 0.) {
465 ++mNegativeSafetyCount;
466 safety = 0.;
467 }
468 mSafetyOrig = globalPoint;
469 mLastSafety = safety;
470 mLastSafetyLimit = proposedMaxLength;
471 return mLastSafety;
472}
473
480bool VecGeomG4Navigator::computeExitNormal(const G4ThreeVector& point, V3& globalNormal) const
481{
482 if (!mNormalValid || topOf(mNormalState) == nullptr) {
483 return false;
484 }
485 vecgeom::Transformation3D m;
486 mNormalState.TopMatrix(m);
487 V3 localNormal(0., 0., 0.);
488 mNormalState.Top()->GetUnplacedVolume()->Normal(m.Transform(toVG(point)), localNormal);
489 globalNormal = m.InverseTransformDirection(localNormal);
490 const double mag = globalNormal.Mag();
491 if (!(mag > 0.5)) {
492 return false;
493 }
494 globalNormal /= mag;
495 if (mNormalEnter) {
496 globalNormal = -globalNormal;
497 }
498 return true;
499}
500
502{
503 V3 n;
504 if (!computeExitNormal(mNormalPoint, n) || topOf(mCurState) == nullptr) {
505 ++mNoNormalCount;
506 if (valid != nullptr) {
507 *valid = false;
508 }
509 return G4ThreeVector();
510 }
511 vecgeom::Transformation3D m;
512 mCurState.TopMatrix(m);
513 const auto local = m.TransformDirection(n);
514 if (valid != nullptr) {
515 *valid = true;
516 }
517 return G4ThreeVector(local[0], local[1], local[2]);
518}
519
520G4ThreeVector VecGeomG4Navigator::GetGlobalExitNormal(const G4ThreeVector& point, G4bool* valid)
521{
522 V3 n;
523 if (!computeExitNormal(point, n)) {
524 ++mNoNormalCount;
525 if (valid != nullptr) {
526 *valid = false;
527 }
528 return G4ThreeVector();
529 }
530 if (valid != nullptr) {
531 *valid = true;
532 }
533 return G4ThreeVector(n[0], n[1], n[2]);
534}
535
536} // namespace o2::simsetup
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual Show related Highlight grid Show only individual collision Color clusters belonging to track objects Set line Enable drawing TPC data Enable drawing TOF data Enable drawing magnetic field Set field line step count Invert colors configStandalone Heavy OpenGL display display_heavy Show tracks with ITS contribution Show tracks with TOF contribution Enable propagation of loopers Show clusters at nominal x of pad row for early transformed data Split CE tracks when they cross the central Mark clusters Mark adjacent clusters Hide rejected tracks Apply filter on tracks to be displayed Separate increase X h configStandalone Camera window renderer OpenGL display display_camera Orient the camera such that the y axis is always upwards Full Screen MultiSample Anti Downsampling Anti Enable Vertical Sync Target frame or if the backend cannot limit to the refresh Use OpenGL indirect draws to reduce number of draw calls Display h configStandalone Vulkan display display_vulkan Have uniform buffers in host accessible device memory h configStandalone Internal display display_internal Number of updates the Qt GUI may send ahead of the last one the display has before it waits for the display Opacity of the console background Number of console lines kept
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char e
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if shared
bool valid
uint32_t c
Definition RawData.h:2
Acts::Vector3 position
vecgeom::Vector3D< double > V3
benchmark::State & st
static bool directionLeaves(const V3 &n, const V3 &dir)
static V3 toDir(const G4ThreeVector &d)
G4VPhysicalVolume * historyFromState(vecgeom::NavigationState const &state)
static V3 toVG(const G4ThreeVector &p)
bool stateFromHistory(vecgeom::NavigationState &state) const
static double boundedSafety(vecgeom::NavigationState const &state, const G4ThreeVector &point, double limit)
G4ThreeVector GetGlobalExitNormal(const G4ThreeVector &point, G4bool *valid) override
G4double ComputeSafety(const G4ThreeVector &globalPoint, const G4double proposedMaxLength=DBL_MAX, const G4bool keepState=true) override
G4double ComputeStep(const G4ThreeVector &globalPoint, const G4ThreeVector &direction, const G4double proposedStepLength, G4double &newSafety) override
VecGeomG4Navigator(VecGeomG4Map const &map, double pushDepth, bool zeroSafety)
G4VPhysicalVolume * ResetHierarchyAndLocate(const G4ThreeVector &point, const G4ThreeVector &direction, const G4TouchableHistory &history) override
G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=nullptr, const G4bool relativeSearch=true, const G4bool ignoreDirection=true) override
void LocateGlobalPointWithinVolume(const G4ThreeVector &position) override
G4ThreeVector GetLocalExitNormal(G4bool *valid) override
GLdouble n
Definition glcorearb.h:1982
const GLfloat * m
Definition glcorearb.h:4066
GLdouble GLdouble GLdouble GLdouble top
Definition glcorearb.h:4077
GLboolean GLboolean GLboolean b
Definition glcorearb.h:1233
GLint left
Definition glcorearb.h:1979
GLint level
Definition glcorearb.h:275
GLboolean GLboolean GLboolean GLboolean a
Definition glcorearb.h:1233
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
uint64_t const void const *restrict const msg
Definition x9.h:153