Import Geant4 8.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:55:03 +02:00
parent 216a75eeb1
commit fe73f43734
6714 changed files with 118229 additions and 68144 deletions
@@ -33,7 +33,7 @@
// *******************************
//
// $Id: BrachyAnalysisManager.cc,v 1.18 2006/06/29 15:48:06 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#ifdef G4ANALYSIS_USE
#include <stdlib.h>
@@ -38,7 +38,7 @@
// ****************************************
//
// $Id: BrachyDetectorConstruction.cc,v 1.29 2006/06/29 15:48:09 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "G4CSGSolid.hh"
#include "G4MaterialPropertyVector.hh"
@@ -37,7 +37,7 @@
// ****************************************
//
// $Id: BrachyDetectorConstructionI.cc,v 1.9 2006/06/29 15:48:11 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "globals.hh"
#include "BrachyDetectorConstructionI.hh"
@@ -38,7 +38,7 @@
// ****************************************
//
// $Id: BrachyDetectorConstructionIr.cc,v 1.10 2006/06/29 15:48:13 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "globals.hh"
#include "BrachyDetectorConstructionIr.hh"
@@ -39,7 +39,7 @@
//
//
// $Id: BrachyDetectorConstructionLeipzig.cc,v 1.10 2006/06/29 15:48:16 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "globals.hh"
@@ -35,7 +35,7 @@
//
//
// $Id: BrachyDetectorMessenger.cc,v 1.12 2006/06/29 15:48:18 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
//
@@ -33,7 +33,7 @@
// *******************************
//
// $Id: BrachyEventAction.cc,v 1.21 2006/06/29 15:48:21 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "BrachyEventAction.hh"
#include "G4Event.hh"
@@ -35,7 +35,7 @@
// *******************************
//
// $Id: BrachyFactory.cc,v 1.7 2006/06/29 15:48:23 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
// Factory of brachytherapic sources
//
@@ -33,7 +33,7 @@
// *******************************
//
// $Id: BrachyFactoryI.cc,v 1.6 2006/06/29 15:48:26 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "BrachyFactoryI.hh"
#include "BrachyPrimaryGeneratorActionI.hh"
@@ -33,7 +33,7 @@
// *******************************
//
// $Id: BrachyFactoryIr.cc,v 1.6 2006/06/29 15:48:29 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "globals.hh"
#include "BrachyFactoryIr.hh"
@@ -33,7 +33,7 @@
// *******************************
//
// $Id: BrachyFactoryLeipzig.cc,v 1.6 2006/06/29 15:48:31 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "globals.hh"
@@ -33,7 +33,7 @@
// *******************************
//
// $Id: BrachyMaterial.cc,v 1.7 2006/06/29 15:48:33 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "G4MaterialPropertiesTable.hh"
@@ -34,7 +34,7 @@
// ************************************
//
// $Id: BrachyPhantomROGeometry.cc,v 1.11 2006/06/29 15:48:36 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "BrachyPhantomROGeometry.hh"
#include "BrachyDummySD.hh"
@@ -34,7 +34,7 @@
// ********************************
//
// $Id: BrachyPhantomSD.cc,v 1.13 2006/06/29 15:48:39 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "BrachyPhantomSD.hh"
#include "BrachyAnalysisManager.hh"
@@ -27,37 +27,42 @@
// Code developed by:
// S. Agostinelli, F. Foppiano, S. Garelli , M. Tropeano, S.Guatelli
//
// Code review: MGP, 5 November 2006 (still to be completed)
//
// **********************************
// * *
// * BrachyPhysicsList.cc *
// * *
// **********************************
//
// $Id: BrachyPhysicsList.cc,v 1.12 2006/06/29 15:48:42 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// $Id: BrachyPhysicsList.cc,v 1.13 2006/11/15 10:02:17 guatelli Exp $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "BrachyPhysicsList.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleWithCuts.hh"
#include "G4ProductionCutsTable.hh"
#include "G4ProcessManager.hh"
#include "G4ParticleTypes.hh"
#include "G4ParticleTable.hh"
#include "G4Material.hh"
#include "G4UnitsTable.hh"
#include "G4ios.hh"
#include "G4MultipleScattering.hh"
// gamma
#include "G4LowEnergyRayleigh.hh"
#include "G4LowEnergyPhotoElectric.hh"
#include "G4LowEnergyCompton.hh"
#include "G4LowEnergyGammaConversion.hh"
// e-
#include "G4LowEnergyIonisation.hh"
#include "G4LowEnergyBremsstrahlung.hh"
// e+
#include "G4eIonisation.hh"
#include "G4eBremsstrahlung.hh"
#include "G4eplusAnnihilation.hh"
BrachyPhysicsList::BrachyPhysicsList(): G4VUserPhysicsList()
{
// The production threshold is fixed to 0.1 mm for all the particles
// Secondary particles with a range bigger than 0.1 mm
// are generated; otherwise their energy is considered deposited locally
defaultCutValue = 0.1*mm;
cutForGamma = defaultCutValue;
cutForElectron = defaultCutValue;
cutForPositron = defaultCutValue;
SetVerboseLevel(1);
}
@@ -78,9 +83,8 @@ void BrachyPhysicsList::ConstructParticle()
void BrachyPhysicsList::ConstructBosons()
{
// gamma
// photons
G4Gamma::GammaDefinition();
}
void BrachyPhysicsList::ConstructLeptons()
@@ -96,55 +100,43 @@ void BrachyPhysicsList::ConstructProcess()
ConstructEM();
}
#include "G4MultipleScattering.hh"
// gamma
#include "G4LowEnergyRayleigh.hh"
#include "G4LowEnergyPhotoElectric.hh"
#include "G4LowEnergyCompton.hh"
#include "G4LowEnergyGammaConversion.hh"
// e-
#include "G4LowEnergyIonisation.hh"
#include "G4LowEnergyBremsstrahlung.hh"
// e+
#include "G4eIonisation.hh"
#include "G4eBremsstrahlung.hh"
#include "G4eplusAnnihilation.hh"
void BrachyPhysicsList::ConstructEM()
{
theParticleIterator->reset();
while( (*theParticleIterator)() ){
G4ParticleDefinition* particle = theParticleIterator -> value();
G4ProcessManager* pmanager = particle -> GetProcessManager();
G4String particleName = particle -> GetParticleName();
G4ParticleDefinition* particle = theParticleIterator->value();
G4ProcessManager* pmanager = particle->GetProcessManager();
G4String particleName = particle->GetParticleName();
//processes
// Processes
if (particleName == "gamma") {
//gamma
pmanager -> AddDiscreteProcess(new G4LowEnergyRayleigh);
pmanager -> AddDiscreteProcess(new G4LowEnergyPhotoElectric);
pmanager -> AddDiscreteProcess(new G4LowEnergyCompton);
pmanager -> AddDiscreteProcess(new G4LowEnergyGammaConversion);
// Photon
pmanager->AddDiscreteProcess(new G4LowEnergyRayleigh);
pmanager->AddDiscreteProcess(new G4LowEnergyPhotoElectric);
pmanager->AddDiscreteProcess(new G4LowEnergyCompton);
pmanager->AddDiscreteProcess(new G4LowEnergyGammaConversion);
} else if (particleName == "e-") {
//electron
loweIon = new G4LowEnergyIonisation("LowEnergyIoni");
loweBrem = new G4LowEnergyBremsstrahlung("LowEnBrem");
loweBrem -> SetAngularGenerator("tsai");
// Electron
G4LowEnergyIonisation* loweIon = new G4LowEnergyIonisation("LowEnergyIoni");
G4LowEnergyBremsstrahlung* loweBrem = new G4LowEnergyBremsstrahlung("LowEnBrem");
// Select the Bremsstrahlung angular distribution model (Tsai/2BN/2BS)
loweBrem->SetAngularGenerator("tsai");
pmanager -> AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager -> AddProcess(loweIon, -1, 2,2);
pmanager -> AddProcess(loweBrem, -1,-1,3);
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(loweIon, -1, 2,2);
pmanager->AddProcess(loweBrem, -1,-1,3);
} else if (particleName == "e+") {
//positron
pmanager -> AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager -> AddProcess(new G4eIonisation, -1, 2,2);
pmanager -> AddProcess(new G4eBremsstrahlung, -1,-1,3);
pmanager -> AddProcess(new G4eplusAnnihilation, 0,-1,4);
// Positron
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,3);
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
}
}
@@ -152,14 +144,26 @@ void BrachyPhysicsList::ConstructEM()
void BrachyPhysicsList::SetCuts()
{
if (verboseLevel >0){
G4cout << "BrachyPhysicsList::SetCuts:";
G4cout << "CutLength : " << G4BestUnit(defaultCutValue,"Length") << G4endl;
}
// The production threshold is fixed to 0.1 mm for all the particles
// Secondary particles with a range bigger than 0.1 mm
// are generated; otherwise their energy is considered deposited locally
defaultCutValue = 0.1 * mm;
const G4double cutForGamma = defaultCutValue;
const G4double cutForElectron = defaultCutValue;
const G4double cutForPositron = defaultCutValue;
SetCutValue(cutForGamma, "gamma");
SetCutValue(cutForElectron, "e-");
SetCutValue(cutForPositron, "e+");
// Set the secondary production cut lower than 990. eV
// Very important for high precision of lowenergy processes at low energies
G4double lowLimit = 250. * eV;
G4double highLimit = 100. * GeV;
G4ProductionCutsTable::GetProductionCutsTable()->SetEnergyRange(lowLimit, highLimit);
if (verboseLevel>0) DumpCutValuesTable();
}
@@ -38,7 +38,7 @@
// ********************************************
//
// $Id: BrachyPrimaryGeneratorAction.cc,v 1.18 2006/06/29 15:48:45 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "globals.hh"
#include "BrachyPrimaryGeneratorAction.hh"
@@ -38,7 +38,7 @@
// ********************************************
//
// $Id: BrachyPrimaryGeneratorActionI.cc,v 1.10 2006/06/29 15:48:48 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "BrachyPrimaryGeneratorActionI.hh"
@@ -38,7 +38,7 @@
// ********************************************
//
// $Id: BrachyPrimaryGeneratorActionIr.cc,v 1.11 2006/06/29 15:48:51 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "BrachyPrimaryGeneratorActionIr.hh"
@@ -35,7 +35,7 @@
//
//
// $Id: BrachyPrimaryGeneratorMessenger.cc,v 1.3 2006/06/29 15:48:54 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
//
@@ -39,7 +39,7 @@
// *******************************
//
// $Id: BrachyRunAction.cc,v 1.18 2006/06/29 15:48:57 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// GEANT4 tag $Name: geant4-08-02 $
//
#include "BrachyRunAction.hh"