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
270b5a8c
Commit
270b5a8c
authored
Mar 11, 2021
by
Ziyue Zhang
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Replace nu plot with y plot
parent
46553724
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/vm_invar.cxx
+14
-11
14 additions, 11 deletions
benchmarks/dvmp/analysis/vm_invar.cxx
with
14 additions
and
11 deletions
benchmarks/dvmp/analysis/vm_invar.cxx
+
14
−
11
View file @
270b5a8c
...
@@ -99,11 +99,11 @@ int vm_invar(const std::string& config_name)
...
@@ -99,11 +99,11 @@ int vm_invar(const std::string& config_name)
//================================================================
//================================================================
//.Define("invariant_quantities_rec", calc_inv_quant_rec, {"p_rec"})
//.Define("invariant_quantities_rec", calc_inv_quant_rec, {"p_rec"})
//.Define("invariant_quantities_sim", util::calc_inv_quant_sim, {"p_sim"})
//.Define("invariant_quantities_sim", util::calc_inv_quant_sim, {"p_sim"})
.
Define
(
"
nu
_rec"
,
util
::
get_
nu
,
{
"invariant_quantities_rec"
})
.
Define
(
"
y
_rec"
,
util
::
get_
y
,
{
"invariant_quantities_rec"
})
.
Define
(
"Q2_rec"
,
util
::
get_Q2
,
{
"invariant_quantities_rec"
})
.
Define
(
"Q2_rec"
,
util
::
get_Q2
,
{
"invariant_quantities_rec"
})
.
Define
(
"x_rec"
,
util
::
get_x
,
{
"invariant_quantities_rec"
})
.
Define
(
"x_rec"
,
util
::
get_x
,
{
"invariant_quantities_rec"
})
.
Define
(
"t_rec"
,
util
::
get_t
,
{
"invariant_quantities_rec"
})
.
Define
(
"t_rec"
,
util
::
get_t
,
{
"invariant_quantities_rec"
})
.
Define
(
"
nu
_sim"
,
util
::
get_
nu
,
{
"invariant_quantities_sim"
})
.
Define
(
"
y
_sim"
,
util
::
get_
y
,
{
"invariant_quantities_sim"
})
.
Define
(
"Q2_sim"
,
util
::
get_Q2
,
{
"invariant_quantities_sim"
})
.
Define
(
"Q2_sim"
,
util
::
get_Q2
,
{
"invariant_quantities_sim"
})
.
Define
(
"x_sim"
,
util
::
get_x
,
{
"invariant_quantities_sim"
})
.
Define
(
"x_sim"
,
util
::
get_x
,
{
"invariant_quantities_sim"
})
.
Define
(
"t_sim"
,
util
::
get_t
,
{
"invariant_quantities_sim"
});
.
Define
(
"t_sim"
,
util
::
get_t
,
{
"invariant_quantities_sim"
});
...
@@ -115,11 +115,14 @@ int vm_invar(const std::string& config_name)
...
@@ -115,11 +115,14 @@ int vm_invar(const std::string& config_name)
auto
h_nu_sim
=
d_im
.
Histo1D
({
"h_nu_sim"
,
";#nu/1000;#"
,
100
,
0.
,
2.
},
"nu_sim"
);
auto
h_nu_sim
=
d_im
.
Histo1D
({
"h_nu_sim"
,
";#nu/1000;#"
,
100
,
0.
,
2.
},
"nu_sim"
);
auto
h_Q2_sim
=
d_im
.
Histo1D
({
"h_Q2_sim"
,
";Q^{2};#"
,
100
,
0.
,
15.
},
"Q2_sim"
);
auto
h_Q2_sim
=
d_im
.
Histo1D
({
"h_Q2_sim"
,
";Q^{2};#"
,
100
,
0.
,
15.
},
"Q2_sim"
);
auto
h_x_sim
=
d_im
.
Histo1D
({
"h_x_sim"
,
";x;#"
,
100
,
0.
,
0.1
},
"x_sim"
);
auto
h_x_sim
=
d_im
.
Histo1D
({
"h_x_sim"
,
";x;#"
,
100
,
0.
,
0.1
},
"x_sim"
);
auto
h_y_sim
=
d_im
.
Histo1D
({
"h_y_sim"
,
";y;#"
,
50
,
-
10.
,
10.
},
"y_sim"
);
auto
h_t_sim
=
d_im
.
Histo1D
({
"h_t_sim"
,
";t;#"
,
100
,
-
1.
,
0.
},
"t_sim"
);
auto
h_t_sim
=
d_im
.
Histo1D
({
"h_t_sim"
,
";t;#"
,
100
,
-
1.
,
0.
},
"t_sim"
);
auto
h_nu_rec
=
d_im
.
Histo1D
({
"h_nu_rec"
,
";#nu/1000;#"
,
100
,
0.
,
2.
},
"nu_rec"
);
auto
h_nu_rec
=
d_im
.
Histo1D
({
"h_nu_rec"
,
";#nu/1000;#"
,
100
,
0.
,
2.
},
"nu_rec"
);
auto
h_Q2_rec
=
d_im
.
Histo1D
({
"h_Q2_rec"
,
";Q^{2};#"
,
100
,
0.
,
15.
},
"Q2_rec"
);
auto
h_Q2_rec
=
d_im
.
Histo1D
({
"h_Q2_rec"
,
";Q^{2};#"
,
100
,
0.
,
15.
},
"Q2_rec"
);
auto
h_x_rec
=
d_im
.
Histo1D
({
"h_x_rec"
,
";x;#"
,
100
,
0.
,
0.1
},
"x_rec"
);
auto
h_x_rec
=
d_im
.
Histo1D
({
"h_x_rec"
,
";x;#"
,
100
,
0.
,
0.1
},
"x_rec"
);
auto
h_y_rec
=
d_im
.
Histo1D
({
"h_y_rec"
,
";y;#"
,
50
,
-
10.
,
10.
},
"y_rec"
);
auto
h_t_rec
=
d_im
.
Histo1D
({
"h_t_rec"
,
";t;#"
,
100
,
-
1.
,
0.
},
"t_rec"
);
auto
h_t_rec
=
d_im
.
Histo1D
({
"h_t_rec"
,
";t;#"
,
100
,
-
1.
,
0.
},
"t_rec"
);
// Plot our histograms.
// Plot our histograms.
...
@@ -133,18 +136,18 @@ int vm_invar(const std::string& config_name)
...
@@ -133,18 +136,18 @@ int vm_invar(const std::string& config_name)
c
.
Divide
(
2
,
2
,
0.0001
,
0.0001
);
c
.
Divide
(
2
,
2
,
0.0001
,
0.0001
);
// pad 1 nu
// pad 1 nu
c
.
cd
(
1
);
c
.
cd
(
1
);
auto
&
h
nu
_rec
=
*
h_
nu
_rec
;
auto
&
h
y
_rec
=
*
h_
y
_rec
;
auto
&
h
nu
_sim
=
*
h_
nu
_sim
;
auto
&
h
y
_sim
=
*
h_
y
_sim
;
// histogram style
// histogram style
h
nu
_rec
.
SetLineColor
(
plot
::
kMpOrange
);
h
y
_rec
.
SetLineColor
(
plot
::
kMpOrange
);
h
nu
_rec
.
SetLineWidth
(
1
);
h
y
_rec
.
SetLineWidth
(
1
);
h
nu
_sim
.
SetLineColor
(
plot
::
kMpBlue
);
h
y
_sim
.
SetLineColor
(
plot
::
kMpBlue
);
h
nu
_sim
.
SetLineWidth
(
2
);
h
y
_sim
.
SetLineWidth
(
2
);
// axes
// axes
h
nu
_sim
.
GetXaxis
()
->
CenterTitle
();
h
y
_sim
.
GetXaxis
()
->
CenterTitle
();
// draw everything
// draw everything
h
nu
_sim
.
DrawClone
(
"hist"
);
h
y
_sim
.
DrawClone
(
"hist"
);
h
nu
_rec
.
DrawClone
(
"hist same"
);
h
y
_rec
.
DrawClone
(
"hist same"
);
// FIXME hardcoded beam configuration
// FIXME hardcoded beam configuration
plot
::
draw_label
(
10
,
100
,
detector
);
plot
::
draw_label
(
10
,
100
,
detector
);
TText
*
tptr1
;
TText
*
tptr1
;
...
...
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