This routine tracks a particle with momentum p from v to the plane surface at z coordinate ZPLA. It returns the momentum (pend) and position (vend) at this point. It also returns the TKR parameters at the point.
P : Momentum of track V : Position where P is given ZPLA : z at which track parameters are requested. If ZPLA=0, the perigee parameters will be returned. FIRST : TRUE if first call for this track. IPRP : true IP in R-Phi (input if FIRST = FALSE) IPZ : true IP in Z (input if FIRST = FALSE) PHI0 : Phi angle to perigee point in R-phi plane (input if FIRST = FALSE)
IPRP : true IP in R-Phi (output if FIRST = TRUE) IPZ : true IP in Z (output if FIRST = TRUE) PHI0 : Phi angle to perigee point in R-phi plane (output if FIRST = TRUE) PEND: Momentum of track (if ERROR <>0 then PEND=P) VEND : Position where PEND is given (if ERROR <>0 then VEND=V) DST : Distance along track helix from V to VEND TRACK : TKR parameters for the track. for the track ERROR : error flag : 0 - no error 1 - no intersection in barrel. 2 - track turns back. 3 - other error.
From /PXCONS/ : BMAG, the magnetic field; CONSA, Speed of light.
none
(To REFLect track in x-y plane.)
(To get TRue Impact Parameters.)
(To bring angle In the range 0 to 2PI.)
(To bring angle IN the range 0 to PI.)
(To transform Track parameters on Plan to PXpypz)
(To get Track intersection with CYLinder.)