51 G4cout <<
"WARNING: model G4HESigmaPlusInelastic is being deprecated and will\n"
52 <<
"disappear in Geant4 version 10.0" <<
G4endl;
57 outFile <<
"G4HESigmaPlusInelastic is one of the High Energy\n"
58 <<
"Parameterized (HEP) models used to implement inelastic\n"
59 <<
"Sigma+ scattering from nuclei. It is a re-engineered\n"
60 <<
"version of the GHEISHA code of H. Fesefeldt. It divides the\n"
61 <<
"initial collision products into backward- and forward-going\n"
62 <<
"clusters which are then decayed into final state hadrons.\n"
63 <<
"The model does not conserve energy on an event-by-event\n"
64 <<
"basis. It may be applied to Sigma+ with initial energies\n"
89 G4double incidentKineticEnergy = incidentTotalEnergy - incidentMass;
91 if (incidentKineticEnergy < 1.)
92 G4cout <<
"GHESigmaPlusInelastic: incident energy < 1 GeV" <<
G4endl;
95 G4cout <<
"G4HESigmaPlusInelastic::ApplyYourself" <<
G4endl;
97 <<
"mass " << incidentMass
98 <<
"kinetic energy " << incidentKineticEnergy
100 G4cout <<
"target material with (A,Z) = ("
101 << atomicWeight <<
"," << atomicNumber <<
")" <<
G4endl;
105 atomicWeight, atomicNumber);
107 G4cout <<
"nuclear inelasticity = " << inelasticity <<
G4endl;
109 incidentKineticEnergy -= inelasticity;
115 atomicWeight, atomicNumber,
117 excitationEnergyDTA);
119 G4cout <<
"nuclear excitation = " << excitation << excitationEnergyGNP
120 << excitationEnergyDTA <<
G4endl;
122 incidentKineticEnergy -= excitation;
123 incidentTotalEnergy = incidentKineticEnergy + incidentMass;
136 G4double centerOfMassEnergy = std::sqrt(incidentMass*incidentMass
137 + targetMass*targetMass
138 + 2.0*targetMass*incidentTotalEnergy);
139 G4double availableEnergy = centerOfMassEnergy - targetMass - incidentMass;
145 G4cout <<
"ApplyYourself: CallFirstIntInCascade for particle "
146 << incidentCode <<
G4endl;
148 G4bool successful =
false;
151 incidentParticle, targetParticle, atomicWeight);
154 G4cout <<
"ApplyYourself::StrangeParticlePairProduction" <<
G4endl;
156 if ((
vecLength > 0) && (availableEnergy > 1.))
159 incidentParticle, targetParticle);
162 excitationEnergyGNP, excitationEnergyDTA,
163 incidentParticle, targetParticle,
164 atomicWeight, atomicNumber);
167 excitationEnergyGNP, excitationEnergyDTA,
168 incidentParticle, targetParticle,
169 atomicWeight, atomicNumber);
172 excitationEnergyGNP, excitationEnergyDTA,
173 incidentParticle, targetParticle,
174 atomicWeight, atomicNumber);
178 excitationEnergyGNP, excitationEnergyDTA,
179 incidentParticle, targetParticle,
180 atomicWeight, atomicNumber);
183 excitationEnergyGNP, excitationEnergyDTA,
184 incidentParticle, targetParticle,
185 atomicWeight, atomicNumber);
189 atomicWeight, atomicNumber);
192 G4cout <<
"GHEInelasticInteraction::ApplyYourself fails to produce final state particles"
220 static const G4double expxl = -expxu;
226 static const G4int numMul = 1200;
227 static const G4int numSec = 60;
234 static G4bool first =
true;
235 static G4double protmul[numMul], protnorm[numSec];
236 static G4double neutmul[numMul], neutnorm[numSec];
241 G4int i, counter, nt, npos, nneg, nzero;
246 for( i=0; i<numMul; i++ )protmul[i] = 0.0;
247 for( i=0; i<numSec; i++ )protnorm[i] = 0.0;
249 for( npos=0; npos<(numSec/3); npos++ )
251 for( nneg=std::max(0,npos-2); nneg<=npos; nneg++ )
253 for( nzero=0; nzero<numSec/3; nzero++ )
255 if( ++counter < numMul )
257 nt = npos+nneg+nzero;
258 if( (nt>0) && (nt<=numSec) )
260 protmul[counter] =
pmltpc(npos,nneg,nzero,nt,protb,c);
261 protnorm[nt-1] += protmul[counter];
267 for( i=0; i<numMul; i++ )neutmul[i] = 0.0;
268 for( i=0; i<numSec; i++ )neutnorm[i] = 0.0;
270 for( npos=0; npos<numSec/3; npos++ )
272 for( nneg=std::max(0,npos-1); nneg<=(npos+1); nneg++ )
274 for( nzero=0; nzero<numSec/3; nzero++ )
276 if( ++counter < numMul )
278 nt = npos+nneg+nzero;
279 if( (nt>0) && (nt<=numSec) )
281 neutmul[counter] =
pmltpc(npos,nneg,nzero,nt,neutb,c);
282 neutnorm[nt-1] += neutmul[counter];
288 for( i=0; i<numSec; i++ )
290 if( protnorm[i] > 0.0 )protnorm[i] = 1.0/protnorm[i];
291 if( neutnorm[i] > 0.0 )neutnorm[i] = 1.0/neutnorm[i];
298 pv[0] = incidentParticle;
299 pv[1] = targetParticle;
304 G4double cech[] = {0.50, 0.45, 0.40, 0.35, 0.30, 0.25, 0.06, 0.04, 0.005, 0.};
305 G4int iplab =
G4int( std::min( 9.0, incidentTotalMomentum*2.5 ) );
306 if(
G4UniformRand() < cech[iplab]/std::pow(atomicWeight,0.42) )
309 if( targetCode == protonCode)
350 npos = 0; nneg = 0; nzero = 0;
354 G4double aleab = std::log(availableEnergy);
355 G4double n = 3.62567+aleab*(0.665843+aleab*(0.336514
356 + aleab*(0.117712+0.0136912*aleab))) - 2.0;
362 for (nt=1; nt<=numSec; nt++) {
363 test = std::exp( std::min( expxu, std::max( expxl, -(pi/4.0)*(nt*nt)/(n*n) ) ) );
364 dum = pi*nt/(2.0*n*n);
365 if (std::fabs(dum) < 1.0) {
366 if (test >= 1.0e-10) anpn += dum*test;
374 if( targetCode == protonCode )
377 for (npos=0; npos<numSec/3; npos++) {
378 for (nneg=std::max(0,npos-2); nneg<=npos; nneg++) {
379 for (nzero=0; nzero<numSec/3; nzero++) {
380 if (++counter < numMul) {
381 nt = npos+nneg+nzero;
382 if ( (nt>0) && (nt<=numSec) ) {
383 test = std::exp( std::min( expxu, std::max( expxl, -(pi/4.0)*(nt*nt)/(n*n) ) ) );
384 dum = (pi/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
385 if (std::fabs(dum) < 1.0) {
386 if (test >= 1.0e-10) excs += dum*test;
390 if (ran < excs)
goto outOfLoop;
404 for (npos=0; npos<numSec/3; npos++) {
405 for (nneg=std::max(0,npos-1); nneg<=(npos+1); nneg++) {
406 for (nzero=0; nzero<numSec/3; nzero++) {
407 if (++counter < numMul) {
408 nt = npos+nneg+nzero;
409 if ( (nt>=1) && (nt<=numSec) ) {
410 test = std::exp( std::min( expxu, std::max( expxl, -(pi/4.0)*(nt*nt)/(n*n) ) ) );
411 dum = (pi/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
412 if (std::fabs(dum) < 1.0) {
413 if( test >= 1.0e-10 )excs += dum*test;
417 if (ran < excs)
goto outOfLoop;
431 if (targetCode == protonCode) {
435 else if (npos == (nneg+1))
480 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)
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4HESigmaPlusInelastic(const G4String &name="G4HESigmaPlusInelastic")
void FirstIntInCasSigmaPlus(G4bool &inElastic, const G4double availableEnergy, G4HEVector pv[], G4int &vecLen, const G4HEVector &incidentParticle, const G4HEVector &targetParticle, const G4double atomicWeight)
virtual void ModelDescription(std::ostream &) const
G4double getEnergy() const
G4double getTotalMomentum() const
void setDefinition(G4String name)
void SetStatusChange(G4HadFinalStateStatus aS)
G4HadFinalState theParticleChange