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
@@ -69,6 +69,7 @@
#include "G4UnitsTable.hh"
#include "G4UserLimits.hh"
#include "G4SDManager.hh"
#include "G4MultiFunctionalDetector.hh"
#include "G4PSEnergyDeposit.hh"
#include "G4PSNofStep.hh"
@@ -280,7 +281,7 @@ void TSDetectorConstruction::ConstructSDandField()
//------------------------------------------------//
// Define MultiFunctionalDetector with name.
G4MultiFunctionalDetector* MFDet = new G4MultiFunctionalDetector(fMfdName);
G4SDManager::GetSDMpointer()->AddNewDetector(MFDet);
G4VPrimitiveScorer* edep = new G4PSEnergyDeposit("EnergyDeposit");
MFDet->RegisterPrimitive(edep);
G4VPrimitiveScorer* nstep = new G4PSNofStep("NumberOfSteps");
@@ -157,13 +157,14 @@ void TSPhysicsList::ConstructProcess()
step_limit_particles.insert("mu+");
step_limit_particles.insert("mu-");
theParticleIterator->reset();
auto particleIterator=GetParticleIterator();
particleIterator->reset();
G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
while( (*theParticleIterator)() )
while( (*particleIterator)() )
{
G4ParticleDefinition* particle = theParticleIterator->value();
G4ParticleDefinition* particle = particleIterator->value();
G4String pname = particle->GetParticleName();
if(step_limit_particles.find(pname) != step_limit_particles.end() ||