Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_benchmarks
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
physics_benchmarks
Merge requests
!15
Updated DVMP benchmark
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Updated DVMP benchmark
dvmp_benchmarks
into
master
Overview
0
Commits
17
Pipelines
0
Changes
9
Merged
Updated DVMP benchmark
Sylvester Joosten
requested to merge
dvmp_benchmarks
into
master
Nov 24, 2020
Overview
0
Commits
17
Pipelines
0
Changes
9
More robust and understandable CI scripts
Improved resilience for parallel operation of scripts
Some restructuring of scripts, and separated utility scripts from developer tools.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
bd3ca37f
17 commits,
Nov 24, 2020
9 files
+
122
−
28
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
dvmp/analysis/util.h
+
6
−
5
View file @ bd3ca37f
Edit in single-file editor
Open in Web IDE
Show full file
@@ -61,12 +61,13 @@ momenta_from_tracking(const std::vector<eic::TrackParametersData>& tracks,
[
mass
](
const
auto
&
track
)
{
// make sure we don't divide by zero
if
(
fabs
(
track
.
qOverP
)
<
1e-9
)
{
return
ROOT
::
Math
::
P
tEtaPhi
MVector
{};
return
ROOT
::
Math
::
P
xPyPz
MVector
{};
}
const
double
pt
=
1.
/
track
.
qOverP
*
sin
(
track
.
theta
);
const
double
eta
=
-
log
(
tan
(
track
.
theta
/
2
));
const
double
phi
=
track
.
phi
;
return
ROOT
::
Math
::
PtEtaPhiMVector
{
pt
,
eta
,
phi
,
mass
};
const
double
p
=
fabs
(
1.
/
track
.
qOverP
);
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
;
}
Loading