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: G4HEAntiOmegaMinusInelastic.cc,v 1.2.8.1 1999/12/07 20:52:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4HEAntiOmegaMinusInelastic.cc,v 1.2.8.1.2.2 1999/12/10 15:42:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -44,23 +44,23 @@ ApplyYourself( const G4Track &aTrack, G4Nucleus &targetNucleus )
if(incidentKineticEnergy < 1.)
{
G4cout << "GHEAntiOmegaMinusInelastic: incident energy < 1 GeV" << endl;
G4cout << "GHEAntiOmegaMinusInelastic: incident energy < 1 GeV" << G4endl;
}
if(verboseLevel > 1)
{
G4cout << "G4HEAntiOmegaMinusInelastic::ApplyYourself" << endl;
G4cout << "G4HEAntiOmegaMinusInelastic::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;
@@ -73,7 +73,7 @@ ApplyYourself( const G4Track &aTrack, G4Nucleus &targetNucleus )
excitationEnergyDTA);
if(verboseLevel > 1)
G4cout << "nuclear excitation = " << excitation << excitationEnergyGNP
<< excitationEnergyDTA << endl;
<< excitationEnergyDTA << G4endl;
incidentKineticEnergy -= excitation;
@@ -110,7 +110,7 @@ ApplyYourself( const G4Track &aTrack, G4Nucleus &targetNucleus )
if(verboseLevel > 1)
G4cout << "ApplyYourself: CallFirstIntInCascade for particle "
<< incidentCode << endl;
<< incidentCode << G4endl;
G4bool successful = false;
@@ -120,7 +120,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.))
@@ -162,7 +162,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;
@@ -222,7 +222,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( G4bool &inElastic,
counter = -1;
for( np=0; np<(numSec/3); np++ )
{
for( nm=max(0,np-2); nm<=(np+1); nm++ )
for( nm=G4std::max(0,np-2); nm<=(np+1); nm++ )
{
for( nz=0; nz<numSec/3; nz++ )
{
@@ -243,7 +243,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( G4bool &inElastic,
counter = -1;
for( np=0; np<numSec/3; np++ )
{
for( nm=max(0,np-1); nm<=(np+2); nm++ )
for( nm=G4std::max(0,np-1); nm<=(np+2); nm++ )
{
for( nz=0; nz<numSec/3; nz++ )
{
@@ -270,7 +270,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( G4bool &inElastic,
counter = -1;
for( np=1; np<(numSec/3); np++ )
{
nm = max(0,np-1);
nm = G4std::max(0,np-1);
for( nz=0; nz<numSec/3; nz++ )
{
if( ++counter < numMulAn )
@@ -321,7 +321,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( G4bool &inElastic,
{ // some two-body reactions
G4double cech[] = {0.50, 0.45, 0.40, 0.35, 0.30, 0.25, 0.06, 0.04, 0.005, 0.};
G4int iplab = min(9, G4int( incidentTotalMomentum*2.5 ));
G4int iplab = G4std::min(9, G4int( incidentTotalMomentum*2.5 ));
if( G4UniformRand() < cech[iplab]/pow(atomicWeight,0.42) )
{
G4double ran = G4UniformRand();
@@ -396,7 +396,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( G4bool &inElastic,
if ( iplab > 9) iplab = 10 + G4int( (incidentTotalMomentum -1.)*5. );
if ( iplab > 14) iplab = 15 + G4int( incidentTotalMomentum -2. );
if ( iplab > 22) iplab = 23 + G4int( (incidentTotalMomentum -10.)/10.);
iplab = min(24, iplab);
iplab = G4std::min(24, iplab);
if ( G4UniformRand() > anhl[iplab] )
{ // non- annihilation channels
@@ -413,7 +413,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( 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;
@@ -428,7 +428,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( G4bool &inElastic,
counter = -1;
for( np=0; np<numSec/3; np++ )
{
for( nm=max(0,np-2); nm<=(np+1); nm++ )
for( nm=G4std::max(0,np-2); nm<=(np+1); nm++ )
{
for( nz=0; nz<numSec/3; nz++ )
{
@@ -437,7 +437,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( 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;
@@ -459,7 +459,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( G4bool &inElastic,
counter = -1;
for( np=0; np<numSec/3; np++ )
{
for( nm=max(0,np-1); nm<=(np+2); nm++ )
for( nm=G4std::max(0,np-1); nm<=(np+2); nm++ )
{
for( nz=0; nz<numSec/3; nz++ )
{
@@ -468,7 +468,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( 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*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
if( fabs(dum) < 1.0 )
if( test >= 1.0e-10 )excs += dum*test;
@@ -592,7 +592,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( G4bool &inElastic,
for( nt=2; 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;
@@ -615,7 +615,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( 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*protmulAn[counter]*protnormAn[nt-1]/(2.0*n*n);
if( fabs(dum) < 1.0 )
if( test >= 1.0e-10 )excs += dum*test;
@@ -643,7 +643,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( 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*neutmulAn[counter]*neutnormAn[nt-1]/(2.0*n*n);
if( fabs(dum) < 1.0 )
if( test >= 1.0e-10 )excs += dum*test;
@@ -700,7 +700,7 @@ G4HEAntiOmegaMinusInelastic::FirstIntInCasAntiOmegaMinus( G4bool &inElastic,
{
G4cout << pv[i].getName() << " " ;
}
G4cout << endl;
G4cout << G4endl;
}
return;
}