// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // G. PaternĂ², April 2024 // //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #include "DecayPhysics.hh" #include "G4UnitsTable.hh" #include "G4SystemOfUnits.hh" #include "globals.hh" #include "G4Decay.hh" #include "G4PhysicsListHelper.hh" #include "G4Radioactivation.hh" #include "G4LossTableManager.hh" #include "G4UAtomicDeexcitation.hh" #include "G4ParticleTypes.hh" #include "G4NuclideTable.hh" #include "G4NuclearLevelData.hh" #include "G4DeexPrecoParameters.hh" #include "G4PhysListUtil.hh" #include "G4EmBuilder.hh" #include "G4ProcessManager.hh" #include "G4BosonConstructor.hh" #include "G4LeptonConstructor.hh" #include "G4MesonConstructor.hh" #include "G4BosonConstructor.hh" #include "G4BaryonConstructor.hh" #include "G4IonConstructor.hh" #include "G4GenericIon.hh" //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... DecayPhysics::DecayPhysics(const G4String& name):G4VPhysicsConstructor(name) { //G4cout << "### Decay physics intantiated ###" << G4endl; //instantiate Physics List infrastructure G4PhysListUtil::InitialiseParameters(); //update G4NuclideTable time limit const G4double meanLife = 0.1*picosecond; G4NuclideTable::GetInstance()->SetMeanLifeThreshold(meanLife); G4NuclideTable::GetInstance()->SetLevelTolerance(1.0*eV); //define flags for nuclear gamma de-excitation model G4DeexPrecoParameters* deex = G4NuclearLevelData::GetInstance()->GetParameters(); deex->SetCorrelatedGamma(false); deex->SetStoreAllLevels(true); deex->SetInternalConversionFlag(true); deex->SetIsomerProduction(true); deex->SetMaxLifeTime(meanLife); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... DecayPhysics::~DecayPhysics(){;} //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... void DecayPhysics::ConstructParticle() { G4BosonConstructor pBosonConstructor; pBosonConstructor.ConstructParticle(); G4LeptonConstructor pLeptonConstructor; pLeptonConstructor.ConstructParticle(); G4MesonConstructor pMesonConstructor; pMesonConstructor.ConstructParticle(); G4BaryonConstructor pBaryonConstructor; pBaryonConstructor.ConstructParticle(); G4IonConstructor pIonConstructor; pIonConstructor.ConstructParticle(); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... void DecayPhysics::ConstructProcess() { G4cout << G4endl << "### Decay processes activated ###" << G4endl; G4Decay* theDecayProcess = new G4Decay(); GetParticleIterator()->reset(); while ( (*GetParticleIterator())() ) { G4ParticleDefinition* particle = GetParticleIterator()->value(); G4ProcessManager* pmanager = particle->GetProcessManager(); if (theDecayProcess->IsApplicable(*particle)) { pmanager->AddProcess(theDecayProcess); //set ordering for PostStepDoIt and AtRestDoIt pmanager->SetProcessOrdering(theDecayProcess, idxPostStep); pmanager->SetProcessOrdering(theDecayProcess, idxAtRest); } } G4Radioactivation* radioactiveDecay = new G4Radioactivation("Radioactivation", 1.0e+60*CLHEP::year); radioactiveDecay->SetARM(true); //Atomic Rearangement /* //if EM physics constructor is not used, it is needed //to instantiate and to initialize atomic deexcitation G4LossTableManager* man = G4LossTableManager::Instance(); G4VAtomDeexcitation* deex = man->AtomDeexcitation(); if (nullptr == deex) { deex = new G4UAtomicDeexcitation(); man->SetAtomDeexcitation(deex); } deex->InitialiseAtomicDeexcitation(); */ G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper(); ph->RegisterProcess(radioactiveDecay, G4GenericIon::GenericIon()); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......