Import Geant4 11.1.0.beta source tree
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user