Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4LEKaonMinusInelastic.cc,v 1.1.10.1 1999/12/07 20:52:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4LEKaonMinusInelastic.cc,v 1.1.10.1.2.2 1999/12/10 15:42:12 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// Hadronic Process: Low Energy KaonMinus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 12-Feb-1997
|
||||
@@ -35,11 +35,11 @@
|
||||
if( verboseLevel > 1 )
|
||||
{
|
||||
G4Material *targetMaterial = aTrack.GetMaterial();
|
||||
G4cout << "G4LEKaonMinusInelastic::ApplyYourself called" << endl;
|
||||
G4cout << "G4LEKaonMinusInelastic::ApplyYourself called" << G4endl;
|
||||
G4cout << "kinetic energy = " << originalIncident->GetKineticEnergy() << "MeV, ";
|
||||
G4cout << "target material = " << targetMaterial->GetName() << ", ";
|
||||
G4cout << "target particle = " << originalTarget->GetDefinition()->GetParticleName()
|
||||
<< endl;
|
||||
<< G4endl;
|
||||
}
|
||||
G4ReactionProduct currentParticle( originalIncident->GetDefinition() );
|
||||
currentParticle.SetMomentum( originalIncident->GetMomentum() );
|
||||
@@ -155,7 +155,7 @@
|
||||
G4int counter = -1;
|
||||
for( np=0; np<(numSec/3); ++np )
|
||||
{
|
||||
for( nm=max(0,np-1); nm<=(np+1); ++nm )
|
||||
for( nm=G4std::max(0,np-1); nm<=(np+1); ++nm )
|
||||
{
|
||||
for( nz=0; nz<numSec/3; ++nz )
|
||||
{
|
||||
@@ -214,11 +214,11 @@
|
||||
G4ParticleDefinition *aSigmaMinus = G4SigmaMinus::SigmaMinus();
|
||||
G4ParticleDefinition *aSigmaZero = G4SigmaZero::SigmaZero();
|
||||
const G4double cech[] = {1.,1.,1.,0.70,0.60,0.55,0.35,0.25,0.18,0.15};
|
||||
G4int iplab = min( 9.0, pOriginal/GeV*5.0 );
|
||||
G4int iplab = G4std::min( 9.0, pOriginal/GeV*5.0 );
|
||||
if( (pOriginal <= 2.0*GeV) && (G4UniformRand() < cech[iplab]) )
|
||||
{
|
||||
np = nm = nz = nt = 0;
|
||||
iplab = min( 19.0, pOriginal/GeV*10.0 );
|
||||
iplab = G4std::min( 19.0, pOriginal/GeV*10.0 );
|
||||
const G4double cnk0[] = {0.17,0.18,0.17,0.24,0.26,0.20,0.22,0.21,0.34,0.45,
|
||||
0.58,0.55,0.36,0.29,0.29,0.32,0.32,0.33,0.33,0.33};
|
||||
if( G4UniformRand() <= cnk0[iplab] )
|
||||
@@ -293,7 +293,7 @@
|
||||
G4int counter = -1;
|
||||
for( np=0; np<numSec/3 && ran>=excs; ++np )
|
||||
{
|
||||
for( nm=max(0,np-1); nm<=(np+1) && ran>=excs; ++nm )
|
||||
for( nm=G4std::max(0,np-1); nm<=(np+1) && ran>=excs; ++nm )
|
||||
{
|
||||
for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
|
||||
{
|
||||
@@ -302,7 +302,7 @@
|
||||
nt = np+nm+nz;
|
||||
if( nt > 0 )
|
||||
{
|
||||
test = exp( min( expxu, max( expxl, -(pi/4.0)*(nt*nt)/(n*n) ) ) );
|
||||
test = exp( G4std::min( expxu, G4std::max( expxl, -(pi/4.0)*(nt*nt)/(n*n) ) ) );
|
||||
dum = (pi/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
|
||||
if( fabs(dum) < 1.0 )
|
||||
{
|
||||
@@ -356,7 +356,7 @@
|
||||
nt = np+nm+nz;
|
||||
if( (nt>=1) && (nt<=numSec) )
|
||||
{
|
||||
test = exp( min( expxu, max( expxl, -(pi/4.0)*(nt*nt)/(n*n) ) ) );
|
||||
test = exp( G4std::min( expxu, G4std::max( expxl, -(pi/4.0)*(nt*nt)/(n*n) ) ) );
|
||||
dum = (pi/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
|
||||
if( fabs(dum) < 1.0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user