Import Geant4 10.4.0 source tree
This commit is contained in:
@@ -23,13 +23,19 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
//
|
||||
// History: first implementation
|
||||
// June 2017 K.L. Genser, K. Lynch
|
||||
//
|
||||
// ---------------------------------------------------------------
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "G4MuonicAtomDecayPhysics.hh"
|
||||
|
||||
#include "G4GenericMuonicAtom.hh"
|
||||
#include "G4MuonicAtomDecay.hh"
|
||||
#include "G4GenericIon.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4PhysicsListHelper.hh"
|
||||
|
||||
@@ -41,16 +47,27 @@ G4_DECLARE_PHYSCONSTR_FACTORY(G4MuonicAtomDecayPhysics);
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4MuonicAtomDecayPhysics::G4MuonicAtomDecayPhysics(G4int)
|
||||
: G4VPhysicsConstructor("G4MuonicAtomDecay")
|
||||
G4MuonicAtomDecayPhysics::G4MuonicAtomDecayPhysics(G4int vL)
|
||||
: G4VPhysicsConstructor("G4MuonicAtomDecay")
|
||||
{
|
||||
G4cout << "G4MuonicAtomDecayPhysics()\n";
|
||||
SetVerboseLevel(vL);
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel()>0) {
|
||||
G4cout << "G4MuonicAtomDecayPhysics() with verboseLevel "
|
||||
<< verboseLevel << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
G4MuonicAtomDecayPhysics::G4MuonicAtomDecayPhysics(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
{
|
||||
G4cout << "G4MuonicAtomDecayPhysics()\n";
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel()>0) {
|
||||
G4cout << "G4MuonicAtomDecayPhysics() with verboseLevel "
|
||||
<< verboseLevel << " and name " << name << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -63,17 +80,35 @@ G4MuonicAtomDecayPhysics::~G4MuonicAtomDecayPhysics()
|
||||
|
||||
void G4MuonicAtomDecayPhysics::ConstructParticle()
|
||||
{
|
||||
G4cout << "G4MuonicAtomDecayPhysics::ConstructParticle()\n";
|
||||
G4GenericIon::GenericIon();
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel()>0) {
|
||||
G4cout << "G4MuonicAtomDecayPhysics::ConstructParticle()" << G4endl;
|
||||
}
|
||||
#endif
|
||||
G4GenericMuonicAtom::GenericMuonicAtom();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void G4MuonicAtomDecayPhysics::ConstructProcess()
|
||||
{
|
||||
G4cout << "G4MuonicAtomDecayPhysics::ConstructProcess()\n";
|
||||
G4PhysicsListHelper::GetPhysicsListHelper()->
|
||||
RegisterProcess(new G4MuonicAtomDecay(), G4GenericIon::GenericIon());
|
||||
G4PhysicsListHelper* plh = G4PhysicsListHelper::GetPhysicsListHelper();
|
||||
G4int plhvl = plh->GetVerboseLevel();
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel()>0) {
|
||||
G4cout << "G4MuonicAtomDecayPhysics::ConstructProcess() verboseLevel "
|
||||
<< GetVerboseLevel() << " to be set to " << plhvl << G4endl;
|
||||
}
|
||||
#endif
|
||||
G4bool rc1 = plh->
|
||||
RegisterProcess(new G4MuonicAtomDecay(nullptr), // default G4HadronicInteraction* will be set
|
||||
G4GenericMuonicAtom::GenericMuonicAtom());
|
||||
plh->SetVerboseLevel(plhvl);
|
||||
if (!(rc1)) {
|
||||
G4cout << " G4MuonicAtomDecayPhysics::ConstructProcess() : "
|
||||
<< " RegisterProcess failed for G4GenericMuonicAtom "
|
||||
<< G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -45,19 +45,14 @@
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4RadioactiveDecayPhysics);
|
||||
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4RadioactiveDecayPhysics::G4RadioactiveDecayPhysics(G4int)
|
||||
: G4VPhysicsConstructor("G4RadioactiveDecay")//, theRadioactiveDecay(0)
|
||||
: G4VPhysicsConstructor("G4RadioactiveDecay")
|
||||
{
|
||||
G4EmParameters* param = G4EmParameters::Instance();
|
||||
param->SetAugerCascade(true);
|
||||
param->AddPhysics("world","G4RadioactiveDecay");
|
||||
|
||||
G4EmParameters::Instance()->SetAugerCascade(true);
|
||||
G4DeexPrecoParameters* deex = G4NuclearLevelData::GetInstance()->GetParameters();
|
||||
deex->SetUseFilesNEW(true);
|
||||
deex->SetStoreAllLevels(true);
|
||||
deex->SetStoreICLevelData(true);
|
||||
deex->SetMaxLifeTime(G4NuclideTable::GetInstance()->GetThresholdOfHalfLife()
|
||||
/std::log(2.));
|
||||
}
|
||||
@@ -69,9 +64,7 @@ G4RadioactiveDecayPhysics::G4RadioactiveDecayPhysics(const G4String&)
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4RadioactiveDecayPhysics::~G4RadioactiveDecayPhysics()
|
||||
{
|
||||
//delete theRadioactiveDecay;
|
||||
}
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -87,6 +80,7 @@ void G4RadioactiveDecayPhysics::ConstructProcess()
|
||||
G4LossTableManager* man = G4LossTableManager::Instance();
|
||||
G4VAtomDeexcitation* ad = man->AtomDeexcitation();
|
||||
if(!ad) {
|
||||
G4EmParameters::Instance()->SetAugerCascade(true);
|
||||
ad = new G4UAtomicDeexcitation();
|
||||
man->SetAtomDeexcitation(ad);
|
||||
ad->InitialiseAtomicDeexcitation();
|
||||
|
||||
Reference in New Issue
Block a user