40 outFile <<
"G4LEAntiSigmaMinusInelastic is one of the Low Energy\n"
41 <<
"Parameterized (LEP) models used to implement inelastic\n"
42 <<
"antiSigma- scattering from nuclei. It is a re-engineered\n"
43 <<
"version of the GHEISHA code of H. Fesefeldt. It divides the\n"
44 <<
"initial collision products into backward- and forward-going\n"
45 <<
"clusters which are then decayed into final state hadrons. The\n"
46 <<
"model does not conserve energy on an event-by-event basis. It\n"
47 <<
"may be applied to antiSigma- with initial energies between 0\n"
69 G4cout <<
"G4LEAntiSigmaMinusInelastic::ApplyYourself called" <<
G4endl;
71 G4cout <<
"target material = " << targetMaterial->
GetName() <<
", ";
81 modifiedOriginal = *originalIncident;
87 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
99 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
107 targetParticle = *originalTarget;
110 G4bool incidentHasChanged =
false;
111 G4bool targetHasChanged =
false;
112 G4bool quasiElastic =
false;
121 Cascade(vec, vecLen, originalIncident, currentParticle, targetParticle,
122 incidentHasChanged, targetHasChanged, quasiElastic);
125 modifiedOriginal, targetNucleus, currentParticle,
126 targetParticle, incidentHasChanged, targetHasChanged,
129 SetUpChange(vec, vecLen, currentParticle, targetParticle, incidentHasChanged);
133 delete originalTarget;
138 void G4LEAntiSigmaMinusInelastic::Cascade(
144 G4bool &incidentHasChanged,
162 G4double centerofmassEnergy = std::sqrt(mOriginal*mOriginal +
163 targetMass*targetMass +
164 2.0*targetMass*etOriginal);
165 G4double availableEnergy = centerofmassEnergy-(targetMass+mOriginal);
167 static G4bool first =
true;
168 const G4int numMul = 1200;
169 const G4int numMulA = 400;
170 const G4int numSec = 60;
171 static G4double protmul[numMul], protnorm[numSec];
172 static G4double neutmul[numMul], neutnorm[numSec];
173 static G4double protmulA[numMulA], protnormA[numSec];
174 static G4double neutmulA[numMulA], neutnormA[numSec];
177 G4int counter,
nt=0, npos=0, nneg=0, nzero=0;
185 for( i=0; i<numMul; ++i )protmul[i] = 0.0;
186 for( i=0; i<numSec; ++i )protnorm[i] = 0.0;
188 for( npos=0; npos<(numSec/3); ++npos )
190 for( nneg=std::max(0,npos-2); nneg<=npos; ++nneg )
192 for( nzero=0; nzero<numSec/3; ++nzero )
194 if( ++counter < numMul )
196 nt = npos+nneg+nzero;
197 if( nt>0 && nt<=numSec )
199 protmul[counter] =
Pmltpc(npos,nneg,nzero,nt,b[0],c);
200 protnorm[nt-1] += protmul[counter];
206 for( i=0; i<numMul; ++i )neutmul[i] = 0.0;
207 for( i=0; i<numSec; ++i )neutnorm[i] = 0.0;
209 for( npos=0; npos<numSec/3; ++npos )
211 for( nneg=std::max(0,npos-1); nneg<=(npos+1); ++nneg )
213 for( nzero=0; nzero<numSec/3; ++nzero )
215 if( ++counter < numMul )
217 nt = npos+nneg+nzero;
218 if( nt>0 && nt<=numSec )
220 neutmul[counter] =
Pmltpc(npos,nneg,nzero,nt,b[1],c);
221 neutnorm[nt-1] += neutmul[counter];
227 for( i=0; i<numSec; ++i )
229 if( protnorm[i] > 0.0 )protnorm[i] = 1.0/protnorm[i];
230 if( neutnorm[i] > 0.0 )neutnorm[i] = 1.0/neutnorm[i];
235 for( i=0; i<numMulA; ++i )protmulA[i] = 0.0;
236 for( i=0; i<numSec; ++i )protnormA[i] = 0.0;
238 for( npos=2; npos<(numSec/3); ++npos )
241 for( nzero=0; nzero<numSec/3; ++nzero )
243 if( ++counter < numMulA )
245 nt = npos+nneg+nzero;
246 if( nt>1 && nt<=numSec )
248 protmulA[counter] =
Pmltpc(npos,nneg,nzero,nt,b[0],c);
249 protnormA[nt-1] += protmulA[counter];
254 for( i=0; i<numMulA; ++i )neutmulA[i] = 0.0;
255 for( i=0; i<numSec; ++i )neutnormA[i] = 0.0;
257 for( npos=1; npos<numSec/3; ++npos )
260 for( nzero=0; nzero<numSec/3; ++nzero )
262 if( ++counter < numMulA )
264 nt = npos+nneg+nzero;
265 if( nt>1 && nt<=numSec )
267 neutmulA[counter] =
Pmltpc(npos,nneg,nzero,nt,b[1],c);
268 neutnormA[nt-1] += neutmulA[counter];
273 for( i=0; i<numSec; ++i )
275 if( protnormA[i] > 0.0 )protnormA[i] = 1.0/protnormA[i];
276 if( neutnormA[i] > 0.0 )neutnormA[i] = 1.0/neutnormA[i];
289 const G4double anhl[] = {1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,0.97,0.88,
290 0.85,0.81,0.75,0.64,0.64,0.55,0.55,0.45,0.47,0.40,
291 0.39,0.36,0.33,0.10,0.01};
293 if( iplab > 9 )iplab =
G4int( (pOriginal/
GeV- 1.0)*5.0 ) + 10;
294 if( iplab > 14 )iplab =
G4int( pOriginal/
GeV- 2.0 ) + 15;
295 if( iplab > 23 )iplab =
G4int( (pOriginal/
GeV-10.0)/10.0 ) + 23;
296 if( iplab > 24 )iplab = 24;
299 if( availableEnergy <= aPiPlus->GetPDGMass()/
MeV )
311 for( npos=0; npos<numSec/3 && ran>=excs; ++npos )
313 for( nneg=std::max(0,npos-2); nneg<=npos && ran>=excs; ++nneg )
315 for( nzero=0; nzero<numSec/3 && ran>=excs; ++nzero )
317 if( ++counter < numMul )
319 nt = npos+nneg+nzero;
320 if( nt>0 && nt<=numSec )
322 test = std::exp( std::min( expxu, std::max( expxl, -(
pi/4.0)*(nt*nt)/(n*n) ) ) );
323 dum = (
pi/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
324 if( std::fabs(dum) < 1.0 )
326 if( test >= 1.0
e-10 )excs += dum*
test;
340 npos--; nneg--; nzero--;
341 G4int ncht = std::min( 3, std::max( 1, npos-nneg+1 ) );
350 targetHasChanged =
true;
358 incidentHasChanged =
true;
366 incidentHasChanged =
true;
368 targetHasChanged =
true;
375 for( npos=0; npos<numSec/3 && ran>=excs; ++npos )
377 for( nneg=std::max(0,npos-1); nneg<=(npos+1) && ran>=excs; ++nneg )
379 for( nzero=0; nzero<numSec/3 && ran>=excs; ++nzero )
381 if( ++counter < numMul )
383 nt = npos+nneg+nzero;
384 if( nt>0 && nt<=numSec )
386 test = std::exp( std::min( expxu, std::max( expxl, -(
pi/4.0)*(nt*nt)/(n*n) ) ) );
387 dum = (
pi/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
388 if( std::fabs(dum) < 1.0 )
390 if( test >= 1.0
e-10 )excs += dum*
test;
404 npos--; nneg--; nzero--;
405 G4int ncht = std::min( 3, std::max( 1, npos-nneg+2 ) );
411 targetHasChanged =
true;
420 incidentHasChanged =
true;
422 targetHasChanged =
true;
430 incidentHasChanged =
true;
432 targetHasChanged =
true;
441 incidentHasChanged =
true;
448 if( centerofmassEnergy <= aPiPlus->GetPDGMass()/
MeV+aKaonPlus->
GetPDGMass()/
MeV )
460 for( npos=2; npos<numSec/3 && ran>=excs; ++npos )
463 for( nzero=0; nzero<numSec/3 && ran>=excs; ++nzero )
465 if( ++counter < numMulA )
467 nt = npos+nneg+nzero;
468 if( nt>1 && nt<=numSec )
470 test = std::exp( std::min( expxu, std::max( expxl, -(
pi/4.0)*(nt*nt)/(n*n) ) ) );
471 dum = (
pi/anpn)*nt*protmulA[counter]*protnormA[nt-1]/(2.0*n*n);
472 if( std::fabs(dum) < 1.0 )
474 if( test >= 1.0
e-10 )excs += dum*
test;
492 for( npos=1; npos<numSec/3 && ran>=excs; ++npos )
495 for( nzero=0; nzero<numSec/3 && ran>=excs; ++nzero )
497 if( ++counter < numMulA )
499 nt = npos+nneg+nzero;
500 if( nt>1 && nt<=numSec )
502 test = std::exp( std::min( expxu, std::max( expxl, -(
pi/4.0)*(nt*nt)/(n*n) ) ) );
503 dum = (
pi/anpn)*nt*neutmulA[counter]*neutnormA[nt-1]/(2.0*n*n);
504 if( std::fabs(dum) < 1.0 )
506 if( test >= 1.0
e-10 )excs += dum*
test;
566 currentParticle.
SetMass( 0.0 );