Import Geant4 10.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-12-09 12:35:28 +01:00
parent 4ec577e5c4
commit a3452e42ac
3514 changed files with 210500 additions and 89628 deletions
@@ -1,4 +1,4 @@
$Id: History 97914 2016-06-22 15:22:24Z gcosmo $
$Id: History 101863 2016-12-02 12:48:47Z gcosmo $
-------------------------------------------------------------------
=========================================================
@@ -14,6 +14,26 @@ introduced in the code and keeptrack of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
02-Dec-2016, Vladimir Ivanchenko (phys-ctor-decay-V10-02-07)
- G4RadioactiveDecayPhysics - fixed initialisation (also for the
cases when radioactive decay is registered before EM physics or
is the only physics constructor)
01-Dec-2016, Vladimir Ivanchenko (phys-ctor-decay-V10-02-06)
- G4RadioactiveDecayPhysics - enable reading from new gamma evaporation
files, enable Auger cascade, do not apply cuts
17-October-2016 Kevin Lynch (for Lynch and Genser) (phys-ctor-decay-V10-02-05)
- Add G4MuonicAtomDecayPhysics constructor to enable decay of muonic atoms
- depends on tag decay-V10-02-02
16-October-2016 M.Maire (phys-ctor-decay-V10-02-04)
- add README
12-October-2016 G.Folger (phys-ctor-decay-V10-02-03)
- replace direct use of aParticleIterator by GetParticleIterator().
fix required by clang39 on Windows and MAC
22-Jun-2016, Vladimir Ivanchenko (phys-ctor-decay-V10-02-02)
22-Jun-2016, Vladimir Ivanchenko (phys-ctor-decay-V10-02-01)
- G4RadioactiveDecayPhysics - enable atomic de-excitation by the call
@@ -0,0 +1,15 @@
$Id: $
-------------------------------------------------------------------
G4DecayPhysics
--------------
G4RadioactiveDecayPhysics
-------------------------
G4SpinDecayPhysics
------------------
G4UnknownDecayPhysics
---------------------
@@ -0,0 +1,65 @@
//
// ********************************************************************
// * 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......
#ifndef G4MuonicAtomDecayPhysics_h
#define G4MuonicAtomDecayPhysics_h 1
#include "G4VPhysicsConstructor.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class G4MuonicAtomDecayPhysics : public G4VPhysicsConstructor
{
public:
G4MuonicAtomDecayPhysics(G4int verbose =1);
G4MuonicAtomDecayPhysics(const G4String& name);
virtual ~G4MuonicAtomDecayPhysics();
public:
// This method is dummy for physics
virtual void ConstructParticle() override;
// This method will be invoked in the Construct() method.
// each physics process will be instantiated and
// registered to the process manager of each particle type
virtual void ConstructProcess() override;
private:
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -11,7 +11,7 @@
#
# Generated on : 10/01/2013
#
# $Id: sources.cmake 97907 2016-06-22 13:37:05Z gcosmo $
# $Id: sources.cmake 100331 2016-10-18 07:33:28Z gcosmo $
#
#------------------------------------------------------------------------------
@@ -87,11 +87,13 @@ include(Geant4MacroDefineModule)
GEANT4_DEFINE_MODULE(NAME G4phys_ctor_decay
HEADERS
G4DecayPhysics.hh
G4MuonicAtomDecayPhysics.hh
G4SpinDecayPhysics.hh
G4RadioactiveDecayPhysics.hh
G4UnknownDecayPhysics.hh
SOURCES
G4DecayPhysics.cc
G4MuonicAtomDecayPhysics.cc
G4SpinDecayPhysics.cc
G4RadioactiveDecayPhysics.cc
G4UnknownDecayPhysics.cc
@@ -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) {