next up previous contents
Next: 4.3.2 SUBROUTINE ZDORD(MODE, STEER) Up: 4.3 Patch SGVDETSIM : Previous: 4.3 Patch SGVDETSIM :   Contents


4.3.1 SUBROUTINE ZDETSI(I, STEER, IERR) : DETector SImulation

Simulate detector response to the event stored in /LUJETS/ by the event-generator, and return measured track parameters etc. (or detector hit-pattern) in /ZXEVT/.

ARGUMENTS:
INPUT :
    I  : Event number.
    STEER : Steering info. The detector simulation uses row 3:
                  STEER(3,0)   : Number of detector setups.
                         ,1)   : Number of layers to generate hits in.
                         ,2)   : 0.0 -> don't create track-parameters (only
                                 px,py,py)
                                 1.0 -> generate track-parameters.
OUTPUT :
    STEER(1,0) : 0.0 if event rejected, else 1.0 or -2.0 (the latter
                 means "stop run")
    IERR  : Error flag.
IMPLICIT INPUTS:
    From /LUJETS/ : NLUND, number of entries; P, 4-vectors of
       particles; V, production points of particles; K, info on particles.

    From /ZXEVT/ : ANC, Ancestor number of track; ICL , History class
       of track.

    From /ZXSTE/ : NEWAMV, flag to load average mean vertex.
IMPLICIT OUTPUTS:
    To /ZXEVT/ :  NTRK, number of stable particles; NHIT, Number of hits
       in detector, if requested; TRACK, True info on track;
       TKRP, Seen track parameters at perigee or SMEARED_TRACK, seen track, as
       requested; if requested : either TKR_AND_HIT, track parameters and
       hits at detector layers, or HIT, Detector hit pattern;
       XYZV, average vertex position; SIGV, vertex error.

    If interactions in the detector is simulated :
    To /LUJETS/ : NLUND, number of entries; P, 4-vectors of
       particles; V, production points of particles; K, info on particles.
    To /ZXEVT/ : ANC, Ancestor number of track; ICL , History class
       of track.
CALLED BY :
ZXCEST, Create the Event STructure (see 4.1.5).

CALLED ROUTINE(S):
ZTCNBL (see 4.4.13)

(To get number of layers in barrel.)

ZTPNBL (see 4.4.14)

(To get number of layers in forward.)

ZTTDST (see 4.4.9)

(To Follow Track helix a DiSTance)

ZDTRSP (see 4.3.3)

(To TRanSPose a matrix.)

ZDDHIT (see 4.3.7)

(To get Detector HITs (if VDSIM))

ZAMVAL (see 4.6.9)

(To get Mass VALue from particle code (If VDSIM patchy sel:ed))

ZTTRAK (see 4.4.1)

(To TRAcK a particle through the detector)

ZDKLCL (see 4.3.8)

(To KiLl Calorimter Layers)

ZDBREM (see 4.3.9)

(To generate BREMsstrahlung)

ZTERRM (see 4.4.2)

(To calculate ERRor Matrix)

ZDSMTP (see 4.3.6)

(To SMear Track Parameters)

PXTCPX (see 4.7.4)

(To transform Track parameters on Cylinder to PXpypz)

ZDEFFI (see 4.3.4)

(To simulate Detection EFFIciency.)

ZDIDEN (see 4.3.5)

(To simulate particle IDENtification.)

ZTFOLN (see 4.4.3)

(To FOLlow Neutral particle)

ZDPAIR (see 4.3.10)

(To generate PAIR production)

ZDCALO (see 4.3.17)

(To do CALOrimeter simulation.)

VZERO,VSCALE,UCOPY,VMOD,VDOTN
(CERNLIB routines)
KLU
(JETSET routine.)

SIDE EFFECTS:
none.

AUTHORS:
M. Berggren, UFRJ

CREATION DATE:
06-APR-1995


next up previous contents
Next: 4.3.2 SUBROUTINE ZDORD(MODE, STEER) Up: 4.3 Patch SGVDETSIM : Previous: 4.3 Patch SGVDETSIM :   Contents
Mikael Berggren 2003-03-27