next up previous contents
Next: 4.3.9 SUBROUTINE ZDBREM(LAYLIS, PP, Up: 4.3 Patch SGVDETSIM : Previous: 4.3.7 SUBROUTINE ZDDHIT(PIN, VIN,   Contents


4.3.8 SUBROUTINE ZDKLCL( LAYLIS) : KiLl Calorimter Layers

This routine removes all layers from the first calorimeter traversed by the track and outwards.

ARGUMENTS:
INPUT :
     LAYLIS : List of detector layers hit by particle :
              LAYLIS(1,i) = number of the i:th hit layer.
                            LAYLIS(2,i) tells if it is a  plane
                            or a cylinder, if it measures or not,
                            and if it is the reference layer.
              LAYLIS(2,i) = 0  : mathematical layer : no material,
                                 no measurement. Ignored in all
                                 calculations
                            1  : seen by a cylinder
                            2  : seen by a plane
                            -1 : particle went through a cylinder, but
                                 was not seen by the detector.
                            -2 : particle went through a plane, but
                                 was not seen by the detector.
                            10 : the layer is a reference cylinder
                            20 : the layer is a reference plane
              LAYLIS(3,i) = No. of radiation lengths in layer.
              LAYLIS(1,i) = -1 -> end of list.
OUTPUT :
     LAYLIS : as above, but modified to remove layers beyond
              first calorimeter layer (including that layer).
IMPLICIT INPUTS:
    none
IMPLICIT OUTPUTS:
    none
CALLED BY :
ZDETSI, DETector SImulation (see 4.3.1).

CALLED ROUTINE(S):
ZTISCB (see 4.4.26)

(To check if layer IS a Calorimeter (Barrel))

ZTISCF (see 4.4.27)

(To check if layer IS a Calorimeter (Forward))

ZDELLY (see 4.3.16)

(To DELete LaYers)

SIDE EFFECTS:
none

AUTHORS:
M. Berggren, UFRJ

CREATION DATE:
03-may-1996



Mikael Berggren 2003-03-27