Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
analysis_tree
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
pwg-c2f
data
analysis_tree
Commits
61d2d5bf
Commit
61d2d5bf
authored
5 years ago
by
Oleksii Lubynets
Browse files
Options
Downloads
Patches
Plain Diff
Update src/Particle.h
parent
e0a5fb8f
No related branches found
No related tags found
1 merge request
!14
Update src/Particle.h
Pipeline
#3746
failed
5 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Particle.h
+2
-2
2 additions, 2 deletions
src/Particle.h
with
2 additions
and
2 deletions
src/Particle.h
+
2
−
2
View file @
61d2d5bf
...
...
@@ -22,9 +22,9 @@ class Particle : public Track {
PdgCode_t
GetPid
()
const
{
return
pid_
;
}
Floating_t
GetMass
()
const
{
return
mass_
;}
void
SetPid
(
PdgCode_t
pid
)
{
void
SetPid
(
PdgCode_t
pid
,
Floating_t
mass
=-
1000.
f
)
{
pid_
=
pid
;
mass_
=
GetMassByPdgId
(
pid
);
mass_
=
mass
!=
-
1000.
f
?
GetMassByPdgId
(
pid
)
:
mass
;
}
template
<
typename
T
>
...
...
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