Import Geant4 1.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:34:16 +02:00
parent ca1c8cb059
commit 103bda00c8
2654 changed files with 29719 additions and 20203 deletions
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4HEOmegaMinusInelastic.cc,v 1.2.8.1 1999/12/07 20:52:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4HEOmegaMinusInelastic.cc,v 1.2.8.1.2.2 1999/12/10 15:42:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -47,23 +47,23 @@ ApplyYourself( const G4Track &aTrack, G4Nucleus &targetNucleus )
if(incidentKineticEnergy < 1.)
{
G4cout << "GHEOmegaMinusInelastic: incident energy < 1 GeV" << endl;
G4cout << "GHEOmegaMinusInelastic: incident energy < 1 GeV" << G4endl;
}
if(verboseLevel > 1)
{
G4cout << "G4HEOmegaMinusInelastic::ApplyYourself" << endl;
G4cout << "G4HEOmegaMinusInelastic::ApplyYourself" << G4endl;
G4cout << "incident particle " << incidentParticle.getName()
<< "mass " << incidentMass
<< "kinetic energy " << incidentKineticEnergy
<< endl;
<< G4endl;
G4cout << "target material with (A,Z) = ("
<< atomicWeight << "," << atomicNumber << ")" << endl;
<< atomicWeight << "," << atomicNumber << ")" << G4endl;
}
G4double inelasticity = NuclearInelasticity(incidentKineticEnergy,
atomicWeight, atomicNumber);
if(verboseLevel > 1)
G4cout << "nuclear inelasticity = " << inelasticity << endl;
G4cout << "nuclear inelasticity = " << inelasticity << G4endl;
incidentKineticEnergy -= inelasticity;
@@ -76,7 +76,7 @@ ApplyYourself( const G4Track &aTrack, G4Nucleus &targetNucleus )
excitationEnergyDTA);
if(verboseLevel > 1)
G4cout << "nuclear excitation = " << excitation << excitationEnergyGNP
<< excitationEnergyDTA << endl;
<< excitationEnergyDTA << G4endl;
incidentKineticEnergy -= excitation;
@@ -113,7 +113,7 @@ ApplyYourself( const G4Track &aTrack, G4Nucleus &targetNucleus )
if(verboseLevel > 1)
G4cout << "ApplyYourself: CallFirstIntInCascade for particle "
<< incidentCode << endl;
<< incidentCode << G4endl;
G4bool successful = false;
@@ -123,7 +123,7 @@ ApplyYourself( const G4Track &aTrack, G4Nucleus &targetNucleus )
incidentParticle, targetParticle, atomicWeight);
if(verboseLevel > 1)
G4cout << "ApplyYourself::StrangeParticlePairProduction" << endl;
G4cout << "ApplyYourself::StrangeParticlePairProduction" << G4endl;
if ((vecLength > 0) && (availableEnergy > 1.))
@@ -165,7 +165,7 @@ ApplyYourself( const G4Track &aTrack, G4Nucleus &targetNucleus )
if (!successful)
{
G4cout << "GHEInelasticInteraction::ApplyYourself fails to produce final state particles" << endl;
G4cout << "GHEInelasticInteraction::ApplyYourself fails to produce final state particles" << G4endl;
}
FillParticleChange(pv, vecLength);
delete [] pv;
@@ -226,7 +226,7 @@ G4HEOmegaMinusInelastic::FirstIntInCasOmegaMinus( G4bool &inElastic,
counter = -1;
for( np=0; np<(numSec/3); np++ )
{
for( nm=max(0,np-1); nm<=np; nm++ )
for( nm=G4std::max(0,np-1); nm<=np; nm++ )
{
for( nz=0; nz<numSec/3; nz++ )
{
@@ -280,7 +280,7 @@ G4HEOmegaMinusInelastic::FirstIntInCasOmegaMinus( G4bool &inElastic,
if( !inElastic )
{ // quasi-elastic scattering, no pions produced
G4double cech[] = {0.50, 0.45, 0.40, 0.35, 0.30, 0.25, 0.06, 0.04, 0.005, 0.};
G4int iplab = G4int( min( 9.0, incidentTotalMomentum*2.5 ) );
G4int iplab = G4int( G4std::min( 9.0, incidentTotalMomentum*2.5 ) );
if( G4UniformRand() < cech[iplab]/pow(atomicWeight,0.42) )
{
G4double ran = G4UniformRand();
@@ -362,7 +362,7 @@ G4HEOmegaMinusInelastic::FirstIntInCasOmegaMinus( G4bool &inElastic,
for( nt=1; nt<=numSec; nt++ )
{
test = exp( min( expxu, max( expxl, -(M_PI/4.0)*(nt*nt)/(n*n) ) ) );
test = exp( G4std::min( expxu, G4std::max( expxl, -(M_PI/4.0)*(nt*nt)/(n*n) ) ) );
dum = M_PI*nt/(2.0*n*n);
if( fabs(dum) < 1.0 )
if( test >= 1.0e-10 )anpn += dum*test;
@@ -377,7 +377,7 @@ G4HEOmegaMinusInelastic::FirstIntInCasOmegaMinus( G4bool &inElastic,
counter = -1;
for( np=0; np<numSec/3; np++ )
{
for( nm=max(0,np-1); nm<=np; nm++ )
for( nm=G4std::max(0,np-1); nm<=np; nm++ )
{
for( nz=0; nz<numSec/3; nz++ )
{
@@ -386,7 +386,7 @@ G4HEOmegaMinusInelastic::FirstIntInCasOmegaMinus( G4bool &inElastic,
nt = np+nm+nz;
if( (nt>0) && (nt<=numSec) )
{
test = exp( min( expxu, max( expxl, -(M_PI/4.0)*(nt*nt)/(n*n) ) ) );
test = exp( G4std::min( expxu, G4std::max( expxl, -(M_PI/4.0)*(nt*nt)/(n*n) ) ) );
dum = (M_PI/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
if( fabs(dum) < 1.0 )
if( test >= 1.0e-10 )excs += dum*test;
@@ -417,7 +417,7 @@ G4HEOmegaMinusInelastic::FirstIntInCasOmegaMinus( G4bool &inElastic,
nt = np+nm+nz;
if( (nt>=1) && (nt<=numSec) )
{
test = exp( min( expxu, max( expxl, -(M_PI/4.0)*(nt*nt)/(n*n) ) ) );
test = exp( G4std::min( expxu, G4std::max( expxl, -(M_PI/4.0)*(nt*nt)/(n*n) ) ) );
dum = (M_PI/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
if( fabs(dum) < 1.0 )
if( test >= 1.0e-10 )excs += dum*test;
@@ -498,7 +498,7 @@ G4HEOmegaMinusInelastic::FirstIntInCasOmegaMinus( G4bool &inElastic,
{
G4cout << pv[i].getName() << " " ;
}
G4cout << endl;
G4cout << G4endl;
}
return;
}