62 fNextDaughterIndex(0),
67 fCurrentOverlapping(
kFALSE),
93 for (
Int_t i=0; i<3; i++) {
113 fNextDaughterIndex(-2),
118 fCurrentOverlapping(
kFALSE),
126 fIsSameLocation(
kTRUE),
146 for (
Int_t i=0; i<3; i++) {
180 if (nlevel<=0) nlevel = 100;
183 if (
first && verbose>0)
Info(
"BuildCache",
"--- Maximum geometry depth set to 100");
185 if (
first && verbose>0)
Info(
"BuildCache",
"--- Maximum geometry depth is %i", nlevel);
203 if (!path[0])
return kTRUE;
208 if (ind1 == length-1) ind1 = -1;
215 ind2 = spath.
Index(
"/", ind1+1);
216 if (ind2<0 || ind2==length-1) {
217 if (ind2<0) ind2 = length;
220 name = spath(ind1+1, ind2-ind1-1);
231 Error(
"cd",
"Path %s not valid", path);
245 if (!path[0])
return kTRUE;
251 if (ind1 == length-1) ind1 = -1;
258 ind2 = spath.
Index(
"/", ind1+1);
259 if (ind2<0 || ind2==length-1) {
260 if (ind2<0) ind2 = length;
263 name = spath(ind1+1, ind2-ind1-1);
397 if (
fCurrentNode && fNextDaughterIndex<fCurrentNode->GetNdaughters()) {
400 while (nextindex>=0) {
440 Fatal(
"CrossDivisionCell",
"Volume has no pattern finder");
446 Double_t point[3], newpoint[3], dir[3];
506 for (
Int_t i=0; i<10; ++i)
507 crtstate[i] =
nullptr;
523 if (!current)
return 0;
526 while (nextindex>=0) {
532 printf(
"CrossBoundaryAndLocate: entered %s\n",
GetPath());
538 if (current == skipnode) {
542 for (
Int_t i=1; i<level; i++) {
556 printf(
"CrossBoundaryAndLocate: Exited geometry\n");
565 printf(
"CrossBoundaryAndLocate: Exited geometry\n");
568 printf(
"CrossBoundaryAndLocate: entered %s\n",
GetPath());
575 printf(
"CrossBoundaryAndLocate: entered %s\n",
GetPath());
614 computeGlobal =
kTRUE;
641 printf(
"TGeoManager::FindNextBoundary: point=(%19.16f, %19.16f, %19.16f)\n",
643 printf(
" dir= (%19.16f, %19.16f, %19.16f)\n",
645 printf(
" pstep=%9.6g path=%s\n", stepmax,
GetPath());
659 printf(
"=== To path: %s\n", path);
660 printf(
"=== local to %s: (%19.16f, %19.16f, %19.16f, %19.16f, %19.16f, %19.16f)\n",
661 tvol->
GetName(), point[0],point[1],point[2],dir[0],dir[1],dir[2]);
664 if (idebug>4) printf(
"=== volume %s contains point\n", tvol->
GetName());
669 printf(
"=== volume %s does not contain point\n", tvol->
GetName());
670 printf(
"=== distance to path: %g\n",
fStep);
674 newpt[0] = point[0] +
fStep*dir[0];
675 newpt[1] = point[1] +
fStep*dir[1];
676 newpt[2] = point[2] +
fStep*dir[2];
677 printf(
"=== Propagated point: (%19.16f, %19.16f, %19.16f)", newpt[0],newpt[1],newpt[2]);
684 printf(
"=== local to %s: (%19.16f, %19.16f, %19.16f, %19.16f, %19.16f, %19.16f)\n",
685 tvol->
GetName(), point[0],point[1],point[2],dir[0],dir[1],dir[2]);
687 printf(
"=== volume %s contains point\n", tvol->
GetName());
689 printf(
"=== volume %s does not contain point\n", tvol->
GetName());
722 printf(
" -> from local=(%19.16f, %19.16f, %19.16f)\n",
723 point[0],point[1],point[2]);
724 printf(
" ldir =(%19.16f, %19.16f, %19.16f)\n",
725 dir[0],dir[1],dir[2]);
742 Int_t idaughter = -1;
776 for (
Int_t i=0; i<novlps; i++) {
777 current = mother->
GetNode(ovlps[i]);
868 Fatal(
"FindNextBoundary",
"Cannot find mother node");
881 if (nextovlp) nmany -= imother-up;
886 if (ovlp || nextovlp) {
889 Fatal(
"FindNextBoundary",
"Cannot find mother matrix");
911 currentnode = mothernode;
931 while (nextindex>=0) {
970 if ((index-1) >= ifirst) ifirst = index-1;
972 if ((index+1) <= ilast) ilast = index+1;
976 current = vol->
GetNode(ifirst);
994 if (ilast==ifirst)
return nodefound;
1010 nodefound = current;
1019 if (idebug>4) printf(
" Checking distance to %d daughters...\n",nd);
1020 if (nd<5 || !voxels) {
1021 for (i=0; i<nd; i++) {
1034 printf(
" -> from local=(%19.16f, %19.16f, %19.16f)\n",
1035 lpoint[0],lpoint[1],lpoint[2]);
1036 printf(
" ldir =(%19.16f, %19.16f, %19.16f)\n",
1037 ldir[0],ldir[1],ldir[2]);
1038 printf(
" -> to: %s shape %s snext=%g\n", current->
GetName(),
1052 while (indnext>=0) {
1056 nodefound = current;
1066 Int_t sumchecked = 0;
1070 while ((sumchecked<nd) && (vlist=voxels->
GetNextVoxel(point, dir, ncheck, info))) {
1071 for (i=0; i<ncheck; i++) {
1072 current = vol->
GetNode(vlist[i]);
1084 printf(
" -> from local=(%19.16f, %19.16f, %19.16f)\n",
1085 lpoint[0],lpoint[1],lpoint[2]);
1086 printf(
" ldir =(%19.16f, %19.16f, %19.16f)\n",
1087 ldir[0],ldir[1],ldir[2]);
1088 printf(
" -> to: %s shape %s snext=%g\n", current->
GetName(),
1101 idaughter = vlist[i];
1102 while (indnext>=0) {
1106 nodefound = current;
1125 static Int_t icount = 0;
1166 printf(
"TGeoManager::FindNextBAndStep: point=(%19.16f, %19.16f, %19.16f)\n",
1168 printf(
" dir= (%19.16f, %19.16f, %19.16f)\n",
1170 printf(
" pstep=%9.6g path=%s\n", stepmax,
GetPath());
1188 while (nextindex>=0) {
1217 Int_t icrossed = -2;
1223 printf(
" -> from local=(%19.16f, %19.16f, %19.16f)\n",
1224 point[0],point[1],point[2]);
1225 printf(
" ldir =(%19.16f, %19.16f, %19.16f)\n",
1226 dir[0],dir[1],dir[2]);
1246 if (!
fLevel && !is_assembly) {
1264 Int_t idaughter = -1;
1268 icrossed = idaughter;
1303 for (
Int_t i=0; i<novlps; i++) {
1304 current = mother->
GetNode(ovlps[i]);
1317 icrossed = ovlps[i];
1333 icrossed = idaughter;
1351 icrossed = ovlps[i];
1383 if (nextovlp) nmany -= imother-up;
1388 if (ovlp || nextovlp) {
1400 while (up--)
CdUp();
1410 currentnode = mothernode;
1434 while (nextindex>=0) {
1446 if (icrossed == -2) {
1452 if (icrossed == -1) {
1456 if (!
fLevel && !is_assembly) {
1468 while (nextindex>=0) {
1491 if (found != last) {
1516 if (found != last) {
1654 if (ilast==ifirst)
return fSafety;
1671 for (
id=0;
id<nd;
id++) {
1692 for (
id=0;
id<nd;
id++) {
1696 if (dxyz0 >
fSafety)
continue;
1698 if (dxyz1 >
fSafety)
continue;
1700 if (dxyz2 >
fSafety)
continue;
1701 if (dxyz0>0) dxyz+=dxyz0*dxyz0;
1702 if (dxyz1>0) dxyz+=dxyz1*dxyz1;
1703 if (dxyz2>0) dxyz+=dxyz2*dxyz2;
1739 if (safe<fSafety && safe>=0)
fSafety=safe;
1740 if (!novlp || !contains)
continue;
1742 for (io=0; io<novlp; io++) {
1743 nodeovlp = vol->
GetNode(ovlp[io]);
1753 if (safe<fSafety && safe>=0)
fSafety=safe;
1771 if (crtovlp) nmany--;
1772 if (crtovlp || nextovlp) {
1802 while (crtindex>=0) {
1827 if (!inside_current) {
1829 inside_current = vol->
Contains(point);
1835 if (!inside_current) {
1850 if (!inside_current && downwards) {
1853 else inside_current = vol->
Contains(point);
1854 if (!inside_current) {
1863 printf(
"Search node local=(%19.16f, %19.16f, %19.16f) -> %s\n",
1877 while (crtindex>=0 && downwards) {
1903 if (node && node!=skipnode) {
1917 Int_t *check_list = 0;
1940 for (
id=0;
id<ncheck;
id++) {
1941 node = vol->
GetNode(check_list[
id]);
1942 if (node==skipnode)
continue;
1986 for (
id=0;
id<nd;
id++) {
1988 if (node==skipnode)
continue;
2029 Int_t found_virtual = 0;
2033 for (i=0; i<nc; i++) {
2047 if (found_virtual>deepest_virtual) {
2050 if (found_virtual==deepest_virtual) {
2054 if ((
fLevel==deepest) && (clnode==priority)) replace=
kTRUE;
2076 deepest_virtual = found_virtual;
2085 deepest_virtual = found_virtual;
2106 if (!ovlps)
return 0;
2112 result[ntotal++]=check_list[start];
2116 while ((jst<novlps) && (ovlps[jst]<=check_list[start])) jst++;
2117 if (jst==novlps)
return 0;
2118 for (i=start; i<ncheck; i++) {
2119 for (j=jst; j<novlps; j++) {
2120 if (check_list[i]==ovlps[j]) {
2126 result[ntotal++]=check_list[i];
2150 if (is_geom) epsil=(cross)?1E-6:-1E-6;
2181 Int_t new_media = 0;
2183 Int_t virtual_level = 1;
2186 while ((mother=
GetMother(virtual_level))) {
2188 if (!new_media) new_media=(mother->
GetMedium()==medium)?0:virtual_level;
2191 if (!new_media) new_media=(mother->
GetMedium()==medium)?0:virtual_level;
2194 return (new_media==0)?virtual_level:(new_media-1);
2217 if (!mother)
return kTRUE;
2223 if (ovlp || nextovlp) {
2229 while (up--)
CdUp();
2246 if (!overlapping)
return fLevel;
2249 while (overlapping && level) {
2262 Info(
"InspectState",
"Current path is: %s",
GetPath());
2265 Bool_t is_offset, is_overlapping;
2266 for (level=0; level<
fLevel+1; level++) {
2268 if (!node)
continue;
2271 Info(
"InspectState",
"level %i: %s div=%i many=%i",level,node->
GetName(),is_offset,is_overlapping);
2321 if (!change)
return kFALSE;
2332 if (!change)
return kFALSE;
2342 if (!change)
return kFALSE;
2345 while (crtindex>=0) {
2355 if (!nd)
return kTRUE;
2362 if (!change)
return kFALSE;
2371 Int_t *check_list = 0;
2381 for (
Int_t id=0;
id<ncheck;
id++) {
2444 if (safe < proposed)
return kFALSE;
R__EXTERN TGeoIdentity * gGeoIdentity
const char * kGeoOutsidePath
static Double_t gTolerance
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
Class storing the state of the cache at a given moment.
void SetState(Int_t level, Int_t startlevel, Int_t nmany, Bool_t ovlp, Double_t *point=0)
Fill current modeller state.
Matrix class used for computing global transformations Should NOT be used for node definition.
void CopyFrom(const TGeoMatrix *other)
Fast copy method.
virtual const Double_t * GetTranslation() const
void Multiply(const TGeoMatrix *right)
multiply to the right with an other transformation if right is identity matrix, just return
The manager class for any TGeo geometry.
TGeoNode * GetCurrentNode() const
TGeoParallelWorld * GetParallelWorld() const
Int_t GetMaxLevel() const
Bool_t IsParallelWorldNav() const
Bool_t IsActivityEnabled() const
TGeoNode * GetTopNode() const
static Int_t GetVerboseLevel()
Set verbosity level (static function).
void MasterToLocal(const Double_t *master, Double_t *local) const
TGeoVolume * GetTopVolume() const
static Int_t ThreadId()
Translates the current thread id to an ordinal number.
virtual void LocalToMasterVect(const Double_t *local, Double_t *master) const
convert a vector by multiplying its column vector (x, y, z, 1) to matrix inverse
virtual void MasterToLocal(const Double_t *master, Double_t *local) const
convert a point by multiplying its column vector (x, y, z, 1) to matrix
virtual void MasterToLocalVect(const Double_t *master, Double_t *local) const
convert a point by multiplying its column vector (x, y, z, 1) to matrix
virtual void RegisterYourself()
Register the matrix in the current manager, which will become the owner.
virtual void LocalToMaster(const Double_t *local, Double_t *master) const
convert a point by multiplying its column vector (x, y, z, 1) to matrix inverse
Media are used to store properties related to tracking and which are useful only when using geometry ...
TGeoNavigator * AddNavigator()
Add a new navigator to the array.
TGeoManager * fGeoManager
TGeoNavigator * SetCurrentNavigator(Int_t inav)
Class providing navigation API for TGeo geometries.
void CdUp()
Go one level up in geometry.
void DoBackupState()
Backup the current state without affecting the cache stack.
TGeoNode * GetMother(Int_t up=1) const
void DoRestoreState()
Restore a backed-up state without affecting the cache stack.
Double_t fPoint[3]
unit vector to current checked shape
Bool_t fSearchOverlaps
internal array for overlaps
Bool_t fIsExiting
flag if current step just got into a new node
TString fPath
current local matrix of the selected division cell
TGeoHMatrix * fDivMatrix
current pointer to cached global matrix
TGeoNode * CrossBoundaryAndLocate(Bool_t downwards, TGeoNode *skipnode)
Cross next boundary and locate within current node The current point must be on the boundary of fCurr...
TGeoHMatrix * GetHMatrix()
Return stored current matrix (global matrix of the next touched node).
virtual ~TGeoNavigator()
Destructor.
TGeoNodeCache * fCache
current geometry
Bool_t fStartSafe
flags the type of the current node
void CdNext()
Do a cd to the node found next by FindNextBoundary.
Double_t Safety(Bool_t inside=kFALSE)
Compute safe distance from the current point.
Bool_t GotoSafeLevel()
Go upwards the tree until a non-overlapping node.
Double_t fNormal[3]
last computed safety radius
Bool_t cd(const char *path="")
Browse the tree of nodes starting from top node according to pathname.
Double_t fLastPoint[3]
current direction
Bool_t IsSameLocation() const
Double_t fCldir[3]
cosine of incident angle on current checked surface
Bool_t fIsStepEntering
flag that current track is about to leave current node
TGeoNode * SearchNode(Bool_t downwards=kFALSE, const TGeoNode *skipnode=0)
Returns the deepest node containing fPoint, which must be set a priori.
Int_t GetVirtualLevel()
Find level of virtuality of current overlapping node (number of levels up having the same tracking me...
Int_t fOverlapSize
next daughter index after FindNextBoundary
TGeoNode * InitTrack(const Double_t *point, const Double_t *dir)
Initialize current point and current direction vector (normalized) in MARS.
void InspectState() const
Inspects path and all flags for the current state.
Int_t PushPoint(Int_t startlevel=0)
TGeoNode * Step(Bool_t is_geom=kTRUE, Bool_t cross=kTRUE)
Make a rectiliniar step of length fStep from current point (fPoint) on current direction (fDirection)...
TGeoNode * FindInCluster(Int_t *cluster, Int_t nc)
Find a node inside a cluster of overlapping nodes.
void SafetyOverlaps()
Compute safe distance from the current point within an overlapping node.
TGeoNode * CrossDivisionCell()
Cross a division cell.
void ResetState()
Reset current state flags.
TGeoNode * FindNextDaughterBoundary(Double_t *point, Double_t *dir, Int_t &idaughter, Bool_t compmatrix=kFALSE)
Computes as fStep the distance to next daughter of the current volume.
Bool_t fIsSameLocation
flag that current point is on some boundary
void GetBranchNumbers(Int_t *copyNumbers, Int_t *volumeNumbers) const
Fill node copy numbers of current branch into an array.
Bool_t CheckPath(const char *path) const
Check if a geometry path is valid without changing the state of the navigator.
TGeoHMatrix * GetMotherMatrix(Int_t up=1) const
TGeoVolume * fCurrentVolume
cache of states
TGeoNode * fLastNode
top physical node
Int_t fThreadId
last point for which safety was computed
Double_t fDirection[3]
current point
void PopDummy(Int_t ipop=9999)
Int_t GetTouchedCluster(Int_t start, Double_t *point, Int_t *check_list, Int_t ncheck, Int_t *result)
Make the cluster of overlapping nodes in a voxel, containing point in reference of the mother.
TGeoNode * FindNextBoundary(Double_t stepmax=TGeoShape::Big(), const char *path="", Bool_t frombdr=kFALSE)
Find distance to next boundary and store it in fStep.
TGeoNode * FindNode(Bool_t safe_start=kTRUE)
Returns deepest node containing current point.
Int_t fOverlapMark
current size of fOverlapClusters
TGeoNode * FindNextBoundaryAndStep(Double_t stepmax=TGeoShape::Big(), Bool_t compsafe=kFALSE)
Compute distance to next boundary within STEPMAX.
void CdTop()
Make top level node the current node.
Int_t fNmany
current geometry level;
TGeoManager * fGeometry
flag that last geometric step was null
TGeoHMatrix * fGlobalMatrix
current stored global matrix
void MasterToTop(const Double_t *master, Double_t *top) const
Convert coordinates from master volume frame to top.
Int_t GetCurrentNodeId() const
Double_t * FindNormalFast()
Computes fast normal to next crossed boundary, assuming that the current point is close enough to the...
Int_t PushPath(Int_t startlevel=0)
Bool_t fIsStepExiting
flag that next geometric step will enter new volume
Bool_t fIsOnBoundary
flag that current point is outside geometry
void GetBranchOnlys(Int_t *isonly) const
Fill node copy numbers of current branch into an array.
void TopToMaster(const Double_t *top, Double_t *master) const
Convert coordinates from top volume frame to master.
void SetCurrentPoint(const Double_t *point)
TGeoHMatrix * fCurrentMatrix
backup state
Int_t * fOverlapClusters
current recursive position in fOverlapClusters
Bool_t IsSafeStep(Double_t proposed, Double_t &newsafety) const
In case a previous safety value was computed, check if the safety region is still safe for the curren...
Double_t fLastSafety
safety radius from current point
TGeoNavigator()
path to current node
void SetCurrentDirection(const Double_t *dir)
void BuildCache(Bool_t dummy=kFALSE, Bool_t nodeid=kFALSE)
Builds the cache for physical nodes and global matrices.
Int_t fNextDaughterIndex
number of overlapping nodes on current branch
Bool_t fIsNullStep
flag that a new point is in the same node as previous
void CdNode(Int_t nodeid)
Change current path to point to the node having this id.
TGeoNode * fNextNode
last searched node
Double_t fCldirChecked[3]
unit vector to current closest shape
Int_t fLevel
thread id for this navigator
void ResetAll()
Reset the navigator.
TGeoCacheState * fBackupState
current point is supposed to be inside this node
Bool_t IsSamePoint(Double_t x, Double_t y, Double_t z) const
Check if a new point with given coordinates is the same as the last located one.
Bool_t fCurrentOverlapping
flag set when an overlapping cluster is searched
Bool_t fIsOutside
flag that next geometric step will exit current volume
void CdDown(Int_t index)
Make a daughter of current node current.
Bool_t fIsEntering
flag a safe start for point classification
TGeoNode * fForcedNode
next node that will be crossed
const char * GetPath() const
Get path to the current node in the form /node0/node1/...
Int_t GetSafeLevel() const
Go upwards the tree until a non-overlapping node.
TGeoNode * fCurrentNode
current volume
Double_t fSafety
step to be done from current point and direction
Double_t * FindNormal(Bool_t forward=kTRUE)
Computes normal vector to the next surface that will be or was already crossed when propagating on a ...
void GetBranchNames(Int_t *names) const
Fill volume names of current branch into an array.
Special pool of reusable nodes.
TGeoNode * GetNode() const
void CdNode(Int_t nodeid)
Change current path to point to the node having this id.
void GetBranchOnlys(Int_t *isonly) const
Fill copy numbers of current branch nodes.
const char * GetPath()
Returns the current geometry path.
void GetBranchNumbers(Int_t *copyNumbers, Int_t *volumeNumbers) const
Fill copy numbers of current branch nodes.
TGeoStateInfo * GetInfo()
Get next state info pointer.
Bool_t HasIdArray() const
Bool_t CdDown(Int_t index)
Make daughter INDEX of current node the active state. Compute global matrix.
void CdUp()
Make mother of current node the active state.
void GetBranchNames(Int_t *names) const
Fill names with current branch volume names (4 char - used by GEANT3 interface).
TGeoHMatrix * GetCurrentMatrix() const
void ReleaseInfo()
Release last used state info pointer.
Bool_t RestoreState(Int_t &nmany, TGeoCacheState *state, Double_t *point=0)
Pop next state/point from a backed-up state.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
TGeoMedium * GetMedium() const
Bool_t IsOverlapping() const
TGeoVolume * GetVolume() const
Int_t GetNdaughters() const
TGeoNode * GetDaughter(Int_t ind) const
virtual TGeoMatrix * GetMatrix() const =0
Int_t * GetOverlaps(Int_t &novlp) const
virtual void MasterToLocal(const Double_t *master, Double_t *local) const
Convert the point coordinates from mother reference to local reference system.
virtual Int_t GetIndex() const
virtual TGeoPatternFinder * GetFinder() const
virtual void MasterToLocalVect(const Double_t *master, Double_t *local) const
Convert a vector from mother reference to local reference system.
Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const
computes the closest distance from given point to this shape
Double_t Safety(Double_t point[3], Double_t safmax=1.E30)
Compute safety for the parallel world.
TGeoPhysicalNode * FindNextBoundary(Double_t point[3], Double_t dir[3], Double_t &step, Double_t stepmax=1.E30)
Same functionality as TGeoNavigator::FindNextDaughterBoundary for the parallel world.
TGeoPhysicalNode * FindNode(Double_t point[3])
Finds physical node containing the point.
Base finder class for patterns.
virtual TGeoNode * CdNext()
Make next node (if any) current.
virtual Bool_t IsOnBoundary(const Double_t *) const
virtual TGeoNode * FindNode(Double_t *, const Double_t *=0)
Int_t GetNext() const
Get index of next division.
Physical nodes are the actual 'touchable' objects in the geometry, representing a path of positioned ...
TGeoNode * GetNode(Int_t level=-1) const
Return node in branch at LEVEL. If not specified, return last leaf.
virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm)=0
virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const =0
virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const =0
virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const =0
virtual Bool_t Contains(const Double_t *point) const =0
static Double_t Tolerance()
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual Int_t GetNextNodeIndex() const
Bool_t IsActiveDaughters() const
Bool_t Contains(const Double_t *point) const
Int_t GetNdaughters() const
void FindOverlaps() const
loop all nodes marked as overlaps and find overlapping brothers
TGeoNode * GetNode(const char *name) const
get the pointer to a daughter node
Int_t GetIndex(const TGeoNode *node) const
get index number for a given daughter
TGeoPatternFinder * GetFinder() const
TGeoVoxelFinder * GetVoxels() const
Getter for optimization structure.
TGeoShape * GetShape() const
virtual Int_t GetCurrentNodeIndex() const
virtual Bool_t IsAssembly() const
Returns true if the volume is an assembly or a scaled assembly.
void InspectShape() const
Finder class handling voxels.
Double_t * GetBoxes() const
virtual Int_t * GetCheckList(const Double_t *point, Int_t &nelem, TGeoStateInfo &td)
get the list of daughter indices for which point is inside their bbox
virtual Int_t * GetNextVoxel(const Double_t *point, const Double_t *dir, Int_t &ncheck, TGeoStateInfo &td)
get the list of new candidates for the next voxel crossed by current ray printf("### GetNextVoxel\n")...
virtual void Voxelize(Option_t *option="")
Voxelize attached volume according to option If the volume is an assembly, make sure the bbox is comp...
Bool_t IsSafeVoxel(const Double_t *point, Int_t inode, Double_t minsafe) const
Computes squared distance from POINT to the voxel(s) containing node INODE.
Bool_t NeedRebuild() const
virtual void SortCrossedVoxels(const Double_t *point, const Double_t *dir, TGeoStateInfo &td)
get the list in the next voxel crossed by a ray
virtual const char * GetName() const
Returns name of object.
Int_t GetEntriesFast() const
TObject * UncheckedAt(Int_t i) const
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
Double_t Sqrt(Double_t x)
Short_t Min(Short_t a, Short_t b)
Statefull info for the current geometry level.
#define snext(osub1, osub2)