Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -53,7 +53,6 @@
|
||||
#include "G4BetheBlochModel.hh"
|
||||
#include "G4IonFluctuations.hh"
|
||||
#include "G4UniversalFluctuation.hh"
|
||||
#include "G4BohrFluctuations.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "G4PionPlus.hh"
|
||||
#include "G4PionMinus.hh"
|
||||
@@ -64,8 +63,6 @@
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
using namespace std;
|
||||
|
||||
G4hIonisation::G4hIonisation(const G4String& name)
|
||||
: G4VEnergyLossProcess(name),
|
||||
isInitialised(false)
|
||||
@@ -74,7 +71,7 @@ G4hIonisation::G4hIonisation(const G4String& name)
|
||||
SetSecondaryParticle(G4Electron::Electron());
|
||||
mass = 0.0;
|
||||
ratio = 0.0;
|
||||
eth = 2*MeV;
|
||||
eth = 2*CLHEP::MeV;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -84,10 +81,9 @@ G4hIonisation::~G4hIonisation()
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4bool G4hIonisation::IsApplicable(const G4ParticleDefinition& p)
|
||||
G4bool G4hIonisation::IsApplicable(const G4ParticleDefinition&)
|
||||
{
|
||||
return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 10.0*MeV &&
|
||||
!p.IsShortLived());
|
||||
return true;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -157,7 +153,7 @@ void G4hIonisation::InitialiseEnergyLossProcess(
|
||||
SetDEDXBinning(bin);
|
||||
}
|
||||
|
||||
if (!EmModel(0)) {
|
||||
if (nullptr == EmModel(0)) {
|
||||
if(q > 0.0) { SetEmModel(new G4BraggModel()); }
|
||||
else { SetEmModel(new G4ICRU73QOModel()); }
|
||||
}
|
||||
@@ -165,9 +161,9 @@ void G4hIonisation::InitialiseEnergyLossProcess(
|
||||
EmModel(0)->SetHighEnergyLimit(eth);
|
||||
AddEmModel(1, EmModel(0), new G4IonFluctuations());
|
||||
|
||||
if (!FluctModel()) { SetFluctModel(new G4UniversalFluctuation()); }
|
||||
if (nullptr == FluctModel()) { SetFluctModel(new G4UniversalFluctuation()); }
|
||||
|
||||
if (!EmModel(1)) { SetEmModel(new G4BetheBlochModel()); }
|
||||
if (nullptr == EmModel(1)) { SetEmModel(new G4BetheBlochModel()); }
|
||||
EmModel(1)->SetLowEnergyLimit(eth);
|
||||
EmModel(1)->SetHighEnergyLimit(emax);
|
||||
AddEmModel(1, EmModel(1), FluctModel());
|
||||
@@ -178,11 +174,6 @@ void G4hIonisation::InitialiseEnergyLossProcess(
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void G4hIonisation::PrintInfo()
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void G4hIonisation::ProcessDescription(std::ostream& out) const
|
||||
{
|
||||
out << " Ionisation";
|
||||
|
||||
Reference in New Issue
Block a user