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 "G4HadronElasticPhysicsXS.hh"
#include "G4HadronPhysicsFTFP_BERT_HP.hh"
@@ -68,7 +70,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
RegisterPhysics( new HadronElasticPhysicsHP(verb) );
////RegisterPhysics( new G4HadronElasticPhysicsXS(verb) );
@@ -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 =
+1 -1
View File
@@ -292,7 +292,7 @@ void Run::EndOfRun()
//particles at creation
//
if (fParticleDataMap1.size() > 0) {
G4cout << "\n List of particles at creation (with meanLife != 0):"
G4cout << "\n List of particles at creation :"
<< G4endl;
std::map<G4String,ParticleData>::iterator itc;
for (itc = fParticleDataMap1.begin(); itc != fParticleDataMap1.end(); itc++) {
@@ -75,9 +75,7 @@ void TrackingAction::PreUserTrackingAction(const G4Track* track)
G4String name = particle->GetParticleName();
G4double meanLife = particle->GetPDGLifeTime();
G4double energy = track->GetKineticEnergy();
//do not count excited states with meanlife = 0.
if (fParticleCount && (meanLife != 0.))
run->ParticleCount(name,energy,meanLife);
if (fParticleCount) run->ParticleCount(name,energy,meanLife);
// histograms: energy at creation
//