Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
np
nptool
Commits
6d67e755
Commit
6d67e755
authored
Oct 02, 2018
by
Greg Christian
Browse files
Fixed apparent bug in simulating neutron-emitting reactions
parent
2dedcc41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
NPSimulation/Process/BeamReaction.cc
NPSimulation/Process/BeamReaction.cc
+11
-4
No files found.
NPSimulation/Process/BeamReaction.cc
View file @
6d67e755
...
...
@@ -184,10 +184,17 @@ void NPS::BeamReaction::DoIt(const G4FastTrack& fastTrack,G4FastStep& fastStep)
G4ParticleDefinition
*
LightName
;
if
(
m_Reaction
.
GetUseExInGeant4
())
LightName
=
IonTable
->
GetIon
(
LightZ
,
LightA
,
m_Reaction
.
GetExcitation3
()
*
MeV
);
else
LightName
=
IonTable
->
GetIon
(
LightZ
,
LightA
);
if
(
LightZ
==
0
&&
LightA
==
1
)
// neutron is special case
{
LightName
=
G4Neutron
::
Definition
();
}
else
{
if
(
m_Reaction
.
GetUseExInGeant4
())
LightName
=
IonTable
->
GetIon
(
LightZ
,
LightA
,
m_Reaction
.
GetExcitation3
()
*
MeV
);
else
LightName
=
IonTable
->
GetIon
(
LightZ
,
LightA
);
}
// Nucleus 4
G4int
HeavyZ
=
m_Reaction
.
GetNucleus4
()
->
GetZ
()
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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