next up previous contents
Next: 4.3.18 SUBROUTINE ZDCLSA (ICAL,CTYP,SHOAXT,SHOAX) Up: 4.3 Patch SGVDETSIM : Previous: 4.3.16 SUBROUTINE ZDELLY(REFPSD, LL,   Contents


4.3.17 SUBROUTINE ZDCALO(IGEOM, PP, VERT, DSTMAX, CODE, SHOAX, PSMEAR, ESMEAR, CDSEEN, TCAL, IERR) : CALOrimeter simulation

Calorimeter simulation. The particle with momentum PP originating from the point VERT will be followed to the intersection with the calorimeters, and depending on what type it is (electron or gamma on one hand, hadron on the other) the responce of the correct calorimeter is simulated. Note that hadrons never inter- act in the em-calorimeters, and em-showers never leaks.

ARGUMENTS:
INPUT :
    IGEOM  : Detector geometry number
    PP     : Momentum of particle
    VERT   : Production point of particle
    DSTMAX : Maximum track-length of particle (eg. for decaying particles)
    CODE   : True JETSET code of particle
OUTPUT :
    NSHOW  : Number of showers created by this particle
    For each of these showers :
    SHOAX  : Shower axis and direction :
                (1) First seen impactpoint (barrel : Rphi, forward : x)
                (2) Second  "       "      (barrel : z, forward : y)
                (3) Seen shower theta angle
                (4) Seen shower phi angle
    PSMEAR : Seen momentum
    ESMEAR : Seen energy
    CDSEEN : Seen JETSET code of particle. SET TO 0 IF PARTICLE
             NOT SEEN.
    TCAL   : Code of calorimeter seeing the shower. +ve -> barrel;
             -ve -> forward. Absoulute value is the (internal) number
             of the calorimeter.

    IERR   : Error code. 0 : no error
                         1 : particle hits calorimeter of right type,
                             but was not seen due to inefficicy
                         2 : particle only hits calorimeter of wrong
                             type
                         3 : particle hits no calorimeter
                         4 : particle decays before hitting any calorimeter
                         5 : bellow energy threshold
                         6 : unknow particle
                         7 : Particle seen, but only as a mip.
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 number.)

ZURECT (see 4.7.14)

(To get a RECTANGULAR random number.)

ZTCALO (see 4.4.4)

(To Track a particle to intersections with CALOrimeters)

ZTCEFF (see 4.4.36)

(To get Calorimeter EFFeiciency)

ZTCTHR (see 4.4.35)

(To get Calorimeter THResholds)

ZTCRES (see 4.4.37)

(To get Calorimeter resolution )

ZTCMSI (see 4.4.40)

(To get Calorimeter Mip ave. SIgnal)

ZTCMWI (see 4.4.41)

(To get Calorimeter Mip resp. WIdth)

ZTCTHM (see 4.4.38)

(To get Calorimeter THReshold for Mips)

ZTCEFM (see 4.4.38)

(To get Calorimeter EFficiency for Mips)

VMOD
(CERNLIB routine)

SIDE EFFECTS:
none.

AUTHORS:
M. Berggren, UFRJ M. A. Do Vale, UFRJ

CREATION DATE:
06-APR-1995


next up previous contents
Next: 4.3.18 SUBROUTINE ZDCLSA (ICAL,CTYP,SHOAXT,SHOAX) Up: 4.3 Patch SGVDETSIM : Previous: 4.3.16 SUBROUTINE ZDELLY(REFPSD, LL,   Contents
Mikael Berggren 2003-03-27