43 outFile <<
"G4HEXiMinusInelastic is one of the High Energy\n"
44 <<
"Parameterized (HEP) models used to implement inelastic\n"
45 <<
"Xi- scattering from nuclei. It is a re-engineered\n"
46 <<
"version of the GHEISHA code of H. Fesefeldt. It divides the\n"
47 <<
"initial collision products into backward- and forward-going\n"
48 <<
"clusters which are then decayed into final state hadrons.\n"
49 <<
"The model does not conserve energy on an event-by-event\n"
50 <<
"basis. It may be applied to Xi- with initial energies\n"
75 G4double incidentKineticEnergy = incidentTotalEnergy - incidentMass;
77 if (incidentKineticEnergy < 1.)
78 G4cout <<
"GHEXiMinusInelastic: incident energy < 1 GeV" <<
G4endl;
81 G4cout <<
"G4HEXiMinusInelastic::ApplyYourself" <<
G4endl;
83 <<
"mass " << incidentMass
84 <<
"kinetic energy " << incidentKineticEnergy
86 G4cout <<
"target material with (A,Z) = ("
87 << atomicWeight <<
"," << atomicNumber <<
")" <<
G4endl;
91 atomicWeight, atomicNumber);
93 G4cout <<
"nuclear inelasticity = " << inelasticity <<
G4endl;
95 incidentKineticEnergy -= inelasticity;
101 atomicWeight, atomicNumber,
103 excitationEnergyDTA);
105 G4cout <<
"nuclear excitation = " << excitation << excitationEnergyGNP
106 << excitationEnergyDTA <<
G4endl;
108 incidentKineticEnergy -= excitation;
109 incidentTotalEnergy = incidentKineticEnergy + incidentMass;
122 G4double centerOfMassEnergy = std::sqrt(incidentMass*incidentMass
123 + targetMass*targetMass
124 + 2.0*targetMass*incidentTotalEnergy);
125 G4double availableEnergy = centerOfMassEnergy - targetMass - incidentMass;
131 G4cout <<
"ApplyYourself: CallFirstIntInCascade for particle "
132 << incidentCode <<
G4endl;
134 G4bool successful =
false;
137 incidentParticle, targetParticle, atomicWeight);
140 G4cout <<
"ApplyYourself::StrangeParticlePairProduction" <<
G4endl;
142 if ((
vecLength > 0) && (availableEnergy > 1.))
145 incidentParticle, targetParticle);
148 excitationEnergyGNP, excitationEnergyDTA,
149 incidentParticle, targetParticle,
150 atomicWeight, atomicNumber);
153 excitationEnergyGNP, excitationEnergyDTA,
154 incidentParticle, targetParticle,
155 atomicWeight, atomicNumber);
158 excitationEnergyGNP, excitationEnergyDTA,
159 incidentParticle, targetParticle,
160 atomicWeight, atomicNumber);
164 excitationEnergyGNP, excitationEnergyDTA,
165 incidentParticle, targetParticle,
166 atomicWeight, atomicNumber);
169 excitationEnergyGNP, excitationEnergyDTA,
170 incidentParticle, targetParticle,
171 atomicWeight, atomicNumber);
175 atomicWeight, atomicNumber);
178 G4cout <<
"GHEInelasticInteraction::ApplyYourself fails to produce final state particles"
206 static const G4double expxl = -expxu;
212 static const G4int numMul = 1200;
213 static const G4int numSec = 60;
221 static G4bool first =
true;
222 static G4double protmul[numMul], protnorm[numSec];
223 static G4double neutmul[numMul], neutnorm[numSec];
228 G4int i, counter, nt, npos, nneg, nzero;
233 for (i = 0; i < numMul; i++) protmul[i] = 0.0;
234 for (i = 0; i < numSec; i++) protnorm[i] = 0.0;
236 for( npos=0; npos<(numSec/3); npos++ )
238 for( nneg=std::max(0,npos-1); nneg<=(npos+1); nneg++ )
240 for( nzero=0; nzero<numSec/3; nzero++ )
242 if( ++counter < numMul )
244 nt = npos+nneg+nzero;
245 if( (nt>0) && (nt<=numSec) )
247 protmul[counter] =
pmltpc(npos,nneg,nzero,nt,protb,c);
248 protnorm[nt-1] += protmul[counter];
254 for( i=0; i<numMul; i++ )neutmul[i] = 0.0;
255 for( i=0; i<numSec; i++ )neutnorm[i] = 0.0;
257 for( npos=0; npos<numSec/3; npos++ )
259 for( nneg=npos; nneg<=(npos+2); nneg++ )
261 for( nzero=0; nzero<numSec/3; nzero++ )
263 if( ++counter < numMul )
265 nt = npos+nneg+nzero;
266 if( (nt>0) && (nt<=numSec) )
268 neutmul[counter] =
pmltpc(npos,nneg,nzero,nt,neutb,c);
269 neutnorm[nt-1] += neutmul[counter];
275 for( i=0; i<numSec; i++ )
277 if( protnorm[i] > 0.0 )protnorm[i] = 1.0/protnorm[i];
278 if( neutnorm[i] > 0.0 )neutnorm[i] = 1.0/neutnorm[i];
285 pv[0] = incidentParticle;
286 pv[1] = targetParticle;
291 G4double cech[] = {0.50, 0.45, 0.40, 0.35, 0.30, 0.25, 0.06, 0.04, 0.005, 0.};
292 G4int iplab =
G4int( std::min( 9.0, incidentTotalMomentum*2.5 ) );
293 if(
G4UniformRand() < cech[iplab]/std::pow(atomicWeight,0.42) )
370 npos = 0; nneg = 0; nzero = 0;
374 G4double aleab = std::log(availableEnergy);
375 G4double n = 3.62567+aleab*(0.665843+aleab*(0.336514
376 + aleab*(0.117712+0.0136912*aleab))) - 2.0;
382 for (nt=1; nt<=numSec; nt++) {
383 test = std::exp( std::min( expxu, std::max( expxl, -(pi/4.0)*(nt*nt)/(n*n) ) ) );
384 dum = pi*nt/(2.0*n*n);
385 if (std::fabs(dum) < 1.0) {
386 if (test >= 1.0e-10) anpn += dum*test;
394 if( targetCode == protonCode )
397 for (npos=0; npos<numSec/3; npos++) {
398 for (nneg=std::max(0,npos-1); nneg<=(npos+1); nneg++) {
399 for (nzero=0; nzero<numSec/3; nzero++) {
400 if (++counter < numMul) {
401 nt = npos+nneg+nzero;
402 if ( (nt>0) && (nt<=numSec) ) {
403 test = std::exp( std::min( expxu, std::max( expxl, -(pi/4.0)*(nt*nt)/(n*n) ) ) );
404 dum = (pi/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
405 if (std::fabs(dum) < 1.0) {
406 if (test >= 1.0e-10) excs += dum*test;
410 if (ran < excs)
goto outOfLoop;
424 for (npos=0; npos<numSec/3; npos++) {
425 for (nneg=npos; nneg<=(npos+2); nneg++) {
426 for( nzero=0; nzero<numSec/3; nzero++) {
427 if (++counter < numMul) {
428 nt = npos+nneg+nzero;
429 if ( (nt>=1) && (nt<=numSec) ) {
430 test = std::exp( std::min( expxu, std::max( expxl, -(pi/4.0)*(nt*nt)/(n*n) ) ) );
431 dum = (pi/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
432 if (std::fabs(dum) < 1.0) {
433 if( test >= 1.0e-10 )excs += dum*test;
437 if (ran < excs)
goto outOfLoop;
459 else if (npos == (nneg-1))
487 else if (npos == (nneg+1))
497 nt = npos + nneg + nzero;
505 }
else if (rnd < (
G4double)(npos+nneg)/nt) {
516 nt = npos + nneg + nzero;
520 G4cout <<
"Particles produced: " ;
523 for (i = 2; i < vecLen; i++)
G4cout << pv[i].getName() <<
" " ;
G4DLLIMPORT std::ostream G4cout
G4double pmltpc(G4int np, G4int nm, G4int nz, G4int n, G4double b, G4double c)
void MediumEnergyClusterProduction(G4bool &successful, G4HEVector pv[], G4int &vecLen, G4double &excitationEnergyGNP, G4double &excitationEnergyDTA, const G4HEVector &incidentParticle, const G4HEVector &targetParticle, G4double atomicWeight, G4double atomicNumber)
void ElasticScattering(G4bool &successful, G4HEVector pv[], G4int &vecLen, const G4HEVector &incidentParticle, G4double atomicWeight, G4double atomicNumber)
void QuasiElasticScattering(G4bool &successful, G4HEVector pv[], G4int &vecLen, G4double &excitationEnergyGNP, G4double &excitationEnergyDTA, const G4HEVector &incidentParticle, const G4HEVector &targetParticle, G4double atomicWeight, G4double atomicNumber)
void FillParticleChange(G4HEVector pv[], G4int aVecLength)
void HighEnergyClusterProduction(G4bool &successful, G4HEVector pv[], G4int &vecLen, G4double &excitationEnergyGNP, G4double &excitationEnergyDTA, const G4HEVector &incidentParticle, const G4HEVector &targetParticle, G4double atomicWeight, G4double atomicNumber)
G4double NuclearExcitation(G4double incidentKineticEnergy, G4double atomicWeight, G4double atomicNumber, G4double &excitationEnergyCascade, G4double &excitationEnergyEvaporation)
void MediumEnergyCascading(G4bool &successful, G4HEVector pv[], G4int &vecLen, G4double &excitationEnergyGNP, G4double &excitationEnergyDTA, const G4HEVector &incidentParticle, const G4HEVector &targetParticle, G4double atomicWeight, G4double atomicNumber)
G4double NuclearInelasticity(G4double incidentKineticEnergy, G4double atomicWeight, G4double atomicNumber)
void StrangeParticlePairProduction(const G4double availableEnergy, const G4double centerOfMassEnergy, G4HEVector pv[], G4int &vecLen, const G4HEVector &incidentParticle, const G4HEVector &targetParticle)
void HighEnergyCascading(G4bool &successful, G4HEVector pv[], G4int &vecLen, G4double &excitationEnergyGNP, G4double &excitationEnergyDTA, const G4HEVector &incidentParticle, const G4HEVector &targetParticle, G4double atomicWeight, G4double atomicNumber)
G4double getEnergy() const
G4double getTotalMomentum() const
void setDefinition(G4String name)
virtual void ModelDescription(std::ostream &) const
void FirstIntInCasXiMinus(G4bool &inElastic, const G4double availableEnergy, G4HEVector pv[], G4int &vecLen, const G4HEVector &incidentParticle, const G4HEVector &targetParticle, const G4double atomicWeight)
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
void SetStatusChange(G4HadFinalStateStatus aS)
G4HadFinalState theParticleChange