Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
benchmarks
physics_benchmarks
Commits
a18b5cc5
Commit
a18b5cc5
authored
Mar 23, 2021
by
Zhenyu Ye
Browse files
Commit comments/messages
parent
e5115703
Pipeline
#7468
passed with stages
in 3 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
benchmarks/dvmp/analysis/vm_invar.cxx
View file @
a18b5cc5
...
...
@@ -113,6 +113,7 @@ int vm_invar(const std::string& config_name)
auto
h_t_rec
=
d_im
.
Histo1D
({
"h_t_rec"
,
";t;#"
,
50
,
-
1.
,
0.
},
"t_rec"
);
auto
h_delta_t
=
d_im
.
Histo1D
({
"h_t_sim"
,
";t_{sim}-t{rec};#"
,
100
,
-
1.
,
1.
},
"delta_t"
);
auto
h_t_2D
=
d_im
.
Histo2D
({
"h_2D"
,
";t_{sim};t_{rec};#"
,
50
,
-
1.
,
0.
,
50
,
-
1
,
0
},
"t_sim"
,
"t_rec"
);
// Plot our histograms.
// TODO: to start I'm explicitly plotting the histograms, but want to
...
...
@@ -235,6 +236,17 @@ int vm_invar(const std::string& config_name)
TCanvas
c3
{
"canvas3"
,
"canvas3"
,
1200
,
900
};
c3
.
Divide
(
2
,
2
,
0.0001
,
0.0001
);
// pad 4 t
c3
.
cd
(
3
);
auto
&
ht_t_2D
=
*
h_t_2D
;
// axes
ht_t_2D
.
GetXaxis
()
->
CenterTitle
();
ht_t_2D
.
GetYaxis
()
->
CenterTitle
();
// draw everything
ht_t_2D
.
DrawClone
(
"colz"
);
// FIXME hardcoded beam configuration
plot
::
draw_label
(
10
,
100
,
detector
);
// pad 4 t
c3
.
cd
(
4
);
auto
&
ht_delta_t
=
*
h_delta_t
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment