Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common_bench
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
common_bench
Commits
0ade6486
Commit
0ade6486
authored
Feb 10, 2022
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
eic::TrackParameters::direction is now phi and theta
parent
5dfc8eb0
Branches
Branches containing commit
No related tags found
1 merge request
!33
eic::TrackParameters::direction is now phi and theta
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/common_bench/util.h
+3
-3
3 additions, 3 deletions
include/common_bench/util.h
with
3 additions
and
3 deletions
include/common_bench/util.h
+
3
−
3
View file @
0ade6486
...
...
@@ -76,9 +76,9 @@ momenta_from_tracking(const std::vector<eic::TrackParametersData> &tracks,
return
ROOT
::
Math
::
PxPyPzMVector
{};
}
const
double
p
=
fabs
(
1.
/
track
.
qOverP
);
const
double
px
=
p
*
cos
(
track
.
direction
.
phi
)
*
sin
(
track
.
direction
.
theta
);
const
double
py
=
p
*
sin
(
track
.
direction
.
phi
)
*
sin
(
track
.
direction
.
theta
);
const
double
pz
=
p
*
cos
(
track
.
direction
.
theta
);
const
double
px
=
p
*
cos
(
track
.
phi
)
*
sin
(
track
.
theta
);
const
double
py
=
p
*
sin
(
track
.
phi
)
*
sin
(
track
.
theta
);
const
double
pz
=
p
*
cos
(
track
.
theta
);
return
ROOT
::
Math
::
PxPyPzMVector
{
px
,
py
,
pz
,
mass
};
});
return
momenta
;
...
...
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