12 #ifndef ROOT_TGeoNavigator 13 #define ROOT_TGeoNavigator 19 #ifndef ROOT_TGeoNodeCache 177 fPoint[0]=
x; fPoint[1]=
y; fPoint[2]=
z;}
179 fLastPoint[0]=
x; fLastPoint[1]=
y; fLastPoint[2]=
z;}
182 fDirection[0]=
nx; fDirection[1]=
ny; fDirection[2]=nz;}
211 #ifndef ROOT_TObjArray Int_t fNmany
current geometry level;
Int_t GetCurrentNodeId() const
Returns a fixed ID for current physical node.
const Double_t * GetLastPoint() const
void GetBranchNames(Int_t *names) const
Fill volume names of current branch into an array.
Bool_t IsEntering() const
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...
Bool_t GotoSafeLevel()
Go upwards the tree until a non-overlapping node.
void PopDummy(Int_t ipop=9999)
TGeoNodeCache * fCache
current geometry
The manager class for any TGeo geometry.
TGeoNode * GetNextNode() const
Bool_t IsCurrentOverlapping() const
void SetCldirChecked(Double_t *dir)
void SetOutside(Bool_t flag=kTRUE)
TGeoNode * InitTrack(const Double_t *point, const Double_t *dir)
Initialize current point and current direction vector (normalized) in MARS.
Bool_t PopPath(Int_t index)
Geometrical transformation package.
TGeoNavigator()
path to current node
TGeoManager * fGeometry
flag that last geometric step was null
const Double_t * GetNormal() const
Int_t fOverlapMark
current size of fOverlapClusters
Double_t fSafety
step to be done from current point and direction
void GetBranchOnlys(Int_t *isonly) const
Fill node copy numbers of current branch into an array.
TGeoNode * fCurrentNode
current volume
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
Int_t GetSafeLevel() const
Go upwards the tree until a non-overlapping node.
Int_t GetNodeId() const
Get unique node id.
Double_t GetLastSafety() const
void TopToMaster(const Double_t *top, Double_t *master) const
Convert coordinates from top volume frame to master.
Bool_t IsStepEntering() const
Bool_t fIsOnBoundary
flag that current point is outside geometry
Matrix class used for computing global transformations Should NOT be used for node definition...
TGeoNode * FindInCluster(Int_t *cluster, Int_t nc)
Find a node inside a cluster of overlapping nodes.
void SetLastSafetyForPoint(Double_t safe, const Double_t *point)
Double_t GetSafeDistance() const
void MasterToLocalBomb(const Double_t *master, Double_t *local) const
TGeoHMatrix * fDivMatrix
current pointer to cached global matrix
TGeoNodeCache * GetCache() const
const Double_t * GetCurrentPoint() const
Double_t fCldir[3]
cosine of incident angle on current checked surface
Double_t fDirection[3]
current point
TGeoNode * fLastNode
top physical node
void LocalToMasterBomb(const Double_t *local, Double_t *master) const
Local point converted to master frame defined by current matrix and rescaled with bomb factor...
Int_t fNextDaughterIndex
number of overlapping nodes on current branch
TGeoHMatrix * fCurrentMatrix
backup state
Double_t fNormal[3]
last computed safety radius
void InspectState() const
Inspects path and all flags for the current state.
void DoRestoreState()
Restore a backed-up state without affecting the cache stack.
virtual ~TGeoNavigatorArray()
void CdNode(Int_t nodeid)
Change current path to point to the node having this id.
void MasterToTop(const Double_t *master, Double_t *top) const
Convert coordinates from master volume frame to top.
void LocalToMasterVect(const Double_t *local, Double_t *master) const
Local vector converted to master frame defined by current matrix.
TGeoNavigator & operator=(const TGeoNavigator &)
assignment operator
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.
#define ClassDef(name, id)
Int_t GetThreadId() const
void PopDummy(Int_t ipop=9999)
Bool_t fIsNullStep
flag that a new point is in the same node as previous
TGeoVolume * GetCurrentVolume() const
TGeoNavigator * GetCurrentNavigator() const
void SetStartSafe(Bool_t flag=kTRUE)
Bool_t CheckPath(const char *path) const
Check if a geometry path is valid without changing the state of the navigator.
Special pool of reusable nodes.
Bool_t PopState(Int_t &nmany, Double_t *point=0)
Pop next state/point from heap.
void ResetState()
Reset current state flags.
void SetStep(Double_t step)
TGeoNode * SearchNode(Bool_t downwards=kFALSE, const TGeoNode *skipnode=0)
Returns the deepest node containing fPoint, which must be set a priori.
void CdTop()
Make top level node the current node.
void LocalToMasterBomb(const Double_t *local, Double_t *master) const
Bool_t IsSameLocation() const
void GetBranchNumbers(Int_t *copyNumbers, Int_t *volumeNumbers) const
Fill node copy numbers of current branch into an array.
TGeoNode * FindNextBoundaryAndStep(Double_t stepmax=TGeoShape::Big(), Bool_t compsafe=kFALSE)
Compute distance to next boundary within STEPMAX.
TGeoHMatrix * GetCurrentMatrix() const
void SetLastSafetyForPoint(Double_t safe, Double_t x, Double_t y, Double_t z)
void BuildCache(Bool_t dummy=kFALSE, Bool_t nodeid=kFALSE)
Builds the cache for physical nodes and global matrices.
Bool_t cd(const char *path="")
Browse the tree of nodes starting from top node according to pathname.
void SetCurrentPoint(const Double_t *point)
Double_t Safety(Bool_t inside=kFALSE)
Compute safe distance from the current point.
Int_t GetNextDaughterIndex() const
void LocalToMaster(const Double_t *local, Double_t *master) const
const Double_t * GetCurrentDirection() const
const Double_t * GetCldirChecked() const
Bool_t IsStartSafe() const
TGeoNavigator * fCurrentNavigator
const Double_t * GetCldir() const
TGeoHMatrix * fGlobalMatrix
current stored global matrix
void MasterToLocal(const Double_t *master, Double_t *local) const
Point in master frame defined by current matrix converted to local one.
Int_t GetVirtualLevel()
Find level of virtuality of current overlapping node (number of levels up having the same tracking me...
Double_t fCldirChecked[3]
unit vector to current closest shape
void MasterToLocalVect(const Double_t *master, Double_t *local) const
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 ...
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 IsStepExiting() const
void SafetyOverlaps()
Compute safe distance from the current point within an overlapping node.
Bool_t fSearchOverlaps
internal array for overlaps
TGeoManager * fGeoManager
Double_t fLastSafety
safety radius from current point
void SetLastPoint(Double_t x, Double_t y, Double_t z)
Int_t GetStackLevel() const
Bool_t fIsStepEntering
flag that current track is about to leave current node
TGeoHMatrix * GetDivMatrix() const
void SetCurrentPoint(Double_t x, Double_t y, Double_t z)
virtual ~TGeoNavigator()
Destructor.
void SetCurrentDirection(Double_t nx, Double_t ny, Double_t nz)
Bool_t PopPoint(Int_t index)
Int_t fLevel
thread id for this navigator
Int_t PushPath(Int_t startlevel=0)
Double_t fPoint[3]
unit vector to current checked shape
TGeoNode * GetNode() const
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.
TGeoNode * fNextNode
last searched node
TString fPath
current local matrix of the selected division cell
TGeoNode * GetMother(Int_t up=1) const
void SetCurrentDirection(const Double_t *dir)
void CdUp()
Go one level up in geometry.
TGeoNavigator * SetCurrentNavigator(Int_t inav)
Int_t PushPoint(Int_t startlevel=0)
Bool_t IsNullStep() const
Bool_t fIsEntering
flag a safe start for point classification
TGeoNode * FindNextBoundary(Double_t stepmax=TGeoShape::Big(), const char *path="", Bool_t frombdr=kFALSE)
Find distance to next boundary and store it in fStep.
TGeoVolume * fCurrentVolume
cache of states
void LocalToMasterVect(const Double_t *local, Double_t *master) const
Bool_t fIsSameLocation
flag that current point is on some boundary
static RooMathCoreReg dummy
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 * GetMother(Int_t up=1) const
void forward(const LAYERDATA &prevLayerData, LAYERDATA &currLayerData)
apply the weights (and functions) in forward direction of the DNN
Int_t PushState(Bool_t ovlp, Int_t ntmany=0, Int_t startlevel=0, Double_t *point=0)
Push current state into heap.
Int_t fThreadId
last point for which safety was computed
TGeoNavigatorArray(TGeoManager *mgr)
void ResetAll()
Reset the navigator.
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...
void MasterToLocalVect(const Double_t *master, Double_t *local) const
Vector in master frame defined by current matrix converted to local one.
TGeoHMatrix * GetHMatrix()
Return stored current matrix (global matrix of the next touched node).
Mother of all ROOT objects.
Double_t fLastPoint[3]
current direction
you should not use this method at all Int_t Int_t z
Bool_t fIsStepExiting
flag that next geometric step will enter new volume
Class providing navigation API for TGeo geometries.
void CdNext()
Do a cd to the node found next by FindNextBoundary.
void SetCheckingOverlaps(Bool_t flag=kTRUE)
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
TGeoHMatrix * GetMotherMatrix(Int_t up=1) const
void MasterToLocalBomb(const Double_t *master, Double_t *local) const
Point in master frame defined by current matrix converted to local one and rescaled with bomb factor...
Class storing the state of the cache at a given moment.
Int_t GetStackLevel() const
TGeoNode * GetCurrentNode() const
TGeoNode * FindNode(Bool_t safe_start=kTRUE)
Returns deepest node containing current point.
void LocalToMaster(const Double_t *local, Double_t *master) const
Local point converted to master frame defined by current matrix.
Int_t fOverlapSize
next daughter index after FindNextBoundary
Bool_t fIsExiting
flag if current step just got into a new node
TGeoNode * fForcedNode
next node that will be crossed
Int_t GetCurrentNodeId() const
Bool_t IsOnBoundary() const
void DoBackupState()
Backup the current state without affecting the cache stack.
Double_t * FindNormalFast()
Computes fast normal to next crossed boundary, assuming that the current point is close enough to the...
Bool_t fStartSafe
flags the type of the current node
TGeoVolume * GetVolume() const
const char * GetPath() const
Get path to the current node in the form /node0/node1/...
Bool_t IsCheckingOverlaps() const
TGeoNode * CrossDivisionCell()
Cross a division cell.
void MasterToLocal(const Double_t *master, Double_t *local) const
TGeoHMatrix * GetCurrentMatrix() const
Int_t * fOverlapClusters
current recursive position in fOverlapClusters
TGeoNode * fTopNode
current node
TGeoCacheState * fBackupState
current point is supposed to be inside this node
Bool_t fCurrentOverlapping
flag set when an overlapping cluster is searched
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)...
TGeoHMatrix * GetMotherMatrix(Int_t up=1) const