Import Geant4 11.1.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2022-07-01 10:44:02 +02:00
parent b3bf75a2a1
commit c07cea1fe0
2172 changed files with 183300 additions and 123938 deletions
+3 -7
View File
@@ -86,10 +86,7 @@ G4OpRayleigh::~G4OpRayleigh()
{
// VI: inside this PhysicsTable all properties are unique
// it is not possible to destroy
if(thePhysicsTable)
{
delete thePhysicsTable;
}
delete thePhysicsTable;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -220,8 +217,7 @@ void G4OpRayleigh::BuildPhysicsTable(const G4ParticleDefinition&)
G4double G4OpRayleigh::GetMeanFreePath(const G4Track& aTrack, G4double,
G4ForceCondition*)
{
G4PhysicsFreeVector* rayleigh =
static_cast<G4PhysicsFreeVector*>(
auto rayleigh = static_cast<G4PhysicsFreeVector*>(
(*thePhysicsTable)(aTrack.GetMaterial()->GetIndex()));
G4double rsLength = DBL_MAX;
@@ -281,7 +277,7 @@ G4PhysicsFreeVector* G4OpRayleigh::CalculateRayleighMeanFreePaths(
temperature = material->GetTemperature();
}
G4PhysicsFreeVector* rayleighMFPs = new G4PhysicsFreeVector();
auto rayleighMFPs = new G4PhysicsFreeVector();
// This calculates the meanFreePath via the Einstein-Smoluchowski formula
const G4double c1 =
scaleFactor * betat * temperature * k_Boltzmann / (6.0 * pi);