5 * Revision 1.1.1.1 1995/10/24 10:19:58 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.44 by S.Giani
15 *=== rchanv ===========================================================*
19 #include "geant321/dblprc.inc"
20 #include "geant321/dimpar.inc"
21 #include "geant321/iounit.inc"
23 #include "geant321/hadflg.inc"
24 #include "geant321/reac.inc"
25 #include "geant321/redver.inc"
26 #include "geant321/split.inc"
28 COMMON / FKABLT / AM (110), GA (110), TAU (110), ICH (110),
29 & IBAR (110), K1 (110), K2 (110)
30 * Note: 296 are the total number of energy at which data are tabulated
31 * (of course for the 17 reactions considered, depending on the
32 * reaction there could be different numbers of tabulated
34 * 268 is the number of possible exit channels
35 * Umo (ieii(ire)+ie) is the cms energy corresponding to the ieth
36 * energy at which data are tabulated for the reaction ire
37 * Plabf (ieii(ire)+ie) is the corresponding lab momentum
38 * Siin (ieii(ire)+ie) is the cross section
42 EQUIVALENCE (WK(1),SI(1))
43 C*** WEIGHTS FOR THE SAMPLING PROCEDURE (ADDED ONE TO EACH OTHER IN
44 C*** CORRESP. CHANNELS) SPECIFIC FOR NUCRIN ONLY
45 C*** CALCULATION OF THRESHOLD ENERGY OF THE REACTION CHANNELS
48 * +-------------------------------------------------------------------*
49 * | Loop on the possible reactions (pi+ p, .... )
51 * | Initial index for the exit channel sigmas/weights for reaction IRE
52 * | (wk(ire+1)-wk(ire+iee), weights at the various energies for the
53 * | first channel, wk(ire+(ik-1)*iee+ie), weight of the ikth channel
56 * | Number of energy tabulations for reaction ire
57 IEE=IEII(IRE+1)-IEII(IRE)
58 * | Number of exit channels of reaction ire
59 IKE=IKII(IRE+1)-IKII(IRE)
60 * | Index for the initial energy tabulation for reaction ire (this is
61 * | for index 1!!, ieii is for index 0)
63 * | Index for the initial exit channel of the reaction ire
64 * | (the initial channel is IIKI + 1)
66 * | +----------------------------------------------------------------*
67 * | | This loop checks the threshold (expressed in invariant mass)
68 * | | for the several reaction channels:
69 * | | Channels resulting in two exit particles/resonances are
70 * | | checked for Thresh >= m(1) + m(2)
71 * | | Channels resulting in only one resonance are checked for
72 * | | Thresh >= Min_j (m_j(1)+m_j(2)+m_j(3)), where the minimum
73 * | | is carried out looping over all possible decay channels j
74 * | | and now also looking for the mass of the resonance
77 INRK1 = NRK(1,IIKI+IK)
78 INRK2 = NRK(2,IIKI+IK)
80 * | | +-------------------------------------------------------------*
81 * | | | Two particles/resonances exit channels
82 IF ( INRK2 .GT. 0 ) THEN
84 THRESH (IIKI+IK) = AM111 + AM222
86 * | | +-------------------------------------------------------------*
87 * | | | One resonance exit channel
89 IF ( GA (INRK1) .GT. ANGLGB ) THEN
90 AM111 = AM111 - 5.D+00 * GA (INRK1)
97 * | | | +----------------------------------------------------------*
98 * | | | | Loop over the decay channels
99 DO 228 INKK=INRKK,INRKO
103 AMS = AM(INZK1)+AM(INZK2)-2.D+00*(GA(INZK1)+GA(INZK2))
104 IF (INZK3 .GT. 0) AMS =AMS+AM(INZK3)-2.D+00*GA(INZK3)
105 IF (AMSS .GT.AMS) AMSS=AMS
108 * | | | +----------------------------------------------------------*
109 AMS = MAX (AMSS,AM111)
110 IF ( AMS .LT. UMO(IEO) ) AMS = UMO (IEO)
111 THRESH (IIKI+IK) = AMS
114 * | | +-------------------------------------------------------------*
117 * | +----------------------------------------------------------------*
119 * | +----------------------------------------------------------------*
120 * | | Loop on the energy tabulations
123 PLASQ = PLABF (IEO+IE-1)**2
124 UMOSQ = ( SQRT ( AM (INNURE(1,1,IRE))**2 + PLASQ )
125 & + AM (INNURE(2,1,IRE)) )**2 - PLASQ
126 IF ( INNURE (1,2,IRE) .GT. 0 )
127 & UMOSQ = MAX ( UMOSQ, ( SQRT ( AM (INNURE(1,2,IRE))**2
128 & + PLASQ ) + AM (INNURE(2,2,IRE)) )**2 - PLASQ )
129 * | | +-------------------------------------------------------------*
130 * | | | Loop on the exit channels
132 * | | | IWK index of the sigma (weight) of the IKth exit channel of
133 * | | | reaction IRE at energy IE
134 IWK=IWKO+IEE*(IK-1)+IE
135 * | | | NRK (i,iiki+ik), i=1,2 are the two resonances produced by
136 * | | | the exit channel ik of the reaction ire: 0 means no second
138 * | | | +----------------------------------------------------------*
139 * | | | | Check that cross section is 0 below the computed
141 IF ( UMOSQ .GE. THRESH (IIKI+IK)**2 ) THEN
142 SIS=SIS+SI(IWK)*SINORC
144 * | | | +----------------------------------------------------------*
150 * | | | +----------------------------------------------------------*
153 * | | +-------------------------------------------------------------*
156 * | | +-------------------------------------------------------------*
158 IF (SIS.LE.ANGLGB) THEN
163 * | | +-------------------------------------------------------------*
164 * | | +-------------------------------------------------------------*
167 IWK=IWKO+IEE*(IK-1)+IE
168 SIO=SIO+SI(IWK)/SIS*SINORC
172 * | | +-------------------------------------------------------------*
173 * | | +-------------------------------------------------------------*
176 IWK=IWKO+IEE*(IK-1)+IE
180 * | | +-------------------------------------------------------------*
183 * | +----------------------------------------------------------------*
186 * +-------------------------------------------------------------------*
187 * +-------------------------------------------------------------------*
193 * +-------------------------------------------------------------------*
194 * +-------------------------------------------------------------------*
205 IF (ABS(HV-1.D0).GT.1.D-4)WRITE(LUNOUT,101)
206 101 FORMAT(44H ERROR IN HWT BECAUSE OF FALSE USE OF RCHANW)
209 * +-------------------------------------------------------------------*
210 * +-------------------------------------------------------------------*
216 * +-------------------------------------------------------------------*
217 * Set a flag for hadrin that elastic collisions must be reduced
218 * because they will occur inside nuclei