Import Geant4 5.2.0 source tree
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4EnergyRangeManager.cc,v 1.8 2003/01/27 09:57:13 jwellisc Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
// Hadronic Process: Energy Range Manager
|
||||
// original by H.P. Wellisch
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
G4int randomPi0 = static_cast<G4int>((npi0+1)*G4UniformRand());
|
||||
G4int randomLepton = static_cast<G4int>((nLepton+1)*G4UniformRand());
|
||||
|
||||
G4std::vector<G4Track*> buffer;
|
||||
std::vector<G4Track*> buffer;
|
||||
G4int cMeson(0), cBaryon(0), cpi0(0), cgamma(0), cLepton(0);
|
||||
for(i=0; i<result->GetNumberOfSecondaries(); i++)
|
||||
{
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
|
||||
G4double G4HadronInelasticProcess::GetMeanFreePath(
|
||||
const G4Track &aTrack,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition *condition )
|
||||
G4double ,
|
||||
G4ForceCondition *)
|
||||
{
|
||||
const G4DynamicParticle *aParticle = aTrack.GetDynamicParticle();
|
||||
if( aParticle->GetDefinition() != theParticle &&
|
||||
|
||||
@@ -35,7 +35,7 @@ RegisterMe(G4HadronicInteraction * aModel)
|
||||
void G4HadronicInteractionRegistry::
|
||||
RemoveMe(G4HadronicInteraction * aModel)
|
||||
{
|
||||
theRegistry.allModels.erase(G4std::find(theRegistry.allModels.begin(), theRegistry.allModels.end(), aModel));
|
||||
theRegistry.allModels.erase(std::find(theRegistry.allModels.begin(), theRegistry.allModels.end(), aModel));
|
||||
theRegistry.nModels = theRegistry.allModels.size();
|
||||
}
|
||||
|
||||
|
||||
@@ -22,9 +22,12 @@
|
||||
//
|
||||
//
|
||||
//
|
||||
// HPW to implement the choosing of an element for scattering.
|
||||
#include "g4std/fstream"
|
||||
#include "g4std/strstream"
|
||||
// HPW to implement the choosing of an element for scattering.
|
||||
|
||||
#include "G4Types.hh"
|
||||
|
||||
#include <fstream>
|
||||
#include <strstream>
|
||||
#include <stdlib.h>
|
||||
#include "G4HadronicProcess.hh"
|
||||
#include "G4EffectiveCharge.hh"
|
||||
@@ -58,7 +61,7 @@
|
||||
G4double aTemp = aMaterial->GetTemperature();
|
||||
G4double crossSectionTotal = 0;
|
||||
G4int i;
|
||||
G4std::vector<G4double> runningSum;
|
||||
std::vector<G4double> runningSum;
|
||||
for( i=0; i < numberOfElements; ++i )
|
||||
{
|
||||
runningSum.push_back(theAtomicNumberDensity[i] *
|
||||
@@ -84,7 +87,7 @@
|
||||
}
|
||||
|
||||
G4VParticleChange *G4HadronicProcess::GeneralPostStepDoIt(
|
||||
const G4Track &aTrack, const G4Step &aStep )
|
||||
const G4Track &aTrack, const G4Step &)
|
||||
{
|
||||
const G4DynamicParticle *aParticle = aTrack.GetDynamicParticle();
|
||||
G4Material *aMaterial = aTrack.GetMaterial();
|
||||
@@ -181,7 +184,7 @@
|
||||
}
|
||||
|
||||
G4IsoResult * G4HadronicProcess::
|
||||
ExtractResidualNucleus(const G4Track & aTrack,
|
||||
ExtractResidualNucleus(const G4Track & ,
|
||||
const G4Nucleus & aNucleus,
|
||||
G4VParticleChange * aResult)
|
||||
{
|
||||
@@ -214,7 +217,7 @@
|
||||
|
||||
// prepare the IsoResult.
|
||||
char the1[100] = {""};
|
||||
G4std::ostrstream ost1(the1, 100, G4std::ios::out);
|
||||
std::ostrstream ost1(the1, 100, std::ios::out);
|
||||
ost1 <<Z<<"_"<<A<<"\0";
|
||||
G4String * biff = new G4String(the1);
|
||||
G4IsoResult * theResult = new G4IsoResult(*biff, aNucleus);
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
for( i=2; i<=nm; i++ )nmf += log((double)i);
|
||||
for( i=2; i<=nz; i++ )nzf += log((double)i);
|
||||
G4double r;
|
||||
r = G4std::min( expxu, G4std::max( expxl, -(np-nm+nz+b)*(np-nm+nz+b)/(2*c*c*n*n)-npf-nmf-nzf ) );
|
||||
r = std::min( expxu, std::max( expxl, -(np-nm+nz+b)*(np-nm+nz+b)/(2*c*c*n*n)-npf-nmf-nzf ) );
|
||||
return exp(r);
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
for( G4int i=iBegin; i<=numSec; ++i )
|
||||
{
|
||||
temp = pi*i/(2.0*n*n);
|
||||
test = exp( G4std::min( expxu, G4std::max( expxl, -(pi/4.0)*(i*i)/(n*n) ) ) );
|
||||
test = exp( std::min( expxu, std::max( expxl, -(pi/4.0)*(i*i)/(n*n) ) ) );
|
||||
if( temp < 1.0 )
|
||||
{
|
||||
if( test >= 1.0e-10 )anpn += temp*test;
|
||||
@@ -227,7 +227,7 @@
|
||||
//
|
||||
tkin = targetNucleus.EvaporationEffects( ek );
|
||||
ekOrg -= tkin;
|
||||
ekOrg = G4std::max( 0.0001*GeV, ekOrg );
|
||||
ekOrg = std::max( 0.0001*GeV, ekOrg );
|
||||
modifiedOriginal.SetKineticEnergy( ekOrg );
|
||||
G4double amas = originalIncident->GetDefinition()->GetPDGMass();
|
||||
G4double et = ekOrg + amas;
|
||||
|
||||
Reference in New Issue
Block a user