Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
detector_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
detector_benchmarks
Commits
71af800e
Commit
71af800e
authored
3 years ago
by
Marshall Scott
Browse files
Options
Downloads
Patches
Plain Diff
Checking if benchmark testing is the issue
parent
772ec88c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
+6
-2
6 additions, 2 deletions
...marks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
with
6 additions
and
2 deletions
benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
+
6
−
2
View file @
71af800e
...
@@ -41,6 +41,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
...
@@ -41,6 +41,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
//TODO: Change test_tag to something else
//TODO: Change test_tag to something else
std:
string
detector
=
"Barrel_emcal"
;
std:
string
detector
=
"Barrel_emcal"
;
double
resolutionTarget
=
0.1
;
double
resolutionTarget
=
0.1
;
/*
eic::util::Test pion0_Energy_resolution{
eic::util::Test pion0_Energy_resolution{
{{"name", fmt::format("{}_energy_resolution", test_tag)},
{{"name", fmt::format("{}_energy_resolution", test_tag)},
{"title", "Pion0 Energy resolution"},
{"title", "Pion0 Energy resolution"},
...
@@ -48,7 +49,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
...
@@ -48,7 +49,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
fmt::format("Pion0 energy resolution with {}, estimated using a Gaussian fit.", detector)},
fmt::format("Pion0 energy resolution with {}, estimated using a Gaussian fit.", detector)},
{"quantity", "resolution (in %)"},
{"quantity", "resolution (in %)"},
{"target", std::to_string(resolutionTarget)}}};
{"target", std::to_string(resolutionTarget)}}};
*/
ROOT
::
EnableImplicitMT
();
ROOT
::
EnableImplicitMT
();
ROOT
::
RDataFrame
d0
(
"events"
,
input_fname
);
ROOT
::
RDataFrame
d0
(
"events"
,
input_fname
);
...
@@ -148,11 +149,14 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
...
@@ -148,11 +149,14 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
const
double
*
res
=
f1
->
GetParams
();
const
double
*
res
=
f1
->
GetParams
();
//Pass/Fail
//Pass/Fail
/*
if (res[2] <= resolutionTarget) {
if (res[2] <= resolutionTarget) {
pion0_energy_resolution.pass(res[2]);
pion0_energy_resolution.pass(res[2]);
} else {
} else {
pion0_energy_resolution.fail(res[2]);
pion0_energy_resolution.fail(res[2]);
}
}
*/
std
::
printf
(
"Energy Resolution is %f
\n
"
,
res
[
2
]);
//Energy Resolution Histogram Plotting
//Energy Resolution Histogram Plotting
auto
*
cdE
=
new
TCanvas
(
"cdE"
,
"cdE"
,
700
,
500
);
auto
*
cdE
=
new
TCanvas
(
"cdE"
,
"cdE"
,
700
,
500
);
...
@@ -175,7 +179,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
...
@@ -175,7 +179,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
cdE_rel
->
SaveAs
(
"results/emcal_barrel_pi0_dE_rel.png"
);
cdE_rel
->
SaveAs
(
"results/emcal_barrel_pi0_dE_rel.png"
);
cdE_rel
->
SaveAs
(
"results/emcal_barrel_pi0_dE_rel.pdf"
);
cdE_rel
->
SaveAs
(
"results/emcal_barrel_pi0_dE_rel.pdf"
);
eic
::
util
::
write_test
({
pion0_energy_resolution
},
fmt
::
format
(
"{}_pions.json"
,
detector
));
//
eic::util::write_test({pion0_energy_resolution}, fmt::format("{}_pions.json", detector));
}
}
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