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
@@ -646,9 +646,16 @@ G4VPhysicalVolume* DetectorConstruction::ConstructLine()
// USER LIMITS ON STEP LENGTH
/*
fLogicWorld->SetUserLimits(new G4UserLimits(100*mm));
fLogicVol->SetUserLimits(new G4UserLimits(100*mm));
fLogicBoite->SetUserLimits(new G4UserLimits(10*mm));
*/
// relaxed
fLogicWorld->SetUserLimits(new G4UserLimits(1*mm));
fLogicVol->SetUserLimits(new G4UserLimits(1*mm));
fLogicBoite->SetUserLimits(new G4UserLimits(1*mm));
/*
logicPhantom->SetUserLimits (new G4UserLimits(0.5*micrometer));
@@ -732,13 +739,15 @@ void DetectorConstruction::ConstructSDandField()
fEquation = new G4EqMagElectricField(fField);
fStepper = new G4ClassicalRK4 (fEquation,8);
fFieldMgr = G4TransportationManager::GetTransportationManager()->GetFieldManager();
fIntgrDriver = new G4MagInt_Driver(0.000001*mm,fStepper,fStepper->GetNumberOfVariables() );
// relaxed
// fIntgrDriver = new G4MagInt_Driver(0.000001*mm,fStepper,fStepper->GetNumberOfVariables() );
fIntgrDriver = new G4MagInt_Driver(1*mm,fStepper,fStepper->GetNumberOfVariables() );
fChordFinder = new G4ChordFinder(fIntgrDriver);
fFieldMgr->SetChordFinder(fChordFinder);
fFieldMgr->SetDetectorField(fField);
// FOLLOWING PARAMETERS TUNED FROM RAY-TRACING SIMULATIONS OF THE AIFIRA NANOBEAM LINE
/*
fFieldMgr->GetChordFinder()->SetDeltaChord(1e-9*m);
fFieldMgr->SetDeltaIntersection(1e-9*m);
fFieldMgr->SetDeltaOneStep(1e-9*m);
@@ -747,5 +756,5 @@ void DetectorConstruction::ConstructSDandField()
G4TransportationManager::GetTransportationManager()->GetPropagatorInField();
fPropInField->SetMinimumEpsilonStep(1e-16); // instead of 11
fPropInField->SetMaximumEpsilonStep(1e-15); // instead of 10
*/
}
+1 -1
View File
@@ -33,8 +33,8 @@
// Rad. Prot. Dos. 133 (2009) 2-11
#include "EMField.hh"
#include "G4SystemOfUnits.hh"
#include "G4Exp.hh"
#include "G4SystemOfUnits.hh"
EMField::EMField()
{
@@ -175,9 +175,12 @@ void PhysicsList::AddStepMax()
fStepMaxProcess = new G4StepLimiter();
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) && pmanager)