Import Geant4 10.3.0 source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4DecayPhysics.cc 71039 2013-06-10 09:23:55Z gcosmo $
|
||||
// $Id: G4DecayPhysics.cc 99983 2016-10-13 07:34:14Z gcosmo $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -106,12 +106,13 @@ void G4DecayPhysics::ConstructProcess()
|
||||
|
||||
// Add Decay Process
|
||||
fDecayProcess = new G4Decay();
|
||||
aParticleIterator->reset();
|
||||
auto myParticleIterator=GetParticleIterator();
|
||||
myParticleIterator->reset();
|
||||
G4ParticleDefinition* particle=0;
|
||||
|
||||
while( (*aParticleIterator)() )
|
||||
while( (*myParticleIterator)() )
|
||||
{
|
||||
particle = aParticleIterator->value();
|
||||
particle = myParticleIterator->value();
|
||||
if( fDecayProcess->IsApplicable(*particle) )
|
||||
{
|
||||
if(verbose > 1) {
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "G4MuonicAtomDecayPhysics.hh"
|
||||
|
||||
#include "G4MuonicAtomDecay.hh"
|
||||
#include "G4GenericIon.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4PhysicsListHelper.hh"
|
||||
|
||||
// factory
|
||||
#include "G4PhysicsConstructorFactory.hh"
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4MuonicAtomDecayPhysics);
|
||||
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4MuonicAtomDecayPhysics::G4MuonicAtomDecayPhysics(G4int)
|
||||
: G4VPhysicsConstructor("G4MuonicAtomDecay")
|
||||
{
|
||||
G4cout << "G4MuonicAtomDecayPhysics()\n";
|
||||
}
|
||||
|
||||
G4MuonicAtomDecayPhysics::G4MuonicAtomDecayPhysics(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
{
|
||||
G4cout << "G4MuonicAtomDecayPhysics()\n";
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4MuonicAtomDecayPhysics::~G4MuonicAtomDecayPhysics()
|
||||
{
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void G4MuonicAtomDecayPhysics::ConstructParticle()
|
||||
{
|
||||
G4cout << "G4MuonicAtomDecayPhysics::ConstructParticle()\n";
|
||||
G4GenericIon::GenericIon();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void G4MuonicAtomDecayPhysics::ConstructProcess()
|
||||
{
|
||||
G4cout << "G4MuonicAtomDecayPhysics::ConstructProcess()\n";
|
||||
G4PhysicsListHelper::GetPhysicsListHelper()->
|
||||
RegisterProcess(new G4MuonicAtomDecay(), G4GenericIon::GenericIon());
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
#include "G4VAtomDeexcitation.hh"
|
||||
#include "G4UAtomicDeexcitation.hh"
|
||||
#include "G4LossTableManager.hh"
|
||||
#include "G4NuclearLevelData.hh"
|
||||
#include "G4DeexPrecoParameters.hh"
|
||||
|
||||
// factory
|
||||
#include "G4PhysicsConstructorFactory.hh"
|
||||
@@ -47,10 +49,19 @@ G4_DECLARE_PHYSCONSTR_FACTORY(G4RadioactiveDecayPhysics);
|
||||
|
||||
G4RadioactiveDecayPhysics::G4RadioactiveDecayPhysics(G4int)
|
||||
: G4VPhysicsConstructor("G4RadioactiveDecay")//, theRadioactiveDecay(0)
|
||||
{}
|
||||
{
|
||||
G4EmParameters* param = G4EmParameters::Instance();
|
||||
param->SetFluo(true);
|
||||
param->SetAuger(true);
|
||||
param->SetAugerCascade(true);
|
||||
param->SetDeexcitationIgnoreCut(true);
|
||||
param->AddMsc("world","G4RadioactiveDecay");
|
||||
|
||||
G4RadioactiveDecayPhysics::G4RadioactiveDecayPhysics(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)//, theRadioactiveDecay(0)
|
||||
G4NuclearLevelData::GetInstance()->GetParameters()->SetUseFilesNEW(true);
|
||||
}
|
||||
|
||||
G4RadioactiveDecayPhysics::G4RadioactiveDecayPhysics(const G4String&)
|
||||
: G4RadioactiveDecayPhysics(0)
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -74,11 +85,10 @@ void G4RadioactiveDecayPhysics::ConstructProcess()
|
||||
G4LossTableManager* man = G4LossTableManager::Instance();
|
||||
G4VAtomDeexcitation* ad = man->AtomDeexcitation();
|
||||
if(!ad) {
|
||||
man->SetAtomDeexcitation(new G4UAtomicDeexcitation());
|
||||
ad = new G4UAtomicDeexcitation();
|
||||
man->SetAtomDeexcitation(ad);
|
||||
ad->InitialiseAtomicDeexcitation();
|
||||
}
|
||||
G4EmParameters* param = G4EmParameters::Instance();
|
||||
param->SetFluo(true);
|
||||
param->SetAuger(true);
|
||||
|
||||
G4PhysicsListHelper::GetPhysicsListHelper()->
|
||||
RegisterProcess(new G4RadioactiveDecay(), G4GenericIon::GenericIon());
|
||||
|
||||
@@ -75,12 +75,13 @@ void G4UnknownDecayPhysics::ConstructProcess()
|
||||
|
||||
// Add Decay Process
|
||||
fDecayProcess = new G4UnknownDecay();
|
||||
aParticleIterator->reset();
|
||||
auto myParticleIterator=GetParticleIterator();
|
||||
myParticleIterator->reset();
|
||||
G4ParticleDefinition* particle=0;
|
||||
|
||||
while( (*aParticleIterator)() )
|
||||
while( (*myParticleIterator)() )
|
||||
{
|
||||
particle = aParticleIterator->value();
|
||||
particle = myParticleIterator->value();
|
||||
if( fDecayProcess->IsApplicable(*particle) )
|
||||
{
|
||||
if(verbose > 1) {
|
||||
|
||||
Reference in New Issue
Block a user