54 G4cout <<
"G4RPGAntiSigmaPlusInelastic::ApplyYourself called" <<
G4endl;
56 G4cout <<
"target material = " << targetMaterial->
GetName() <<
", ";
67 modifiedOriginal = *originalIncident;
87 p = std::sqrt(
std::abs((et-amas)*(et+amas)) );
96 targetParticle = *originalTarget;
99 G4bool incidentHasChanged =
false;
100 G4bool targetHasChanged =
false;
101 G4bool quasiElastic =
false;
110 originalIncident, currentParticle, targetParticle,
111 incidentHasChanged, targetHasChanged, quasiElastic );
114 originalIncident, originalTarget, modifiedOriginal,
115 targetNucleus, currentParticle, targetParticle,
116 incidentHasChanged, targetHasChanged, quasiElastic );
119 currentParticle, targetParticle,
120 incidentHasChanged );
122 delete originalTarget;
133 G4bool &incidentHasChanged,
150 G4double centerofmassEnergy = std::sqrt( mOriginal*mOriginal +
151 targetMass*targetMass +
152 2.0*targetMass*etOriginal );
153 G4double availableEnergy = centerofmassEnergy-(targetMass+mOriginal);
156 const G4int numMul = 1200;
157 const G4int numMulA = 400;
158 const G4int numSec = 60;
164 G4int counter, nt=0, np=0, nneg=0, nz=0;
172 for( i=0; i<numMul; ++i )protmul[i] = 0.0;
173 for( i=0; i<numSec; ++i )protnorm[i] = 0.0;
175 for( np=0; np<(numSec/3); ++np )
177 for( nneg=
std::max(0,np-1); nneg<=(np+1); ++nneg )
179 for( nz=0; nz<numSec/3; ++nz )
181 if( ++counter < numMul )
184 if( nt>0 && nt<=numSec )
186 protmul[counter] =
Pmltpc(np,nneg,nz,nt,b[0],c);
187 protnorm[nt-1] += protmul[counter];
193 for( i=0; i<numMul; ++i )neutmul[i] = 0.0;
194 for( i=0; i<numSec; ++i )neutnorm[i] = 0.0;
196 for( np=0; np<numSec/3; ++np )
198 for( nneg=np; nneg<=(np+2); ++nneg )
200 for( nz=0; nz<numSec/3; ++nz )
202 if( ++counter < numMul )
205 if( nt>0 && nt<=numSec )
207 neutmul[counter] =
Pmltpc(np,nneg,nz,nt,b[1],c);
208 neutnorm[nt-1] += neutmul[counter];
214 for( i=0; i<numSec; ++i )
216 if( protnorm[i] > 0.0 )protnorm[i] = 1.0/protnorm[i];
217 if( neutnorm[i] > 0.0 )neutnorm[i] = 1.0/neutnorm[i];
222 for( i=0; i<numMulA; ++i )protmulA[i] = 0.0;
223 for( i=0; i<numSec; ++i )protnormA[i] = 0.0;
225 for( np=1; np<(numSec/3); ++np )
228 for( nz=0; nz<numSec/3; ++nz )
230 if( ++counter < numMulA )
233 if( nt>1 && nt<=numSec )
235 protmulA[counter] =
Pmltpc(np,nneg,nz,nt,b[0],c);
236 protnormA[nt-1] += protmulA[counter];
241 for( i=0; i<numMulA; ++i )neutmulA[i] = 0.0;
242 for( i=0; i<numSec; ++i )neutnormA[i] = 0.0;
244 for( np=0; np<numSec/3; ++np )
247 for( nz=0; nz<numSec/3; ++nz )
249 if( ++counter < numMulA )
252 if( nt>1 && nt<=numSec )
254 neutmulA[counter] =
Pmltpc(np,nneg,nz,nt,b[1],c);
255 neutnormA[nt-1] += neutmulA[counter];
260 for( i=0; i<numSec; ++i )
262 if( protnormA[i] > 0.0 )protnormA[i] = 1.0/protnormA[i];
263 if( neutnormA[i] > 0.0 )neutnormA[i] = 1.0/neutnormA[i];
277 const G4double anhl[] = {1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,0.97,0.88,
278 0.85,0.81,0.75,0.64,0.64,0.55,0.55,0.45,0.47,0.40,
279 0.39,0.36,0.33,0.10,0.01};
281 if( iplab > 9 )iplab =
G4int( (pOriginal/
GeV- 1.0)*5.0 ) + 10;
282 if( iplab > 14 )iplab =
G4int( pOriginal/
GeV- 2.0 ) + 15;
283 if( iplab > 22 )iplab =
G4int( (pOriginal/
GeV-10.0)/10.0 ) + 23;
284 if( iplab > 24 )iplab = 24;
287 if( availableEnergy <= aPiPlus->GetPDGMass()/
MeV )
299 for( np=0; np<numSec/3 && ran>=excs; ++np )
301 for( nneg=
std::max(0,np-1); nneg<=(np+1) && ran>=excs; ++nneg )
303 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
305 if( ++counter < numMul )
308 if( (nt>0) && (nt<=numSec) )
311 dum = (
pi/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
312 if( std::fabs(dum) < 1.0 )
314 if( test >= 1.0
e-10 )excs += dum*
test;
337 incidentHasChanged =
true;
346 incidentHasChanged =
true;
349 targetHasChanged =
true;
353 targetHasChanged =
true;
360 for( np=0; np<numSec/3 && ran>=excs; ++np )
362 for( nneg=np; nneg<=(np+2) && ran>=excs; ++nneg )
364 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
366 if( ++counter < numMul )
369 if( (nt>0) && (nt<=numSec) )
372 dum = (
pi/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
373 if( std::fabs(dum) < 1.0 )
375 if( test >= 1.0
e-10 )excs += dum*
test;
398 incidentHasChanged =
true;
400 targetHasChanged =
true;
408 incidentHasChanged =
true;
413 targetHasChanged =
true;
421 incidentHasChanged =
true;
426 targetHasChanged =
true;
437 if( centerofmassEnergy <= aPiPlus->GetPDGMass()/
MeV+aKaonPlus->
GetPDGMass()/
MeV )
449 for( np=1; np<numSec/3 && ran>=excs; ++np )
452 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
454 if( ++counter < numMulA )
457 if( nt>1 && nt<=numSec )
460 dum = (
pi/anpn)*nt*protmulA[counter]*protnormA[nt-1]/(2.0*n*n);
461 if( std::fabs(dum) < 1.0 )
463 if( test >= 1.0
e-10 )excs += dum*
test;
481 for( np=0; np<numSec/3 && ran>=excs; ++np )
484 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
486 if( ++counter < numMulA )
489 if( nt>1 && nt<=numSec )
492 dum = (
pi/anpn)*nt*neutmulA[counter]*neutnormA[nt-1]/(2.0*n*n);
493 if( std::fabs(dum) < 1.0 )
495 if( test >= 1.0
e-10 )excs += dum*
test;
555 currentParticle.
SetMass( 0.0 );