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
@@ -33,6 +33,8 @@
#include "G4SystemOfUnits.hh"
#include "G4NuclideTable.hh"
#include "G4HadronElasticPhysicsXS.hh"
#include "HadronElasticPhysicsHP.hh"
#include "G4HadronPhysicsFTFP_BERT_HP.hh"
@@ -63,7 +65,12 @@ PhysicsList::PhysicsList()
{
G4int verb = 1;
SetVerboseLevel(verb);
// mandatory for G4NuclideTable
//
const G4double meanLife = 1*nanosecond, halfLife = meanLife*std::log(2);
G4NuclideTable::GetInstance()->SetThresholdOfHalfLife(halfLife);
// Hadron Elastic scattering
RegisterPhysics( new G4HadronElasticPhysicsXS(verb) );
///RegisterPhysics( new HadronElasticPhysicsHP(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 =
@@ -123,7 +123,7 @@ G4double SteppingAction::BirksAttenuation(const G4Step* aStep)
//Example of Birk attenuation law in organic scintillators.
//adapted from Geant3 PHYS337. See MIN 80 (1970) 239-244
//
G4Material* material = aStep->GetTrack()->GetMaterial();
const G4Material* material = aStep->GetTrack()->GetMaterial();
G4double birk1 = material->GetIonisation()->GetBirksConstant();
G4double destep = aStep->GetTotalEnergyDeposit();
G4double stepl = aStep->GetStepLength();