Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
22
Issue boards
Milestones
Wiki
Code
Merge requests
21
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
reconstruction_benchmarks
Commits
9c945ef7
Commit
9c945ef7
authored
3 years ago
by
Maria Zurek
Browse files
Options
Downloads
Patches
Plain Diff
Calculate nb of thrown events
parent
744b3d83
No related branches found
No related tags found
1 merge request
!153
Draft: Resolve "Add energy scan for Barrel Ecal"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/imaging_ecal/config.yml
+1
-1
1 addition, 1 deletion
benchmarks/imaging_ecal/config.yml
benchmarks/imaging_ecal/scripts/emcal_barrel_energy_scan_analysis_pi_e.cxx
+3
-3
3 additions, 3 deletions
...g_ecal/scripts/emcal_barrel_energy_scan_analysis_pi_e.cxx
with
4 additions
and
4 deletions
benchmarks/imaging_ecal/config.yml
+
1
−
1
View file @
9c945ef7
...
@@ -37,7 +37,7 @@ imaging_ecal_energy_scan_e:
...
@@ -37,7 +37,7 @@ imaging_ecal_energy_scan_e:
-
bash benchmarks/imaging_ecal/run_emcal_barrel.sh -t emcal_barrel_${PARTICLE}_${ENERGY} -n 200 -p "${PARTICLE}" -e "${ENERGY}" && echo "${ENERGY}" >> "$E_file"
-
bash benchmarks/imaging_ecal/run_emcal_barrel.sh -t emcal_barrel_${PARTICLE}_${ENERGY} -n 200 -p "${PARTICLE}" -e "${ENERGY}" && echo "${ENERGY}" >> "$E_file"
parallel
:
parallel
:
matrix
:
matrix
:
-
ENERGY
:
[
"
2"
,
"
5"
,
"
10"
]
-
ENERGY
:
[
"
2"
]
PARTICLE
:
[
electron
,
pion-
]
PARTICLE
:
[
electron
,
pion-
]
imaging_ecal_energy_scan_ph
:
imaging_ecal_energy_scan_ph
:
...
...
This diff is collapsed.
Click to expand it.
benchmarks/imaging_ecal/scripts/emcal_barrel_energy_scan_analysis_pi_e.cxx
+
3
−
3
View file @
9c945ef7
...
@@ -191,18 +191,18 @@ std::tuple <double, double> extract_sampling_fraction_parameters(std::string E_l
...
@@ -191,18 +191,18 @@ std::tuple <double, double> extract_sampling_fraction_parameters(std::string E_l
auto
nbins
=
helectron
->
GetXaxis
()
->
GetNbins
();
auto
nbins
=
helectron
->
GetXaxis
()
->
GetNbins
();
auto
integral_helectron
=
helectron
->
Integral
();
auto
integral_helectron
=
helectron
->
Integral
();
auto
ngen_helectron
=
delectrons
.
Count
();
auto
ngen_helectron
=
delectrons
.
Count
();
std
::
cout
<<
infoHists
[
col
].
name
<<
": Thrown electron events: "
<<
ngen_helectron
<<
" Histo integral: "
<<
integral_helectron
<<
std
::
endl
;
std
::
cout
<<
infoHists
[
col
].
name
<<
": Thrown electron events: "
<<
(
*
ngen_helectron
)
<<
" Histo integral: "
<<
integral_helectron
<<
std
::
endl
;
auto
efficiency_cut_bin
=
0
;
auto
efficiency_cut_bin
=
0
;
for
(
int
bin
=
1
;
bin
<=
nbins
;
bin
++
){
for
(
int
bin
=
1
;
bin
<=
nbins
;
bin
++
){
auto
inegral_helectron_bin
=
helectron
->
Integral
(
1
,
bin
);
auto
inegral_helectron_bin
=
helectron
->
Integral
(
1
,
bin
);
auto
efficiency
=
1.
-
inegral_helectron_bin
/
ngen_helectron
;
auto
efficiency
=
1.
-
inegral_helectron_bin
/
(
*
ngen_helectron
)
;
if
(
efficiency
>
requested_efficiency
)
continue
;
if
(
efficiency
>
requested_efficiency
)
continue
;
else
{
else
{
efficiency_cut_bin
=
bin
-
1
;
efficiency_cut_bin
=
bin
-
1
;
break
;
break
;
}
}
}
}
std
::
cout
<<
"efficiency cut bin: "
<<
efficiency_cut_bin
<<
" efficiency: "
<<
1.
-
(
helectron
->
Integral
(
1
,
efficiency_cut_bin
))
/
ngen_helectron
<<
std
::
endl
;
std
::
cout
<<
"efficiency cut bin: "
<<
efficiency_cut_bin
<<
" efficiency: "
<<
1.
-
(
helectron
->
Integral
(
1
,
efficiency_cut_bin
))
/
(
*
ngen_helectron
)
<<
std
::
endl
;
auto
ngen_hpion
=
dpions
.
Count
();
auto
ngen_hpion
=
dpions
.
Count
();
auto
pion_suppresion
=
hpion
->
Integral
(
efficiency_cut_bin
,
nbins
)
/
ngen_hpion
;
auto
pion_suppresion
=
hpion
->
Integral
(
efficiency_cut_bin
,
nbins
)
/
ngen_hpion
;
std
::
cout
<<
"pion supression: "
<<
pion_suppresion
<<
std
::
end
;
std
::
cout
<<
"pion supression: "
<<
pion_suppresion
<<
std
::
end
;
...
...
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