Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
@@ -29,29 +29,20 @@
//
// G4VHighEnergyGenerator
#include "G4VHighEnergyGenerator.hh"
#include "G4HadronicException.hh"
G4VHighEnergyGenerator::G4VHighEnergyGenerator(const G4String& modelName)
: epCheckLevels(DBL_MAX,DBL_MAX)
: G4HadronicInteraction(modelName)
{
theGeneratorModelName=modelName;
}
G4VHighEnergyGenerator::~G4VHighEnergyGenerator()
{
}
std::pair<G4double, G4double> G4VHighEnergyGenerator::GetEnergyMomentumCheckLevels() const
G4HadFinalState*
G4VHighEnergyGenerator::ApplyYourself(const G4HadProjectile&, G4Nucleus&)
{
return epCheckLevels;
}
void G4VHighEnergyGenerator::SetEnergyMomentumCheckLevels(
G4double relativeLevel, G4double absoluteLevel)
{
epCheckLevels.first=relativeLevel;
epCheckLevels.second=absoluteLevel;
return nullptr;
}
void G4VHighEnergyGenerator::ModelDescription(std::ostream& outFile) const
@@ -59,15 +50,10 @@ void G4VHighEnergyGenerator::ModelDescription(std::ostream& outFile) const
outFile << " Parton-string models description not written yet \n";
}
G4String G4VHighEnergyGenerator::GetModelName() const
{
return theGeneratorModelName;
}
G4V3DNucleus * G4VHighEnergyGenerator::GetProjectileNucleus() const // Uzhi Nov. 2012
{ // Uzhi Nov. 2012
G4ExceptionDescription ed;
ed << "The used HighEnergyGenerator "<<GetModelName()<<" cannot manage with a residual projectile nucleus" << G4endl;
ed << "The used HighEnergyGenerator "<<GetModelName()<<" cannot manage with a residual projectile nucleus";
G4Exception("G4VHighEnergyGenerator::GetProjectileNucleus ", "G4had_mod_man",
FatalException, ed);
return 0;