next up previous contents
Next: 4.3.20 SUBROUTINE ZDCCCC(ICAL,CTYP,CELLCENT,SHOAX) : Up: 4.3 Patch SGVDETSIM : Previous: 4.3.18 SUBROUTINE ZDCLSA (ICAL,CTYP,SHOAXT,SHOAX)   Contents


4.3.19 SUBROUTINE ZDCCVL(ICAL,CTYP,SHOAX,VAL) : Calorimeter Cell VaLue

This routine returns the correct two coordinate values to figure out what calorimeter module a particle will hit

ARGUMENTS:
INPUT :
    ICAL : number of the calorimeter.
    CTYP  : +ve : Cylindrical detector.
            -ve : Plane detector.
    SHOAX  : Shower axis and direction :
                (1) First seen impactpoint (barrel : Rphi, forward : x)
                (2) Second  "       "      (barrel : z, forward : y)
                (3) Seen shower theta angle (NOT USED HERE !)
                (4) Seen shower phi angle   (NOT USED HERE !)
OUTPUT :
    VAL(1:2) : the first two values of SHOAX, transformed into the
               coordinates that the calorimter has its modules
               described by, ie :
      Barrel :
         (phi,z)  (type=1) or (phi,theta) (type=2)
      Forward :
         (phi,R)  (type=1) or (x,y) (type=2)
IMPLICIT INPUTS:
    none.
IMPLICIT OUTPUTS:
    none.
CALLED BY :
ZDCALO, CALOrimeter simulation (see 4.3.17).

CALLED ROUTINE(S):
ZTCSMC (see 4.4.30)

(To get Calorimeter Shower Meassurement Code)

ZTCRAD (see 4.4.17)

(To get Cylinder RADius.)

SIDE EFFECTS:
none.

AUTHORS:
M.Berggren,CERN

CREATION DATE:
17-Aug-1998



Mikael Berggren 2003-03-27