*** * gugeom10.f *** * SUBROUTINE UGEOM * *********************************************************************** * * * User routine to define geometry of detector * * * *********************************************************************** C COMMON/GCVOLU/NLEVEL,NAMES(15),NUMBER(15), +LVOLUM(15),LINDEX(15),INFROM,NLEVMX,NLDEV(15),LINMX(15), +GTRAN(3,15),GRMAT(10,15),GONLY(15),GLX(3) CHARACTER*4 NAMES C INTEGER IVOLU,IFIELD C C ---> Vectors real VMOTH(3)/4000.,2000.,4000./ real pTFPN(3)/24.5,100.,16./ real pEMCL(3)/30.,100.,45./ real VSCTS(3)/0.75,21.7,0.75/ ! vector of TOF-short (BOX) real VSCTL(3)/0.75,31.9,0.75/ ! vector of TOF-long (BOX) real VEMCL(3)/30.,100.,25./ ! vector of EMcal (BOX) real VHCMB(3)/24.,95.,1.0/ ! vector of TOF-frame (BOX) real VCRBN(3)/24.,95.,0.15/ ! vector of TOF-frame-Carbon (BOX) real VALM1(3)/24.3,0.65,2.05/ ! vector of TOF-frame-Aluminium1 (BOX) real VALM2(3)/23.5,0.8,3.1/ ! vector of TOF-frame-Aluminium2 (BOX) C real VALM3(3)/0.,0.,0./ ! vector of TOF-frame-Aluminium3 (BOX) real VPMTS(3)/0.,0.95,3.3/ ! vector of PMT (TUBE) real VMMTL(3)/1.04,1.09,2.1/ ! vector of u-metal (TUBE) C REAL FIELDM,TMAXFD,DMAXMS,DEEMAX,EPSIL,STMIN,UBUF(3) C C ---> Integer number of material integer tof_mate, lucite_mate, glass_mate, mumetal_mate integer cable_mate, pbglass_mate C C ---> Plastic (lucite) for cover plates (C5H8O2) --- real AP(3) /12.,1.,16./ real ZP(3) /6.,1.,8./ real WP(3) /5.,8.,2./ real DP /1.18/ C C ---> Borosilicate glass (PMT glass) [Pyrex] real AG(4)/16.0,28.086,10.81,22.99/ ! O,Si,B,Na real ZG(4)/8.,14.,5.,11./ real WG(4)/2.01,0.8,.24,.1/ ! 80% SiO2 12% B2O3 5% Na2O real DG/2.23/ C C ---> Cable real AC(4)/63.54,12.01,1.01,35.45/ ! Cu,C,H,Cl real ZC(4)/29.00,6.00,1.00,17.00/ real WC(4)/0.393,1.214,2.117,0.311/ ! 39.3% Cu 31.1% C2H3Cl 29.6% C2H4 real DC/1.936/ C C ---> Integer number of medium integer tof_med, lucite_med, glass_med, mumetal_med integer cable_med, pbglass_med C C ---> Parameter of position real YMMTL(6)/92.20,86.40,50.10,41.45,26.80,18.15/ ! Y-axis of metal real DXMMT(6)/0.,1.5,0.,0.,1.5,1.5/ ! DX of metal C integer IXTF, ITOF, JTOF, IXPM, IYPM, KOSU real XTOF, YTOF, ZTOF real XMET, YMET, ZMET real XPMT, YPMT, ZPMT * ---------------------------------------------------------- *** * * Define material * csn.. Stores the constants for the material IMATE in the data csn.. structire JMATE csn.. csn.. GSMATE(IMATE,CHNAMA,A,Z,DENS,RADL,ABSL,UBUF,NWBUF) csn.. csn.. IMATE: material number csn.. CHNAMA: material name csn.. A: atomic weight csn.. Z: atomic number csn.. DENS: density in g/cm*3 csn.. RADL: radiation length in cm csn.. ABSL: absorption length in cm (ignored) csn.. UBUF: array of NWBUF additional user parameters csn.. NWBUF: number of user words in UBUF csn.. csn.. csn.. Defines mixture or compound IMATE as composed by NMATE csn.. materials defined via the arrays A,Z and WMAT. csn.. Mixtures of compounds can also be defined. csn.. csn.. GSMIXT(IMATE,NAMATE,A,Z,DENS,NLMAT,WMAT*) csn.. csn.. IMATE: material number csn.. NAMATE: mixture name csn.. A: array of atomic weights csn.. Z: array of atomic numbers csn.. DENS: density in g/cm*3 csn.. NLMAT: number of elements in the mixture csn.. >0 WMAT: the proportion by weights csn.. <0 WMAT: the proportion by number of atoms csn.. * C c CALL GSMATE(101,'Scintillator $',6.670,3.60,1.18, c + 34.4,70.8,UBUF,3) ! define Scintillating material for TOF C C ---> define material for TOF C tof_mate=700 call GSMATE(tof_mate,'BC404 $',6.221,3.373,1.032, + 0.424E02,0.820E02,ubuf,nwbuf) C c lucite_mate=tof_mate+1 c CALL GSMIXT(lucite_mate,'Lucite $',AP,ZP,DP,-3,WP) C glass_mate=tof_mate+2 CALL GSMIXT(glass_mate,'Borosilicate$',AG,ZG,DG,-4,WG) C mumetal_mate=tof_mate+3 CALL GSMATE(mumetal_mate,'Fe $',55.85,26., 7.87, + 1.76,17.1,ubuf,nwbuf) C c cable_mate=cable_mate+4 c CALL GSMIXT(cable_mate,'Cable$',AC,ZC,DC,-4,WC) C pbglass_mate=800 CALL GSMATE(pbglass_mate,'S pb-glass',116.162,47.045,4.010, + 0.252E01,0.384E02,ubuf,nwbuf) *** * * Define tracking medium * csn.. assoiates a set of tracking parameters to a material, defining a csn.. so-called tracking medium. The routine stores the parameters of the csn.. tracking medium ITMED in the data structure JTMED. csn.. csn.. GSTMED(ITMED,NATMED,NMAT,ISVOL,IFIELD,FIELDM,TMAXFD,STEMAX, csn.. DEEMAX,EPSIL,STMIN,UBUF,NWBUF) csn.. csn.. ITMED: tracking medium number csn.. NATMED: tracking medium name csn.. NMAT: material number corresponding to ITMED csn.. ISVOL: sensitivity flag (<=0 not a sensitive volume) csn.. define 0 or 1 csn.. IFIELD: magnetic field flag csn.. 0=no magnetic, 1=strongly inhomogeneous,2=inhomogeneous, 3=uniform) csn.. FIELDM: maximum fiedl value in Kilogauss csn.. TMAXFD: max angu deviation due to the mag. field permitted in one step csn.. STEMAX: maximum step permitted (cm) csn.. DEFMAX: maximum fractional energy loss in one step (0