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
@@ -146,9 +146,10 @@ void Par02PhysicsList::AddTransportation() {
void Par02PhysicsList::ConstructGeneral() {
G4Decay* theDecayProcess = new G4Decay();
theParticleIterator->reset();
while ( (*theParticleIterator)() ) {
G4ParticleDefinition* particle = theParticleIterator->value();
auto particleIterator=GetParticleIterator();
particleIterator->reset();
while ( (*particleIterator)() ) {
G4ParticleDefinition* particle = particleIterator->value();
G4ProcessManager* pmanager = particle->GetProcessManager();
if ( theDecayProcess->IsApplicable( *particle ) ) {
pmanager->AddProcess( theDecayProcess );
@@ -169,9 +170,10 @@ void Par02PhysicsList::AddParameterisation() {
// continuous process (this works in all cases; in the case that parallel
// geometries are not used, as in this example, it would be enough to
// add it as a discrete process).
theParticleIterator->reset();
while ( (*theParticleIterator)() ) {
G4ParticleDefinition* particle = theParticleIterator->value();
auto particleIterator=GetParticleIterator();
particleIterator->reset();
while ( (*particleIterator)() ) {
G4ParticleDefinition* particle = particleIterator->value();
G4ProcessManager* pmanager = particle->GetProcessManager();
//pmanager->AddDiscreteProcess( fastSimProcess ); // No parallel geometry
pmanager->AddProcess( fastSimProcess, -1, 0, 0 ); // General