47 G4cout <<
"G4RPGAntiKZeroInelastic::ApplyYourself called" <<
G4endl;
49 G4cout <<
"target material = " << targetMaterial->
GetName() <<
", ";
60 modifiedOriginal = *originalIncident;
80 p = std::sqrt(
std::abs((et-amas)*(et+amas)) );
89 targetParticle = *originalTarget;
92 G4bool incidentHasChanged =
false;
93 G4bool targetHasChanged =
false;
94 G4bool quasiElastic =
false;
102 originalIncident, currentParticle, targetParticle,
103 incidentHasChanged, targetHasChanged, quasiElastic );
108 originalIncident, originalTarget, modifiedOriginal,
109 targetNucleus, currentParticle, targetParticle,
110 incidentHasChanged, targetHasChanged, quasiElastic );
118 currentParticle, targetParticle,
119 incidentHasChanged );
121 delete originalTarget;
131 G4bool &incidentHasChanged,
149 G4double centerofmassEnergy = std::sqrt( mOriginal*mOriginal +
150 targetMass*targetMass +
151 2.0*targetMass*etOriginal );
152 G4double availableEnergy = centerofmassEnergy-(targetMass+mOriginal);
155 const G4int numMul = 1200;
156 const G4int numSec = 60;
162 G4int counter, nt=0, np=0, nneg=0, nz=0;
169 for( i=0; i<numMul; ++i )protmul[i] = 0.0;
170 for( i=0; i<numSec; ++i )protnorm[i] = 0.0;
172 for( np=0; np<numSec/3; ++np )
174 for( nneg=
std::max(0,np-2); nneg<=np; ++nneg )
176 for( nz=0; nz<numSec/3; ++nz )
178 if( ++counter < numMul )
181 if( nt>0 && nt<=numSec )
183 protmul[counter] =
Pmltpc(np,nneg,nz,nt,b[0],c);
184 protnorm[nt-1] += protmul[counter];
190 for( i=0; i<numMul; ++i )neutmul[i] = 0.0;
191 for( i=0; i<numSec; ++i )neutnorm[i] = 0.0;
193 for( np=0; np<(numSec/3); ++np )
195 for( nneg=
std::max(0,np-1); nneg<=(np+1); ++nneg )
197 for( nz=0; nz<numSec/3; ++nz )
199 if( ++counter < numMul )
202 if( nt>0 && nt<=numSec )
204 neutmul[counter] =
Pmltpc(np,nneg,nz,nt,b[1],c);
205 neutnorm[nt-1] += neutmul[counter];
211 for( i=0; i<numSec; ++i )
213 if( protnorm[i] > 0.0 )protnorm[i] = 1.0/protnorm[i];
214 if( neutnorm[i] > 0.0 )neutnorm[i] = 1.0/neutnorm[i];
232 const G4double cech[] = {1.,1.,1.,0.70,0.60,0.55,0.35,0.25,0.18,0.15};
236 np = nneg = nz = nt = 0;
238 const G4double cnk0[] = {0.17,0.18,0.17,0.24,0.26,0.20,0.22,0.21,0.34,0.45,
239 0.58,0.55,0.36,0.29,0.29,0.32,0.32,0.33,0.33,0.33};
246 incidentHasChanged =
true;
247 targetHasChanged =
true;
249 }
else if( ran < 0.50 ) {
255 incidentHasChanged =
true;
256 targetHasChanged =
true;
257 }
else if( ran < 0.75 ) {
262 incidentHasChanged =
true;
263 targetHasChanged =
true;
271 incidentHasChanged =
true;
272 targetHasChanged =
true;
279 incidentHasChanged =
true;
280 targetHasChanged =
true;
284 if (availableEnergy < aPiPlus->GetPDGMass()/
MeV) {
294 for( np=0; (np<numSec/3) && (ran>=excs); ++np )
296 for( nneg=
std::max(0,np-2); nneg<=np && ran>=excs; ++nneg )
298 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
300 if( ++counter < numMul )
303 if( nt>0 && nt<=numSec )
306 dum = (
pi/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
307 if( std::fabs(dum) < 1.0 )
309 if( test >= 1.0
e-10 )excs += dum*
test;
330 incidentHasChanged =
true;
335 targetHasChanged =
true;
342 incidentHasChanged =
true;
343 targetHasChanged =
true;
350 for( np=0; np<numSec/3 && ran>=excs; ++np )
352 for( nneg=
std::max(0,np-1); nneg<=(np+1) && ran>=excs; ++nneg )
354 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
356 if( ++counter < numMul )
359 if( nt>0 && nt<=numSec )
362 dum = (
pi/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
363 if( std::fabs(dum) < 1.0 )
365 if( test >= 1.0
e-10 )excs += dum*
test;
385 incidentHasChanged =
true;
386 targetHasChanged =
true;
390 incidentHasChanged =
true;
394 targetHasChanged =
true;
409 else if( ran < 0.84 )
430 else if( ran < 0.84 )
449 else if( ran < 0.78 )
454 else if( ran < 0.89 )
465 incidentHasChanged =
true;
466 targetHasChanged =
true;
474 incidentHasChanged =
true;
482 targetHasChanged =
true;