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
Commits
46553724
Commit
46553724
authored
Mar 11, 2021
by
Ziyue Zhang
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Add y
parent
019379bf
No related branches found
No related tags found
1 merge request
!39
Replacing nu with y
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/dvmp/analysis/dvmp.h
+4
-3
4 additions, 3 deletions
benchmarks/dvmp/analysis/dvmp.h
with
4 additions
and
3 deletions
benchmarks/dvmp/analysis/dvmp.h
+
4
−
3
View file @
46553724
...
@@ -21,7 +21,7 @@ namespace util {
...
@@ -21,7 +21,7 @@ namespace util {
// for structure functions
// for structure functions
struct
inv_quant
{
// add more when needed
struct
inv_quant
{
// add more when needed
double
nu
,
Q2
,
x
,
t
;
double
nu
,
Q2
,
x
,
y
,
t
;
};
};
// for simu
// for simu
...
@@ -221,8 +221,8 @@ namespace util {
...
@@ -221,8 +221,8 @@ namespace util {
//}else{
//}else{
t
=
Delta
.
Dot
(
Delta
);
t
=
Delta
.
Dot
(
Delta
);
//}
//}
double
y
=
q
.
Dot
(
P
)
/
parts
[
0
].
Dot
(
P
);
inv_quant
quantities
=
{
nu
,
Q2
,
Q2
/
2.
/
P
.
mass
()
/
nu
,
t
};
inv_quant
quantities
=
{
nu
,
Q2
,
Q2
/
2.
/
P
.
mass
()
/
nu
,
y
,
t
};
return
quantities
;
return
quantities
;
}
}
...
@@ -230,6 +230,7 @@ namespace util {
...
@@ -230,6 +230,7 @@ namespace util {
inline
double
get_nu
(
inv_quant
quantities
)
{
return
quantities
.
nu
/
1000.
;
}
inline
double
get_nu
(
inv_quant
quantities
)
{
return
quantities
.
nu
/
1000.
;
}
inline
double
get_Q2
(
inv_quant
quantities
)
{
return
quantities
.
Q2
;
}
inline
double
get_Q2
(
inv_quant
quantities
)
{
return
quantities
.
Q2
;
}
inline
double
get_x
(
inv_quant
quantities
)
{
return
quantities
.
x
;
}
inline
double
get_x
(
inv_quant
quantities
)
{
return
quantities
.
x
;
}
inline
double
get_y
(
inv_quant
quantities
)
{
return
quantities
.
y
;
}
inline
double
get_t
(
inv_quant
quantities
)
{
return
quantities
.
t
;
}
inline
double
get_t
(
inv_quant
quantities
)
{
return
quantities
.
t
;
}
// for tracking, add later
// for tracking, add later
...
...
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