Commit 5c61e935 authored by aricct2's avatar aricct2
Browse files

Fixed AddStepMax() in PhysicsList.cc

parent ac45dbfc
......@@ -10,7 +10,7 @@
# Width of radiator gap assumed to be 0.5 mm greater than fiber diameter
# Units in mm
nModules: 3
nModules: 1
mod1Type: 4
mod2Type: 4
......@@ -52,7 +52,7 @@ mod2CoreDiameter: 1.5
mod2NRadiators: 12
mod2RadiatorGapLength: 2
mod2CoreIndexRefraction: 1.46
mod2Cladding: YES
mod2Cladding: NO
# only if cladding enabled
mod2CladdingThickness: 0.1
mod2CladdingIndexRefraction: 1.43
......
mike@ui.32422:1531839901
\ No newline at end of file
......@@ -329,32 +329,22 @@ StepMax* PhysicsList::GetStepMaxProcess()
void PhysicsList::AddStepMax()
{
std::cout << "Aric test2 addstepmax" << std::endl;
// Step limitation seen as a process
#if G4VERSION_NUMBER >= 1030
auto theParticleIterator1 = GetParticleIterator();
theParticleIterator1->reset();
while ((*theParticleIterator1)()) {
G4ParticleDefinition* particle = theParticleIterator1->value();
# else
auto theParticleIterator = GetParticleIterator();
theParticleIterator->reset();
while ((*theParticleIterator)()) {
G4ParticleDefinition* particle = theParticleIterator->value();
#endif
G4ProcessManager* pmanager = particle->GetProcessManager();
if (fStepMaxProcess->IsApplicable(*particle) && !particle->IsShortLived())
{
if (pmanager) pmanager ->AddDiscreteProcess(fStepMaxProcess);
}
}
}
{
if (pmanager) pmanager ->AddDiscreteProcess(fStepMaxProcess);
}
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment