Import Geant4 8.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:07:44 +02:00
parent fe73f43734
commit 75c7fd177d
764 changed files with 45230 additions and 95238 deletions
@@ -1,105 +0,0 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
// $Id: PhysListBinaryCascade.cc,v 1.4 2006/08/10 08:44:39 vnivanch Exp $
// GEANT4 tag $Name: geant4-08-02 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "PhysListBinaryCascade.hh"
#include "G4ParticleDefinition.hh"
#include "G4ProcessManager.hh"
#include "G4LFission.hh"
#include "G4LCapture.hh"
#include "G4Proton.hh"
#include "G4Neutron.hh"
#include "G4ProtonInelasticProcess.hh"
#include "G4NeutronInelasticProcess.hh"
#include "G4ProtonInelasticCrossSection.hh"
#include "G4NeutronInelasticCrossSection.hh"
#include "G4HadronFissionProcess.hh"
#include "G4HadronCaptureProcess.hh"
#include "G4BinaryCascade.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListBinaryCascade::PhysListBinaryCascade(const G4String& name)
: G4VPhysicsConstructor(name)
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListBinaryCascade::~PhysListBinaryCascade()
{
delete theIPproton;
delete theIPneutron;
delete theFissionProcess;
delete theCaptureProcess;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void PhysListBinaryCascade::ConstructProcess()
{
// Binary Cascade
G4ParticleDefinition* particle = 0;
G4ProcessManager* pmanager = 0;
G4BinaryCascade* theBC = 0;
// proton
particle = G4Proton::Proton();
pmanager = particle->GetProcessManager();
theBC = new G4BinaryCascade();
theIPproton = new G4ProtonInelasticProcess();
theIPproton->RegisterMe(theBC);
theIPproton->AddDataSet(new G4ProtonInelasticCrossSection);
pmanager->AddDiscreteProcess(theIPproton);
// neutron
particle = G4Neutron::Neutron();
pmanager = particle->GetProcessManager();
theBC = new G4BinaryCascade();
theIPneutron = new G4NeutronInelasticProcess();
theIPneutron->RegisterMe(theBC);
theIPneutron->AddDataSet(new G4NeutronInelasticCrossSection);
pmanager->AddDiscreteProcess(theIPneutron);
// fission
theFissionProcess = new G4HadronFissionProcess;
G4LFission* theFissionModel = new G4LFission;
theFissionProcess->RegisterMe(theFissionModel);
pmanager->AddDiscreteProcess(theFissionProcess);
// capture
theCaptureProcess = new G4HadronCaptureProcess;
G4LCapture* theCaptureModel = new G4LCapture;
theCaptureProcess->RegisterMe(theCaptureModel);
pmanager->AddDiscreteProcess(theCaptureProcess);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PhysListEmStandard.cc,v 1.10 2006/11/06 15:20:35 maire Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: PhysListEmStandard.cc,v 1.11 2007/03/20 18:37:42 vnivanch Exp $
// GEANT4 tag $Name: geant4-08-03 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -67,7 +67,6 @@ void PhysListEmStandard::ConstructProcess()
{
// Add standard EM Processes
//
G4MultipleScattering* msc(0);
theParticleIterator->reset();
while( (*theParticleIterator)() ){
@@ -83,13 +82,13 @@ void PhysListEmStandard::ConstructProcess()
} else if (particleName == "e-") {
//electron
pmanager->AddProcess(msc=new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);
} else if (particleName == "e+") {
//positron
pmanager->AddProcess(msc=new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
@@ -97,23 +96,22 @@ void PhysListEmStandard::ConstructProcess()
} else if (particleName == "mu+" ||
particleName == "mu-" ) {
//muon
pmanager->AddProcess(msc=new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4MuIonisation, -1, 2,2);
pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3,3);
pmanager->AddProcess(new G4MuPairProduction, -1, 4,4);
} else if (particleName == "alpha" || particleName == "GenericIon" ) {
pmanager->AddProcess(msc=new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4ionIonisation, -1, 2,2);
} else if ((!particle->IsShortLived()) &&
(particle->GetPDGCharge() != 0.0) &&
(particle->GetParticleName() != "chargedgeantino")) {
//all others charged particles except geantino
pmanager->AddProcess(msc=new G4MultipleScattering, -1,1,1);
pmanager->AddProcess(new G4MultipleScattering, -1,1,1);
pmanager->AddProcess(new G4hIonisation, -1,2,2);
}
if(msc) msc->SetSkin(1.);
}
}
@@ -1,73 +0,0 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
// $Id: PhysListHadronElastic.cc,v 1.7 2006/08/10 08:44:39 vnivanch Exp $
// GEANT4 tag $Name: geant4-08-02 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "PhysListHadronElastic.hh"
#include "G4ParticleDefinition.hh"
#include "G4ProcessManager.hh"
#include "G4UHadronElasticProcess.hh"
#include "G4HadronElastic.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListHadronElastic::PhysListHadronElastic(const G4String& name)
: G4VPhysicsConstructor(name)
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListHadronElastic::~PhysListHadronElastic()
{
delete theElasticProcess;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void PhysListHadronElastic::ConstructProcess()
{
// Hadron elastic process
theElasticProcess = new G4UHadronElasticProcess("hElastic");
theElasticProcess->RegisterMe( new G4HadronElastic() );
theParticleIterator->reset();
while( (*theParticleIterator)() ){
G4ParticleDefinition* particle = theParticleIterator->value();
if (theElasticProcess->IsApplicable(*particle)) {
particle->GetProcessManager()->AddDiscreteProcess(theElasticProcess);
G4cout << "### Elastic process is registered for "
<< particle->GetParticleName()
<< G4endl;
}
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -1,141 +0,0 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
// $Id: PhysListIonBinaryCascade.cc,v 1.6 2006/08/10 08:44:39 vnivanch Exp $
// GEANT4 tag $Name: geant4-08-02 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "PhysListIonBinaryCascade.hh"
#include "G4ParticleDefinition.hh"
#include "G4ProcessManager.hh"
#include "G4Deuteron.hh"
#include "G4Triton.hh"
#include "G4Alpha.hh"
#include "G4GenericIon.hh"
#include "G4HadronInelasticProcess.hh"
#include "G4BinaryLightIonReaction.hh"
#include "G4TripathiCrossSection.hh"
#include "G4TripathiLightCrossSection.hh"
#include "G4IonsShenCrossSection.hh"
#include "G4LEDeuteronInelastic.hh"
#include "G4LETritonInelastic.hh"
#include "G4LEAlphaInelastic.hh"
#include "G4DeuteronInelasticProcess.hh"
#include "G4TritonInelasticProcess.hh"
#include "G4AlphaInelasticProcess.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListIonBinaryCascade::PhysListIonBinaryCascade(const G4String& name)
: G4VPhysicsConstructor(name)
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListIonBinaryCascade::~PhysListIonBinaryCascade()
{
delete theIPGenericIon;
delete theIPdeuteron;
delete theIPtriton;
delete theIPalpha;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void PhysListIonBinaryCascade::ConstructProcess()
{
// Binary Cascade
G4ParticleDefinition* particle = 0;
G4ProcessManager* pmanager = 0;
G4BinaryLightIonReaction* theBC = new G4BinaryLightIonReaction();
// theBC->SetMinEnergy(80*MeV);
theBC->SetMinEnergy(0.0);
theBC->SetMaxEnergy(20*GeV);
G4TripathiCrossSection* TripathiCrossSection= new G4TripathiCrossSection;
G4TripathiLightCrossSection* fTripathiLight = new G4TripathiLightCrossSection;
G4IonsShenCrossSection* aShen = new G4IonsShenCrossSection;
// deuteron
particle = G4Deuteron::Deuteron();
pmanager = particle->GetProcessManager();
// G4LEDeuteronInelastic* theDIModel = new G4LEDeuteronInelastic;
// theDIModel->SetMaxEnergy(100*MeV);
theIPdeuteron = new G4DeuteronInelasticProcess();
theIPdeuteron->AddDataSet(TripathiCrossSection);
theIPdeuteron->AddDataSet(fTripathiLight);
theIPdeuteron->AddDataSet(aShen);
// theIPdeuteron.RegisterMe(theDIModel);
theIPdeuteron->RegisterMe(theBC);
pmanager->AddDiscreteProcess(theIPdeuteron);
// triton
particle = G4Triton::Triton();
pmanager = particle->GetProcessManager();
// G4LETritonInelastic* theTIModel = new G4LETritonInelastic;
// theTIModel->SetMaxEnergy(100*MeV);
theIPtriton = new G4TritonInelasticProcess;
theIPtriton->AddDataSet(TripathiCrossSection);
theIPtriton->AddDataSet(fTripathiLight);
theIPtriton->AddDataSet(aShen);
// theIPtriton->RegisterMe(theTIModel);
theIPtriton->RegisterMe(theBC);
pmanager->AddDiscreteProcess(theIPtriton);
// alpha
particle = G4Alpha::Alpha();
pmanager = particle->GetProcessManager();
// G4LEAlphaInelastic* theAIModel = new G4LEAlphaInelastic;
// theAIModel->SetMaxEnergy(100*MeV);
theIPalpha = new G4AlphaInelasticProcess();
theIPalpha->AddDataSet(TripathiCrossSection);
theIPalpha->AddDataSet(fTripathiLight);
theIPalpha->AddDataSet(aShen);
// theIPalpha->RegisterMe(theAIModel);
theIPalpha->RegisterMe(theBC);
pmanager->AddDiscreteProcess(theIPalpha);
// GenericIon
particle = G4GenericIon::GenericIon();
pmanager = particle->GetProcessManager();
theIPGenericIon = new G4HadronInelasticProcess("IonInelastic",particle);
theIPGenericIon->AddDataSet(TripathiCrossSection);
theIPGenericIon->AddDataSet(fTripathiLight);
theIPGenericIon->AddDataSet(aShen);
G4BinaryLightIonReaction * theGenIonBC= new G4BinaryLightIonReaction;
theGenIonBC->SetMinEnergy(0*MeV);
theGenIonBC->SetMaxEnergy(10*GeV);
theIPGenericIon->RegisterMe(theGenIonBC);
pmanager->AddDiscreteProcess(theIPGenericIon);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PhysicsList.cc,v 1.17 2006/12/13 15:42:28 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: PhysicsList.cc,v 1.18 2007/03/20 18:50:53 vnivanch Exp $
// GEANT4 tag $Name: geant4-08-03 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -36,9 +36,12 @@
#include "PhysListEmStandardSS.hh"
#include "PhysListEmLivermore.hh"
#include "PhysListEmPenelope.hh"
#include "PhysListHadronElastic.hh"
#include "PhysListBinaryCascade.hh"
#include "PhysListIonBinaryCascade.hh"
#include "G4HadronElasticPhysics.hh"
#include "G4HadronHElasticPhysics.hh"
#include "G4HadronQElasticPhysics.hh"
#include "G4HadronInelasticQBBC.hh"
#include "G4IonBinaryCascadePhysics.hh"
#include "G4LossTableManager.hh"
#include "G4UnitsTable.hh"
@@ -80,6 +83,10 @@ PhysicsList::PhysicsList() : G4VModularPhysicsList()
// EM physics
emName = G4String("standard");
emPhysicsList = new PhysListEmStandard(emName);
helIsRegisted = false;
bicIsRegisted = false;
biciIsRegisted = false;
stepMaxProcess = 0;
@@ -226,19 +233,27 @@ void PhysicsList::AddPhysicsList(const G4String& name)
emName = name;
delete emPhysicsList;
emPhysicsList = new PhysListEmPenelope(name);
} else if (name == "elastic" && !helIsRegisted) {
hadronPhys.push_back( new G4HadronElasticPhysics(name));
helIsRegisted = true;
} else if (name == "HElastic" && !helIsRegisted) {
hadronPhys.push_back( new G4HadronHElasticPhysics(name));
helIsRegisted = true;
} else if (name == "QElastic" && !helIsRegisted) {
hadronPhys.push_back( new G4HadronQElasticPhysics(name));
helIsRegisted = true;
} else if (name == "binary" && !bicIsRegisted) {
hadronPhys.push_back(new G4HadronInelasticQBBC());
bicIsRegisted = true;
} else if (name == "binary_ion" && !biciIsRegisted) {
hadronPhys.push_back(new G4IonBinaryCascadePhysics());
biciIsRegisted = true;
} else if (name == "elastic") {
hadronPhys.push_back( new PhysListHadronElastic(name));
} else if (name == "binary") {
hadronPhys.push_back( new PhysListBinaryCascade(name));
} else if (name == "binary_ion") {
hadronPhys.push_back( new PhysListIonBinaryCascade(name));
} else {
G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"