5 * Revision 1.1.1.1 1995/10/24 10:20:04 cernlib
9 #include "geant321/pilot.h"
10 #if defined(CERNLIB_OLDNAME)
11 *CMZ : 3.21/02 29/03/94 15.41.44 by S.Giani
13 *=== zeroin ===========================================================*
17 #include "geant321/dblprc.inc"
18 #include "geant321/dimpar.inc"
19 #include "geant321/iounit.inc"
21 *======================================================================*
23 * Created by Alfredo Ferrari on 11 july 1990 INFN - Milan *
25 * Last change on 23-apr-93 by Alfredo Ferrari *
27 * This routine zeroes a few arrays, and initialize some data *
29 *======================================================================*
31 #include "geant321/paprop.inc"
32 #include "geant321/part2.inc"
34 * +-------------------------------------------------------------------*
35 * | Set the "effective" masses for particles
37 * | +----------------------------------------------------------------*
38 * | | Baryons: "effective" mass = actual one - baryon
39 * | | number x proton mass (final state of any
41 IF ( IIBAR (I) .GT. 0 ) THEN
42 AAMDSC (I) = AAM (I) - IIBAR (I) * AAM (1)
44 * | +----------------------------------------------------------------*
45 * | | Antibaryons: "effective mass" = actual mass +
46 * | | |baryon number| x proton mass
47 ELSE IF ( IIBAR (I) .LT. 0 ) THEN
48 AAMDSC (I) = AAM (I) - IIBAR (I) * AAM (1)
50 * | +----------------------------------------------------------------*
51 * | | Mesons: "effective" mass = actual mass
56 * | +----------------------------------------------------------------*
59 * +-------------------------------------------------------------------*
60 * Electron: "effective" mass = 0
62 * Positron: "effective" mass = 2 x mass
63 AAMDSC (4) = 2.D+00 * AAM (4)
64 * Neutron: "effective" mass = 0 (it should be taken into account the
65 * neutrino energy when decaying)
67 * Muon+: "effective" mass = muon mass + positron mass
68 AAMDSC (10) = AAM (10) + AAM (4)
69 * Muon-: "effective" mass = muon mass - electron mass
70 * (final stable state)
71 AAMDSC (11) = AAM (11) - AAM (3)
72 * Tau+: "effective" mass = Tau mass + positron mass
73 AAMDSC (131) = AAM (131) + AAM (4)
74 * Tau-: "effective" mass = Tau mass - electron mass
75 * (final stable state)
76 AAMDSC (132) = AAM (132) - AAM (3)
77 * +-------------------------------------------------------------------*
78 * | Set the "effective" masses for particles in Paprop
81 * | +----------------------------------------------------------------*
84 AMDISC (I) = AAMDSC (KP)
86 ICHRGE (I) = IICH (KP)
89 * | +----------------------------------------------------------------*
91 ELSE IF ( I .NE. 30 ) THEN
97 * | +----------------------------------------------------------------*
100 AMDISC (I) = AAMDSC (1)
102 ICHRGE (I) = IICH (1)
106 * | +----------------------------------------------------------------*
107 * | +----------------------------------------------------------------*
108 * | | Set the particle spin (in 1/2 units)
109 * | | If the particle is a hadron :
110 * | | mesons --> 0 spin
111 * | | baryons,antibaryons --> 1/2 spin
113 * | | e-/+,mu-/+,vu,vubar --> 1/2 spin
114 * | | photons --> 1 spin
115 IF ( LHADRO (I) .AND. IIBAR (KP) .EQ. 0 ) THEN
118 * | +----------------------------------------------------------------*
128 * | +----------------------------------------------------------------*
131 * +-------------------------------------------------------------------*
132 *=== end of subroutine zeroin =========================================*