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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
physics_benchmarks
Merge requests
!39
Replacing nu with y
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Replacing nu with y
ziyue_work_branch
into
master
Overview
0
Commits
69
Pipelines
0
Changes
1
Merged
Ziyue Zhang
requested to merge
ziyue_work_branch
into
master
4 years ago
Overview
0
Commits
69
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
c58c2835
Prev
Next
Show latest version
1 file
+
3
−
3
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c58c2835
WIP: Test on PID instead of pmass
· c58c2835
Ziyue Zhang
authored
4 years ago
benchmarks/dvmp/analysis/dvmp.h
+
3
−
3
Options
@@ -45,9 +45,9 @@ namespace util {
@@ -45,9 +45,9 @@ namespace util {
int
order_map
[
7
]
=
{
0
,
3
,
2
,
6
,
5
,
7
,
8
};
int
order_map
[
7
]
=
{
0
,
3
,
2
,
6
,
5
,
7
,
8
};
//for(int i = 0 ; i < 7 ; i++) order_map[i] = -1;//-1 by default, meaning absense
//for(int i = 0 ; i < 7 ; i++) order_map[i] = -1;//-1 by default, meaning absense
for
(
int
i
=
0
;
i
<
7
;
i
++
){
for
(
int
i
=
0
;
i
<
7
;
i
++
){
double
px
=
parts
[
order_map
[
i
]].
p
.
x
;
double
px
=
parts
[
order_map
[
i
]].
p
s
x
;
double
py
=
parts
[
order_map
[
i
]].
p
.
y
;
double
py
=
parts
[
order_map
[
i
]].
p
s
y
;
double
pz
=
parts
[
order_map
[
i
]].
p
.
z
;
double
pz
=
parts
[
order_map
[
i
]].
p
s
z
;
double
mass
=
parts
[
order_map
[
i
]].
mass
;
double
mass
=
parts
[
order_map
[
i
]].
mass
;
double
e
=
sqrt
(
px
*
px
+
py
*
py
+
pz
*
pz
+
mass
*
mass
);
double
e
=
sqrt
(
px
*
px
+
py
*
py
+
pz
*
pz
+
mass
*
mass
);
momenta
[
i
].
SetPxPyPzE
(
px
,
py
,
pz
,
e
);
momenta
[
i
].
SetPxPyPzE
(
px
,
py
,
pz
,
e
);
Loading