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
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: F04ElementField.cc 78551 2014-01-07 09:45:08Z gcosmo $
// $Id: F04ElementField.cc 101905 2016-12-07 11:34:39Z gunter $
//
/// \file field/field04/src/F04ElementField.cc
/// \brief Implementation of the F04ElementField class
@@ -135,7 +135,7 @@ G4VisAttributes* F04ElementField::GetVisAttribute(G4String color)
}
}
if (!p) p = new G4VisAttributes(G4VisAttributes::Invisible);
if (!p) p = new G4VisAttributes(G4VisAttributes::GetInvisible());
p->SetDaughtersInvisible(false);
return p;
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: F04PhysicsList.cc 85915 2014-11-06 09:05:23Z gcosmo $
// $Id: F04PhysicsList.cc 100252 2016-10-17 07:50:45Z gcosmo $
//
/// \file field/field04/src/F04PhysicsList.cc
/// \brief Implementation of the F04PhysicsList class
@@ -32,7 +32,7 @@
#include "F04PhysicsList.hh"
#include "F04PhysicsListMessenger.hh"
#include "F04ExtraPhysics.hh"
#include "G4StepLimiterPhysics.hh"
#include "G4OpticalPhysics.hh"
#include "G4LossTableManager.hh"
@@ -60,6 +60,9 @@
#include "G4MuonDecayChannelWithSpin.hh"
#include "G4MuonRadiativeDecayChannelWithSpin.hh"
#include "G4MuonMinusCapture.hh"
#include "G4MuMinusCapturePrecompound.hh"
#include "G4SystemOfUnits.hh"
#include "G4AutoDelete.hh"
@@ -105,7 +108,7 @@ F04PhysicsList::F04PhysicsList(G4String physName) : G4VModularPhysicsList()
RegisterPhysics(elem);
}
RegisterPhysics(new F04ExtraPhysics());
RegisterPhysics(new G4StepLimiterPhysics());
RegisterPhysics(new G4OpticalPhysics());
fMaxChargedStep = DBL_MAX;
@@ -182,6 +185,15 @@ void F04PhysicsList::ConstructProcess()
pmanager ->SetProcessOrdering(decayWithSpin, idxAtRest);
}
G4VProcess* process = processTable->
FindProcess("muMinusCaptureAtRest",G4MuonMinus::MuonMinus());
if (pmanager) {
if (process) pmanager->RemoveProcess(process);
process = new G4MuonMinusCapture(new G4MuMinusCapturePrecompound());
pmanager->AddRestProcess(process);
}
G4PionDecayMakeSpin* poldecay = new G4PionDecayMakeSpin();
decay = processTable->FindProcess("Decay",G4PionPlus::PionPlus());
@@ -309,9 +321,10 @@ void F04PhysicsList::AddStepMax()
{
// Step limitation seen as a process
theParticleIterator->reset();
while ((*theParticleIterator)()){
G4ParticleDefinition* particle = theParticleIterator->value();
auto particleIterator=GetParticleIterator();
particleIterator->reset();
while ((*particleIterator)()){
G4ParticleDefinition* particle = particleIterator->value();
G4ProcessManager* pmanager = particle->GetProcessManager();
if (fStepMaxProcess->IsApplicable(*particle) && !particle->IsShortLived())