Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -11,6 +11,10 @@ Geant4Py is a Geant4-Python bridge.
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
12 Nov. 2021 V. Ivanchenko (geant4py-V10-07-00)
|
||||
- TestEm0 - use default Geant4 EM physics, do not use obsolete class
|
||||
G4EmProcessOptions
|
||||
|
||||
16 Nov. 2020 B. Morgan (geant4py-V10-06-04)
|
||||
- Boost 1.73 modified use of its bind and placeholder functionality, resulting
|
||||
in Boost.Python spamming pragma messages about deprecation of this.
|
||||
|
||||
@@ -90,13 +90,13 @@ void PhysListEmStandard::ConstructProcess()
|
||||
//electron
|
||||
pmanager->AddProcess(new G4eMultipleScattering, -1, 1,1);
|
||||
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1,-3,3);
|
||||
|
||||
} else if (particleName == "e+") {
|
||||
//positron
|
||||
pmanager->AddProcess(new G4eMultipleScattering, -1, 1,1);
|
||||
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1,-3,3);
|
||||
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
|
||||
|
||||
} else if( particleName == "mu+" ||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "PhysicsListMessenger.hh"
|
||||
|
||||
#include "PhysListEmStandard.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
|
||||
#include "G4LossTableManager.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
@@ -55,7 +56,7 @@ PhysicsList::PhysicsList()
|
||||
|
||||
// EM physics
|
||||
emName = G4String("standard");
|
||||
emPhysicsList = new PhysListEmStandard(emName);
|
||||
emPhysicsList = new G4EmStandardPhysics(1);
|
||||
|
||||
}
|
||||
|
||||
@@ -164,8 +165,6 @@ void PhysicsList::ConstructParticle()
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "G4EmProcessOptions.hh"
|
||||
|
||||
void PhysicsList::ConstructProcess()
|
||||
{
|
||||
// Transportation
|
||||
@@ -174,15 +173,7 @@ void PhysicsList::ConstructProcess()
|
||||
|
||||
// Electromagnetic physics list
|
||||
//
|
||||
emPhysicsList->ConstructProcess();
|
||||
|
||||
// Em options
|
||||
//
|
||||
G4EmProcessOptions emOptions;
|
||||
emOptions.SetBuildCSDARange(true);
|
||||
emOptions.SetMaxEnergyForCSDARange(100*TeV);
|
||||
emOptions.SetDEDXBinningForCSDARange(120);
|
||||
emOptions.SetVerbose(0);
|
||||
emPhysicsList->ConstructProcess();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -195,11 +186,17 @@ void PhysicsList::AddPhysicsList(const G4String& name)
|
||||
|
||||
if (name == emName) return;
|
||||
|
||||
if (name == "standard") {
|
||||
if (name == "local") {
|
||||
|
||||
emName = name;
|
||||
delete emPhysicsList;
|
||||
emPhysicsList = new PhysListEmStandard(name);
|
||||
|
||||
} else if (name == "standard") {
|
||||
|
||||
emName = name;
|
||||
delete emPhysicsList;
|
||||
emPhysicsList = new G4EmStandardPhysics(verboseLevel);
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user