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
@@ -34,6 +34,8 @@
#include "G4SystemOfUnits.hh"
#include "G4UnitsTable.hh"
#include "G4NuclideTable.hh"
#include "HadronElasticPhysicsHP.hh"
#include "G4HadronPhysicsFTFP_BERT_HP.hh"
@@ -79,7 +81,12 @@ PhysicsList::PhysicsList()
//
new G4UnitDefinition( "mm2/g", "mm2/g", "Surface/Mass", mm2/g);
new G4UnitDefinition( "um2/mg", "um2/mg","Surface/Mass", um*um/mg);
// mandatory for G4NuclideTable
//
const G4double meanLife = 1*nanosecond, halfLife = meanLife*std::log(2);
G4NuclideTable::GetInstance()->SetThresholdOfHalfLife(halfLife);
// Hadron Elastic scattering
fHadronElastic = new HadronElasticPhysicsHP(verb);
RegisterPhysics(fHadronElastic);
@@ -45,11 +45,6 @@
RadioactiveDecayPhysics::RadioactiveDecayPhysics(const G4String& name)
: G4VPhysicsConstructor(name)
{
// mandatory for G4NuclideTable
//
////G4NuclideTable::GetInstance()->SetThresholdOfHalfLife(0.1*picosecond);
////G4NuclideTable::GetInstance()->SetLevelTolerance(1.0*eV);
// hadronic physics extra configuration
//
G4DeexPrecoParameters* deex =
@@ -258,7 +258,7 @@ void Run::EndOfRun()
//particles count
//
G4cout << "\n List of generated particles (with meanLife != 0):" << G4endl;
G4cout << "\n List of generated particles (with meanLife != 0) :" << G4endl;
std::map<G4String,ParticleData>::iterator itc;
for (itc = fParticleDataMap1.begin(); itc != fParticleDataMap1.end(); itc++) {
@@ -63,8 +63,7 @@ void TrackingAction::PreUserTrackingAction(const G4Track* track)
G4String name = track->GetDefinition()->GetParticleName();
G4double meanLife = track->GetDefinition()->GetPDGLifeTime();
G4double energy = track->GetKineticEnergy();
//do not count excited states with meanlife = 0.
if (meanLife != 0.) run->ParticleCount(name,energy,meanLife);
if (meanLife != 0 ) run->ParticleCount(name,energy,meanLife);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......