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
772ec88c
Commit
772ec88c
authored
3 years ago
by
Marshall Scott
Browse files
Options
Downloads
Patches
Plain Diff
Fixed naming
parent
a3dc2907
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
+7
-6
7 additions, 6 deletions
...marks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
with
7 additions
and
6 deletions
benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
+
7
−
6
View file @
772ec88c
...
@@ -96,7 +96,6 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
...
@@ -96,7 +96,6 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
auto
hNhits
=
d1
.
Histo1D
({
"hNhits"
,
"Number of hits per events; Number of hits; Events"
,
100
,
0.0
,
2000.0
},
"nhits"
);
auto
hNhits
=
d1
.
Histo1D
({
"hNhits"
,
"Number of hits per events; Number of hits; Events"
,
100
,
0.0
,
2000.0
},
"nhits"
);
auto
hEsim
=
d1
.
Histo1D
({
"hEsim"
,
"Energy Deposit; Energy Deposit [GeV]; Events"
,
100
,
0.0
,
1.0
},
"Esim"
);
auto
hEsim
=
d1
.
Histo1D
({
"hEsim"
,
"Energy Deposit; Energy Deposit [GeV]; Events"
,
100
,
0.0
,
1.0
},
"Esim"
);
auto
hfsam
=
d1
.
Histo1D
({
"hfsam"
,
"Sampling Fraction; Sampling Fraction; Events"
,
100
,
0.0
,
0.1
},
"fsam"
);
auto
hfsam
=
d1
.
Histo1D
({
"hfsam"
,
"Sampling Fraction; Sampling Fraction; Events"
,
100
,
0.0
,
0.1
},
"fsam"
);
// Event Counts
// Event Counts
auto
nevents_thrown
=
d1
.
Count
();
auto
nevents_thrown
=
d1
.
Count
();
...
@@ -143,16 +142,19 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
...
@@ -143,16 +142,19 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
c4
->
SaveAs
(
"results/emcal_barrel_pions_fsam.pdf"
);
c4
->
SaveAs
(
"results/emcal_barrel_pions_fsam.pdf"
);
//Energy Resolution Work
//Energy Resolution Work
auto
hdE
=
d1
.
Histo1D
({
"hdE"
,
"dE; dE[GeV]; Events"
,
100
,
-
7.5
,
7.5
},
"dE"
);
auto
hdE
=
d1
.
Histo1D
({
"hdE"
,
"dE; dE[GeV]; Events"
,
100
,
-
7.5
,
7.5
},
"dE"
);
auto
hdE_rel
=
d1
.
Histo1D
({
"hdE_rel"
,
"dE Relative; dE Relative; Events"
,
100
,
-
7.5
,
7.5
},
"dE_rel"
);
auto
hdE_rel
=
d1
.
Histo1D
({
"hdE_rel"
,
"dE Relative; dE Relative; Events"
,
100
,
-
7.5
,
7.5
},
"dE_rel"
);
auto
f1
=
hdE_rel
->
Fit
(
"gaus"
,
"S"
);
auto
f1
=
hdE_rel
->
Fit
(
"gaus"
,
"S"
);
const
double
*
res
=
f1
->
GetParams
();
const
double
*
res
=
f1
->
GetParams
();
//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
]);
}
}
//Energy Resolution Histogram Plotting
auto
*
cdE
=
new
TCanvas
(
"cdE"
,
"cdE"
,
700
,
500
);
auto
*
cdE
=
new
TCanvas
(
"cdE"
,
"cdE"
,
700
,
500
);
cDE
->
SetLogy
(
1
);
cDE
->
SetLogy
(
1
);
hdE
->
GetYaxis
()
->
SetTitleOffset
(
1.4
);
hdE
->
GetYaxis
()
->
SetTitleOffset
(
1.4
);
...
@@ -163,7 +165,6 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
...
@@ -163,7 +165,6 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
cdE
->
SaveAs
(
"results/emcal_barrel_pi0_dE.pdf"
);
cdE
->
SaveAs
(
"results/emcal_barrel_pi0_dE.pdf"
);
auto
*
cdE_rel
=
new
TCanvas
(
"cdE_rel"
,
"cdE_rel"
,
700
,
500
);
auto
*
cdE_rel
=
new
TCanvas
(
"cdE_rel"
,
"cdE_rel"
,
700
,
500
);
cdE_rel
->
SetLogy
(
1
);
hdE_rel
->
GetYaxis
()
->
SetTitleOffset
(
1.4
);
hdE_rel
->
GetYaxis
()
->
SetTitleOffset
(
1.4
);
hdE_rel
->
SetLineWidth
(
2
);
hdE_rel
->
SetLineWidth
(
2
);
hdE_rel
->
SetLineColor
(
kBlue
);
hdE_rel
->
SetLineColor
(
kBlue
);
...
@@ -174,7 +175,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
...
@@ -174,7 +175,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_
E
nergy_resolution
},
fmt
::
format
(
"{}_pions.json"
,
detector
));
eic
::
util
::
write_test
({
pion0_
e
nergy_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