Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Riccardo Longo
JZCaPA
Commits
5c61e935
Commit
5c61e935
authored
Feb 20, 2019
by
aricct2
Browse files
Fixed AddStepMax() in PhysicsList.cc
parent
ac45dbfc
Changes
3
Hide whitespace changes
Inline
Side-by-side
MonteCarlo/config/config.cfg
View file @
5c61e935
...
...
@@ -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
...
...
MonteCarlo/src/.#ModType
deleted
120000 → 0
View file @
ac45dbfc
mike@ui.32422:1531839901
\ No newline at end of file
MonteCarlo/src/PhysicsList.cc
View file @
5c61e935
...
...
@@ -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......
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment