The production is not isotropic in this version it has the same exp(b*t) structure as the nn elastic scattering (formula 2.3 of j.cugnon et al, nucl phys a352(1981)505) parametrization of b taken from ref. prc56(1997)2431
86 {
87
88
89
90
91
92
93
94
95
96
97
99
102
103
106
107 G4double xmdel = sampleDeltaMass(ecm);
108
110 if (pnorm <= 0.0) pnorm=0.000001;
114 if (rndm < 0.5) index=1;
115 if (isospin == 0) {
117 if (rndm < 0.5) index2=1;
118 }
119
120
121
123 if(x < 1.4) {
124 b=(5.287/(1.+std::exp((1.3-x)/0.05)))*1.e-6;
125 } else {
126 b=(4.65+0.706*(x-1.4))*1.e-6;
127 }
130 G4double ctet=1.0+std::log(1.-rndm*(1.-std::exp(-2.*xkh)))/xkh;
131 if(std::abs(ctet) > 1.0) ctet =
Math::sign(ctet);
132 G4double stet = std::sqrt(1.-ctet*ctet);
133
138
139
143 if (xx >= zz*1.e-8) {
150 ez[0] = p1/pin;
151 ez[1] = p2/pin;
152 ez[2] = p3/pin;
153 ex[0] = p2/yn;
154 ex[1] = -p1/yn;
155 ex[2] = 0.0;
156 ey[0] = p1*p3/zn;
157 ey[1] = p2*p3/zn;
158 ey[2] = -xx/zn;
159 xp1 = (ex[0]*cfi*stet+ey[0]*sfi*stet+ez[0]*ctet)*pnorm;
160 xp2 = (ex[1]*cfi*stet+ey[1]*sfi*stet+ez[1]*ctet)*pnorm;
161 xp3 = (ex[2]*cfi*stet+ey[2]*sfi*stet+ez[2]*ctet)*pnorm;
162 }else {
163 xp1=pnorm*stet*cfi;
164 xp2=pnorm*stet*sfi;
165 xp3=pnorm*ctet;
166 }
167
168 G4double e3 = std::sqrt(xp1*xp1+xp2*xp2+xp3*xp3
170
171
172
175 if (index != 1) {
176 ThreeVector mom(xp1, xp2, xp3);
178
179 m1=1;
180 } else {
181 ThreeVector mom(-xp1, -xp2, -xp3);
183
184 m1=1;
185 }
186
190
191
192
193
194
197 if (isospin == 0) {
198 if(index2 == 1) {
200 is1=is2;
201 is2=isi;
202 }
204 } else {
206 if (rndm >= 0.25) {
207 is1=3*is1*m1-(1-m1)*is1;
208 is2=3*is2*m2-(1-m2)*is2;
209 }
211 }
212
225 }
226
239 }
240
243
244 FinalState *fs = new FinalState;
245 fs->addModifiedParticle(particle1);
246 fs->addModifiedParticle(particle2);
247 return fs;
248 }
static G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
static G4double momentumInLab(Particle const *const p1, Particle const *const p2)
gives the momentum in the lab frame of two particles.
static G4double momentumInCM(Particle const *const p1, Particle const *const p2)
gives the momentum in the CM frame of two particles.
static const G4double effectiveNucleonMass2
static G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
static const G4double effectiveNucleonMass
void setMass(G4double mass)
void setHelicity(G4double h)
const G4INCL::ThreeVector & getMomentum() const
virtual void setMomentum(const G4INCL::ThreeVector &momentum)
G4INCL::ParticleType getType() const
void setEnergy(G4double energy)
void setType(ParticleType t)
G4bool isDelta() const
Is it a Delta?