Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project Juggler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
EIC
Project Juggler
Commits
f817f061
Commit
f817f061
authored
3 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
Avoid nan momentum in low energy neutrals with energy < mass
parent
84118b25
No related branches found
No related tags found
1 merge request
!346
Avoid nan momentum in low energy neutrals with energy < mass
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
JugFast/src/components/MatchClusters.cpp
+1
-1
1 addition, 1 deletion
JugFast/src/components/MatchClusters.cpp
with
1 addition
and
1 deletion
JugFast/src/components/MatchClusters.cpp
+
1
−
1
View file @
f817f061
...
@@ -203,7 +203,7 @@ private:
...
@@ -203,7 +203,7 @@ private:
const
eic
::
ConstCluster
*
optional_hclus
,
const
double
mass
,
const
eic
::
ConstCluster
*
optional_hclus
,
const
double
mass
,
const
int32_t
pid
,
const
eic
::
Index
&
newID
)
const
{
const
int32_t
pid
,
const
eic
::
Index
&
newID
)
const
{
const
float
energy
=
(
optional_hclus
)
?
eclus
.
energy
()
+
optional_hclus
->
energy
()
:
eclus
.
energy
();
const
float
energy
=
(
optional_hclus
)
?
eclus
.
energy
()
+
optional_hclus
->
energy
()
:
eclus
.
energy
();
const
float
momentum
=
sqrt
(
energy
*
energy
-
mass
*
mass
);
const
float
momentum
=
energy
<
mass
?
0
:
std
::
hypot
(
energy
,
mass
);
const
eic
::
VectorPolar
p
{
momentum
,
eclus
.
position
().
theta
(),
eclus
.
position
().
phi
()};
const
eic
::
VectorPolar
p
{
momentum
,
eclus
.
position
().
theta
(),
eclus
.
position
().
phi
()};
// setup our particle
// setup our particle
eic
::
ReconstructedParticle
part
;
eic
::
ReconstructedParticle
part
;
...
...
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