Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
@@ -59,12 +59,12 @@
using namespace std;
G4eBremsstrahlung::G4eBremsstrahlung(const G4String& name):
G4VEnergyLossProcess(name),
isInitialised(false)
G4VEnergyLossProcess(name)
{
SetProcessSubType(fBremsstrahlung);
SetSecondaryParticle(G4Gamma::Gamma());
SetIonisation(false);
SetCrossSectionType(fEmTwoPeaks);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -92,7 +92,7 @@ G4eBremsstrahlung::InitialiseEnergyLossProcess(const G4ParticleDefinition*,
G4double emax = param->MaxKinEnergy();
G4VEmFluctuationModel* fm = nullptr;
if (!EmModel(0)) { SetEmModel(new G4SeltzerBergerModel()); }
if (nullptr == EmModel(0)) { SetEmModel(new G4SeltzerBergerModel()); }
EmModel(0)->SetLowEnergyLimit(emin);
G4double energyLimit = std::min(EmModel(0)->HighEnergyLimit(), GeV);
EmModel(0)->SetHighEnergyLimit(energyLimit);
@@ -101,7 +101,7 @@ G4eBremsstrahlung::InitialiseEnergyLossProcess(const G4ParticleDefinition*,
AddEmModel(1, EmModel(0), fm);
if(emax > energyLimit) {
if (!EmModel(1)) { SetEmModel(new G4eBremsstrahlungRelModel()); }
if (nullptr == EmModel(1)) { SetEmModel(new G4eBremsstrahlungRelModel()); }
EmModel(1)->SetLowEnergyLimit(energyLimit);
EmModel(1)->SetHighEnergyLimit(emax);
EmModel(1)->SetSecondaryThreshold(param->BremsstrahlungTh());
@@ -116,7 +116,7 @@ G4eBremsstrahlung::InitialiseEnergyLossProcess(const G4ParticleDefinition*,
void G4eBremsstrahlung::StreamProcessInfo(std::ostream& out) const
{
if(EmModel(0)) {
if(nullptr != EmModel(0)) {
G4EmParameters* param = G4EmParameters::Instance();
G4double eth = param->BremsstrahlungTh();
out << " LPM flag: " << param->LPM() << " for E > "