Routine to return the geometry of a given sub-detector
NAME : Name of the sub-detector ILAY : The layer number. If =0, then the fiirst layer is used.
GEOPAR(1:7) : Detector Geometry parameters: 1 : R (barrel) or z (forward) 2 : minimal z (barrel) or R (forward) 3 : maximal z (barrel) or R (forward) For calorimeters also: 4 : type of position measurement of the calorimeter: 0 : Realy measures <>0 : Only module hit known, no shower axis direction Specifically: geopar(4) = 1 : modularity is in phi and z (barrel) or $\phi$ and R (forward) 2 : modularity is in phi and theta (barrel) or x and y (forward) 5 : minimal phi of the first module, if modules are modular in phi. The "first" module is the module that is closest to the x axis (counter- clockwise), but doesn't cross the x-axis. 6 : Number of modules in the first direction 7 : Number of modules in the second direction IDET : detector type: 1 : barrel tracking 2 : forward tracking 3 : barrel calorimeter 4 : forward calorimeter CALTYP : calorimeter type 0 : not a calorimeter 1 : Em calorimeter 2 : hadronic calorimeter 3 : dual-purpose calorimeter
From /ZTXRD/ : LAYNAM, list of layer-names; LAYSET, set of layers with a given name; DETTYP, detector-type for a given name.
none.
(To Check if number IN Set.)
(To get Cylinder RADius.)
(To get Cylinder ZED.)
(To get PLAne Z.)
(To get Plane RADius.)
(To get Calorimeter Shower Measurement Code.)
(To get Calorimeter First Cell Phi.)
(To get Calorimeter Number of CeLls.)
(To get Calorimeter TYPe.)