next up previous contents
Next: 4.3.7 SUBROUTINE ZDDHIT(PIN, VIN, Up: 4.3 Patch SGVDETSIM : Previous: 4.3.5 SUBROUTINE ZDIDEN(CDSEEN, PP,   Contents


4.3.6 SUBROUTINE ZDSMTP( TYPSUR, CGIVEN, TPAR, ERRARR, PAR, ERROR) : SMear Track Parameters

This routine smears the track parameters in TPAR according to the error matrix ERRARR (with a 5-dim gaussian).

ARGUMENTS:
INPUT :
    TYPSUR : CHARACTER - type of surface to wich track should be propagated
            'CYL' : Cylinder
            'PLANE' : Plane
            'PERI' : To perigee
    CGIVEN : Cooridinate where TPAR is given (R or z depending on TYPSUR).
             Ignored if TYPSUR = PERI
    TPAR & ERRARR : true TKR parameters with error matrix (weight matrix if
                   parameters are at the perigee, else covariance matrix)
OUTPUT :
    PAR : smeared TKR parameters.
    ERROR : error flag :
             0 - no error
             1 - intersection with cylinder just outside the
                 requested one in z. Parameters on this cylinder
                 returned instead.
             2 - no intersection, perigee parameters returned
             3 - other error, no parameters returned
IMPLICIT INPUTS:
    none
IMPLICIT OUTPUTS:
    none
CALLED BY :
ZDETSI, DETector SImulation (see 4.3.1).

CALLED ROUTINE(S):
ZUGAUS (see 4.7.13)

(To get a GAUSsian random numbers.)

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.)

ZTINVM (see 4.4.11)

(To invert a matrix (5X5))

VZERO,UCOPY,TRCHLU
(CERNLIB routines)

SIDE EFFECTS:
none

AUTHORS:
M. Berggren, LAL

CREATION DATE:
27-jul-1992


next up previous contents
Next: 4.3.7 SUBROUTINE ZDDHIT(PIN, VIN, Up: 4.3 Patch SGVDETSIM : Previous: 4.3.5 SUBROUTINE ZDIDEN(CDSEEN, PP,   Contents
Mikael Berggren 2003-03-27