Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
np
nptool
Commits
f81d8ace
Commit
f81d8ace
authored
4 years ago
by
Adrien Matta
Browse files
Options
Downloads
Patches
Plain Diff
* Fixing, again, the Z vertex generation
parent
8b3dbdee
No related branches found
No related tags found
No related merge requests found
Pipeline
#75276
passed
4 years ago
Stage: build-NPLib
Stage: build-NPSimulation
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
NPSimulation/Process/BeamReaction.cc
+3
-3
3 additions, 3 deletions
NPSimulation/Process/BeamReaction.cc
with
3 additions
and
3 deletions
NPSimulation/Process/BeamReaction.cc
+
3
−
3
View file @
f81d8ace
...
...
@@ -143,11 +143,11 @@ G4bool NPS::BeamReaction::ModelTrigger(const G4FastTrack& fastTrack) {
}
// If the condition is met, the event is generated
if
(
ratio
<
rand
)
{
if
(
m_shoot
&&
(
ratio
<
rand
||
(
in
-
m_StepSize
)
<=
1E-20
)
)
{
// Reset the static for next event
if
(
m_ReactionType
==
"QFSReaction"
){
if
(
m_shoot
&&
m_QFS
.
IsAllowed
()
)
{
if
(
m_QFS
.
IsAllowed
()
)
{
return
true
;
}
else
...
...
@@ -155,7 +155,7 @@ G4bool NPS::BeamReaction::ModelTrigger(const G4FastTrack& fastTrack) {
}
else
if
(
m_ReactionType
==
"TwoBodyReaction"
){
if
(
m_shoot
&&
m_Reaction
.
IsAllowed
(
PrimaryTrack
->
GetKineticEnergy
())
)
{
if
(
m_Reaction
.
IsAllowed
(
PrimaryTrack
->
GetKineticEnergy
())
)
{
return
true
;
}
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment