54 G4cout <<
"G4RPGSigmaMinusInelastic::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;
109 originalIncident, currentParticle, targetParticle,
110 incidentHasChanged, targetHasChanged, quasiElastic );
113 originalIncident, originalTarget, modifiedOriginal,
114 targetNucleus, currentParticle, targetParticle,
115 incidentHasChanged, targetHasChanged, quasiElastic );
118 currentParticle, targetParticle,
119 incidentHasChanged );
121 delete originalTarget;
132 G4bool &incidentHasChanged,
149 G4double centerofmassEnergy = std::sqrt( mOriginal*mOriginal +
150 targetMass*targetMass +
151 2.0*targetMass*etOriginal );
152 G4double availableEnergy = centerofmassEnergy-(targetMass+mOriginal);
159 const G4int numMul = 1200;
160 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];
237 for( np=0; np<numSec/3 && ran>=excs; ++np )
239 for( nneg=
std::max(0,np-1); nneg<=(np+1) && ran>=excs; ++nneg )
241 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
243 if( ++counter < numMul )
246 if( nt>0 && nt<=numSec )
249 dum = (
pi/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
250 if( std::fabs(dum) < 1.0 )
252 if( test >= 1.0
e-10 )excs += dum*
test;
275 incidentHasChanged =
true;
284 incidentHasChanged =
true;
286 targetHasChanged =
true;
291 targetHasChanged =
true;
298 for( np=0; np<numSec/3 && ran>=excs; ++np )
300 for( nneg=np; nneg<=(np+2) && ran>=excs; ++nneg )
302 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
304 if( ++counter < numMul )
307 if( nt>0 && nt<=numSec )
310 dum = (
pi/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
311 if( std::fabs(dum) < 1.0 )
313 if( test >= 1.0
e-10 )excs += dum*
test;
336 incidentHasChanged =
true;
338 targetHasChanged =
true;
347 incidentHasChanged =
true;
352 targetHasChanged =
true;