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
Commits
90e79790
Commit
90e79790
authored
3 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
Update dis_electrons.cxx: plots
parent
9905e526
No related branches found
No related tags found
1 merge request
!113
Inclusive Kinematics JB DA
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/dis/analysis/dis_electrons.cxx
+26
-2
26 additions, 2 deletions
benchmarks/dis/analysis/dis_electrons.cxx
with
26 additions
and
2 deletions
benchmarks/dis/analysis/dis_electrons.cxx
+
26
−
2
View file @
90e79790
...
...
@@ -90,12 +90,20 @@ int dis_electrons(const std::string& config_name)
//Q2
auto
h_Q2_sim
=
d0
.
Histo1D
({
"h_Q2_sim"
,
"; GeV^2; counts"
,
100
,
-
5
,
25
},
"Q2_sim"
);
auto
h_Q2_el
=
d0
.
Histo1D
({
"h_Q2_rec"
,
"; GeV^2; counts"
,
100
,
-
5
,
25
},
"Q2_rec"
);
auto
h_Q2_el
=
d0
.
Histo1D
({
"h_Q2_el"
,
"; GeV^2; counts"
,
100
,
-
5
,
25
},
"Q2_el"
);
auto
h_Q2_jb
=
d0
.
Histo1D
({
"h_Q2_jb"
,
"; GeV^2; counts"
,
100
,
-
5
,
25
},
"Q2_jb"
);
auto
h_Q2_da
=
d0
.
Histo1D
({
"h_Q2_da"
,
"; GeV^2; counts"
,
100
,
-
5
,
25
},
"Q2_da"
);
auto
h_Q2_el_res
=
d0
.
Histo1D
({
"h_Q2_el_res"
,
"; ; counts"
,
100
,
-
1
,
1
},
"Q2_el_res"
);
auto
h_Q2_jb_res
=
d0
.
Histo1D
({
"h_Q2_jb_res"
,
"; ; counts"
,
100
,
-
1
,
1
},
"Q2_jb_res"
);
auto
h_Q2_da_res
=
d0
.
Histo1D
({
"h_Q2_da_res"
,
"; ; counts"
,
100
,
-
1
,
1
},
"Q2_da_res"
);
//x
auto
h_x_sim
=
d0
.
Histo1D
({
"h_x_sim"
,
"; ; counts"
,
100
,
0
,
+
1
},
"x_sim"
);
auto
h_x_el
=
d0
.
Histo1D
({
"h_x_rec"
,
"; ; counts"
,
100
,
0
,
+
1
},
"x_rec"
);
auto
h_x_el
=
d0
.
Histo1D
({
"h_x_el"
,
"; ; counts"
,
100
,
0
,
+
1
},
"x_el"
);
auto
h_x_jb
=
d0
.
Histo1D
({
"h_x_jb"
,
"; ; counts"
,
100
,
0
,
+
1
},
"x_jb"
);
auto
h_x_da
=
d0
.
Histo1D
({
"h_x_da"
,
"; ; counts"
,
100
,
0
,
+
1
},
"x_da"
);
auto
h_x_el_res
=
d0
.
Histo1D
({
"h_x_el_res"
,
"; ; counts"
,
100
,
-
1
,
1
},
"x_el_res"
);
auto
h_x_jb_res
=
d0
.
Histo1D
({
"h_x_jb_res"
,
"; ; counts"
,
100
,
-
1
,
1
},
"x_jb_res"
);
auto
h_x_da_res
=
d0
.
Histo1D
({
"h_x_da_res"
,
"; ; counts"
,
100
,
-
1
,
1
},
"x_da_res"
);
TFitResultPtr
f_Q2_el_res
=
h_Q2_el_res
->
Fit
(
"gaus"
,
"S"
);
if
(
f_Q2_el_res
==
0
)
f_Q2_el_res
->
Print
(
"V"
);
...
...
@@ -114,6 +122,8 @@ int dis_electrons(const std::string& config_name)
gPad
->
SetLogy
(
true
);
auto
&
h1
=
*
h_Q2_sim
;
auto
&
h2
=
*
h_Q2_el
;
auto
&
h3
=
*
h_Q2_jb
;
auto
&
h4
=
*
h_Q2_da
;
// histogram style
h1
.
SetLineColor
(
common_bench
::
plot
::
kMpBlue
);
h1
.
SetLineWidth
(
2
);
...
...
@@ -125,6 +135,8 @@ int dis_electrons(const std::string& config_name)
// draw everything
h1
.
DrawClone
(
"hist"
);
h2
.
DrawClone
(
"hist same"
);
h3
.
DrawClone
(
"hist same"
);
h4
.
DrawClone
(
"hist same"
);
// FIXME hardcoded beam configuration
common_bench
::
plot
::
draw_label
(
18
,
275
,
detector
);
TText
*
tptr1
;
...
...
@@ -147,6 +159,8 @@ int dis_electrons(const std::string& config_name)
gPad
->
SetLogx
(
false
);
gPad
->
SetLogy
(
true
);
auto
&
h1
=
*
h_Q2_el_res
;
auto
&
h2
=
*
h_Q2_jb_res
;
auto
&
h3
=
*
h_Q2_da_res
;
// histogram style
h1
.
SetLineColor
(
common_bench
::
plot
::
kMpBlue
);
h1
.
SetLineWidth
(
2
);
...
...
@@ -155,6 +169,8 @@ int dis_electrons(const std::string& config_name)
h1
.
GetYaxis
()
->
CenterTitle
();
// draw everything
h1
.
DrawClone
(
"hist"
);
h2
.
DrawClone
(
"hist same"
);
h3
.
DrawClone
(
"hist same"
);
// FIXME hardcoded beam configuration
common_bench
::
plot
::
draw_label
(
18
,
275
,
detector
);
c
.
Print
(
fmt
::
format
(
"{}Q2resolution.png"
,
output_prefix
).
c_str
());
...
...
@@ -168,6 +184,8 @@ int dis_electrons(const std::string& config_name)
gPad
->
SetLogy
(
true
);
auto
&
h1
=
*
h_x_sim
;
auto
&
h2
=
*
h_x_el
;
auto
&
h3
=
*
h_x_jb
;
auto
&
h4
=
*
h_x_da
;
// histogram style
h1
.
SetLineColor
(
common_bench
::
plot
::
kMpBlue
);
h1
.
SetLineWidth
(
2
);
...
...
@@ -179,6 +197,8 @@ int dis_electrons(const std::string& config_name)
// draw everything
h1
.
DrawClone
(
"hist"
);
h2
.
DrawClone
(
"hist same"
);
h3
.
DrawClone
(
"hist same"
);
h4
.
DrawClone
(
"hist same"
);
// FIXME hardcoded beam configuration
common_bench
::
plot
::
draw_label
(
18
,
275
,
detector
);
TText
*
tptr1
;
...
...
@@ -201,6 +221,8 @@ int dis_electrons(const std::string& config_name)
gPad
->
SetLogx
(
false
);
gPad
->
SetLogy
(
true
);
auto
&
h1
=
*
h_x_el_res
;
auto
&
h2
=
*
h_x_jb_res
;
auto
&
h3
=
*
h_x_da_res
;
// histogram style
h1
.
SetLineColor
(
common_bench
::
plot
::
kMpBlue
);
h1
.
SetLineWidth
(
2
);
...
...
@@ -209,6 +231,8 @@ int dis_electrons(const std::string& config_name)
h1
.
GetYaxis
()
->
CenterTitle
();
// draw everything
h1
.
DrawClone
(
"hist"
);
h2
.
DrawClone
(
"hist same"
);
h3
.
DrawClone
(
"hist same"
);
// FIXME hardcoded beam configuration
common_bench
::
plot
::
draw_label
(
18
,
275
,
detector
);
c
.
Print
(
fmt
::
format
(
"{}xresolution.png"
,
output_prefix
).
c_str
());
...
...
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