next up previous contents
Next: 4.4.7 SUBROUTINE ZTTISP(P, V, Up: 4.4 Patch SGVTRKER : Previous: 4.4.5 SUBROUTINE ZTTISC(P, V,   Contents


4.4.6 SUBROUTINE ZTTCYL(P, V, SRAD, FIRST, SIPRP, IPZ, PHI0, PEND, VEND, DST, TRACK, ERROR) : Track intersect with CYLinder

This routine tracks a particle with momentum p from v to the cylindirical surface with radius SRAD. It returns the momentum (pend) and position (vend) at this point. It also returns the TKR parameters at the point.

ARGUMENTS:
INPUT :
    P : Momentum of track
    V  : Position where P is given
    SRAD : Radius at which track parameters are requested.
           If SRAD=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)
    IPZ : true IP in Z (input if FIRST = FALSE)
    PHI0 : Phi angle to perigee point in R-phi plane
            (input if FIRST = FALSE)
OUTPUT :
    SIPRP : 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.
    ERROR : error flag :
             0 - no error
             1 - no intersection in barrel.
             2 - track turns back.
             3 - other error.
IMPLICIT INPUTS:
    From /PXCONS/ : BMAG, the magnetic field; CONSA, Speed of light.
IMPLICIT OUTPUTS:
    none
CALLED BY :
ZTTRAK, TRAcK a particle through the detector (see 4.4.1). ZTCALO, Track to CALOrimeter (see 4.4.4). ZTTISC, TRacK InterSection with Cylinder (see 4.4.5). ZDDHIT, TRacK InterSeCtion with detector (see 4.3.7).

CALLED ROUTINE(S):
ZTREFL (see 4.4.12)

(To REFLect track in x-y plane.)

ZTTRIP (see 4.4.10)

(To get TRue Impact Parameters.)

ZUI2PI (see 4.7.2)

(To bring angle In the range 0 to 2PI.)

ZUINPI (see 4.7.3)

(To bring angle IN the range 0 to PI.)

PXTCPX (see 4.7.4)

(To transform Track parameters on Cylinder to PXpypz)

SIDE EFFECTS:
none

AUTHORS:
M. Berggren, LAL

CREATION DATE:
27-jul-1992


next up previous contents
Next: 4.4.7 SUBROUTINE ZTTISP(P, V, Up: 4.4 Patch SGVTRKER : Previous: 4.4.5 SUBROUTINE ZTTISC(P, V,   Contents
Mikael Berggren 2003-03-27