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: G4OpAbsorption.cc,v 1.1.10.1 1999/12/07 20:52:51 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpAbsorption.cc,v 1.1.10.1.2.1 1999/12/08 17:35:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
////////////////////////////////////////////////////////////////////////
// Optical Photon Absorption Class Implementation
@@ -51,7 +51,7 @@ G4OpAbsorption::G4OpAbsorption(const G4String& processName)
: G4VDiscreteProcess(processName)
{
if (verboseLevel>0) {
G4cout << GetProcessName() << " is created " << endl;
G4cout << GetProcessName() << " is created " << G4endl;
}
}
@@ -80,7 +80,7 @@ G4OpAbsorption::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
aParticleChange.SetStatusChange(fStopAndKill);
if (verboseLevel>0) {
G4cout << "\n** Photon Absorbed! **" << endl;
G4cout << "\n** Photon Absorbed! **" << G4endl;
}
return G4VDiscreteProcess::PostStepDoIt(aTrack, aStep);
}
@@ -113,11 +113,11 @@ G4double G4OpAbsorption::GetMeanFreePath(const G4Track& aTrack,
GetProperty (thePhotonMomentum);
}
else {
G4cout << "No Absorbtion length specified" << endl;
G4cout << "No Absorbtion length specified" << G4endl;
}
}
else {
G4cout << "No Absorbtion length specified" << endl;
G4cout << "No Absorbtion length specified" << G4endl;
}
return AttenuationLength;
@@ -52,7 +52,7 @@ G4OpBoundaryProcess::G4OpBoundaryProcess(const G4String& processName)
: G4VDiscreteProcess(processName)
{
if ( verboseLevel > 0) {
G4cout << GetProcessName() << " is created " << endl;
G4cout << GetProcessName() << " is created " << G4endl;
}
theStatus = Undefined;
@@ -106,9 +106,9 @@ G4OpBoundaryProcess::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
OldPolarization = aParticle->GetPolarization();
if ( verboseLevel > 0 ) {
G4cout << " Photon at Boundary! " << endl;
G4cout << " Old Momentum Direction: " << OldMomentum << endl;
G4cout << " Old Polarization: " << OldPolarization << endl;
G4cout << " Photon at Boundary! " << G4endl;
G4cout << " Old Momentum Direction: " << OldMomentum << G4endl;
G4cout << " Old Polarization: " << OldPolarization << G4endl;
}
G4MaterialPropertiesTable* aMaterialPropertiesTable;
@@ -232,7 +232,7 @@ G4OpBoundaryProcess::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
else {
G4cerr << " G4OpBoundaryProcess/PostStepDoIt(): "
<< " The Navigator reports that it returned an invalid normal"
<< endl;
<< G4endl;
}
theGlobalNormal = theNavigator->GetLocalToGlobalTransform().
@@ -264,7 +264,7 @@ G4OpBoundaryProcess::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
}
else {
G4cout << " Error: G4BoundaryProcess: illegal boundary type " << endl;
G4cout << " Error: G4BoundaryProcess: illegal boundary type " << G4endl;
return G4VDiscreteProcess::PostStepDoIt(aTrack, aStep);
}
@@ -273,28 +273,28 @@ G4OpBoundaryProcess::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
NewPolarization = NewPolarization.unit();
if ( verboseLevel > 0) {
G4cout << " New Momentum Direction: " << NewMomentum << endl;
G4cout << " New Polarization: " << NewPolarization << endl;
G4cout << " New Momentum Direction: " << NewMomentum << G4endl;
G4cout << " New Polarization: " << NewPolarization << G4endl;
if ( theStatus == Undefined )
G4cout << " *** Undefined *** " << endl;
G4cout << " *** Undefined *** " << G4endl;
if ( theStatus == FresnelRefraction )
G4cout << " *** FresnelRefraction *** " << endl;
G4cout << " *** FresnelRefraction *** " << G4endl;
if ( theStatus == FresnelReflection )
G4cout << " *** FresnelReflection *** " << endl;
G4cout << " *** FresnelReflection *** " << G4endl;
if ( theStatus == TotalInternalReflection )
G4cout << " *** TotalInternalReflection *** " << endl;
G4cout << " *** TotalInternalReflection *** " << G4endl;
if ( theStatus == LambertianReflection )
G4cout << " *** LambertianReflection *** " << endl;
G4cout << " *** LambertianReflection *** " << G4endl;
if ( theStatus == LobeReflection )
G4cout << " *** LobeReflection *** " << endl;
G4cout << " *** LobeReflection *** " << G4endl;
if ( theStatus == SpikeReflection )
G4cout << " *** SpikeReflection *** " << endl;
G4cout << " *** SpikeReflection *** " << G4endl;
if ( theStatus == BackScattering )
G4cout << " *** BackScattering *** " << endl;
G4cout << " *** BackScattering *** " << G4endl;
if ( theStatus == Absorption )
G4cout << " *** Absorption *** " << endl;
G4cout << " *** Absorption *** " << G4endl;
if ( theStatus == Detection )
G4cout << " *** Detection *** " << endl;
G4cout << " *** Detection *** " << G4endl;
}
aParticleChange.SetMomentumChange(NewMomentum);
@@ -322,7 +322,7 @@ G4OpBoundaryProcess::GetFacetNormal(const G4ThreeVector& Momentum,
G4double sigma_alpha = 0.0;
if (OpticalSurface) sigma_alpha = OpticalSurface->GetSigmaAlpha();
G4double f_max = min(1.0,4.*sigma_alpha);
G4double f_max = G4std::min(1.0,4.*sigma_alpha);
do {
do {
+11 -11
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpRayleigh.cc,v 1.1.10.1 1999/12/07 20:52:52 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpRayleigh.cc,v 1.1.10.1.2.1 1999/12/08 17:35:14 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
////////////////////////////////////////////////////////////////////////
@@ -51,7 +51,7 @@ G4OpRayleigh::G4OpRayleigh(const G4String& processName)
thePhysicsTable = NULL;
if (verboseLevel>0) {
G4cout << GetProcessName() << " is created " << endl;
G4cout << GetProcessName() << " is created " << G4endl;
}
BuildThePhysicsTable();
@@ -89,11 +89,11 @@ G4OpRayleigh::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
const G4Material* aMaterial = aTrack.GetMaterial();
if (verboseLevel>0) {
G4cout << "Scattering Photon!" << endl;
G4cout << "Scattering Photon!" << G4endl;
G4cout << "Old Momentum Direction: "
<< aParticle->GetMomentumDirection() << endl;
<< aParticle->GetMomentumDirection() << G4endl;
G4cout << "Old Polarization: "
<< aParticle->GetPolarization() << endl;
<< aParticle->GetPolarization() << G4endl;
}
// find polar angle w.r.t. old polarization vector
@@ -152,13 +152,13 @@ G4OpRayleigh::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
if (verboseLevel>0) {
G4cout << "New Polarization: "
<< NewPolarization << endl;
<< NewPolarization << G4endl;
G4cout << "Polarization Change: "
<< *(aParticleChange.GetPolarizationChange()) << endl;
<< *(aParticleChange.GetPolarizationChange()) << G4endl;
G4cout << "New Momentum Direction: "
<< NewMomentumDirection << endl;
<< NewMomentumDirection << G4endl;
G4cout << "Momentum Change: "
<< *(aParticleChange.GetMomentumChange()) << endl;
<< *(aParticleChange.GetMomentumChange()) << G4endl;
}
return G4VDiscreteProcess::PostStepDoIt(aTrack, aStep);
@@ -285,7 +285,7 @@ G4OpRayleigh::RayleighAttenuationLengthGenerator(G4MaterialPropertiesTable *aMPT
Dist = 1.0 / (c1*c2*c3*c4);
if (verboseLevel>0) {
G4cout << Dist << " mm" << endl;
G4cout << Dist << " mm" << G4endl;
}
RayleighScatteringLengths->
InsertValues(Rindex->GetPhotonMomentum(), Dist);