next up previous contents
Next: 4.4 Patch SGVTRKER : Up: 4.3 Patch SGVDETSIM : Previous: 4.3.19 SUBROUTINE ZDCCVL(ICAL,CTYP,SHOAX,VAL) :   Contents


4.3.20 SUBROUTINE ZDCCCC(ICAL,CTYP,CELLCENT,SHOAX) : Calorimeter Cell Centre Coordinates

This routine returns the correct two coordinate of the centre of a calorimeter module.

ARGUMENTS:
INPUT :
    ICAL : number of the calorimeter.
    CTYP  : +ve : Cylindrical detector.
            -ve : Plane detector.
    CELLCENT : coordinates of the cell centre in the system
               in which the calormiter is modular
               described by, ie :
      Barrel :
         (phi,z)  (type=1) or (phi,theta) (type=2)
      Forward :
         (phi,R)  (type=1) or (x,y) (type=2)
OUTPUT :
    SHOAX  : Shower axis and direction :
                (1) First module centre    (barrel : Rphi, forward : x)
                (2) Second  "       "      (barrel : z, forward : y)
                (3) Seen shower theta angle
                (4) Seen shower phi angle
              (The shower-axis direction is just the direction of the
              line from the origin to the shower start-point)
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.)

ZTPLAZ (see 4.4.20)

(To get a PLAne Z)

VMOD
(CERNLIB routine)

SIDE EFFECTS:
none.

AUTHORS:
M.Berggren,CERN

CREATION DATE:
17-Aug-1998



Mikael Berggren 2003-03-27