This routine tracks a particle with momentum p from v to the last detector element (cylinder) inside REND. It returns the momentum (pend) and position (vend) at this point. It also returns the TKR parameters at the point, the radius of the detector cylinder and the integrated radiation length over the path from v to vend.
P : Momentum of track V : Position where P is given REND : The routine will return the values on the last detector cylinder inside REND. If REND=0, the perigee parameters will be returned. FIRST : TRUE if first call for this track. SIPRP : true IP in R-Phi (input if FIRST = FALSE on input) IPZ : true IP in Z (input if FIRST = FALSE on input) PHI0 : Phi angle to perigee point in R-phi plane (input if FIRST = FALSE on input) REQX0 : TRUE if the integrated number of radiation length between V and VEND is requested. IGEOM : Index of the detector description to be used.
FIRST : set to FALSE if any tracking done for this track. SIPRP : true IP in R-Phi (output if FIRST = TRUE on input) IPZ : true IP in Z (output if FIRST = TRUE on input) PHI0 : Phi angle to perigee point in R-phi plane (output if FIRST = TRUE on input) PEND: Momentum of track (if ERROR <>0 then PEND=P) VEND : Position where PEND is given (if ERROR <>0 then VEND=V) DST : Distance travled from V to VEND. RCYL : Radius of cylinder on which the result is. If RCYL=0, the perigee parameters are returned. TRACK : TKR parameters for the track. for the track X0INT : Integrated number of radiation-lengths along the track negative if tracking was done from the outside going in. ERROR : error flag : 0 - no error 1 - no intersection in barrel. 2 - track turns back. 3 - other error.
from /ZTBAR/ : the radii and lateral extents of the barrel detectors from /ZTGPT/ : Pointers in /ZTBAR/ From /PXCONS/ : BMAG, the magnetic field; CONSA, Speed of light.
none
(To get Track intersection with CYLinder.)