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
9fd9ba07
Commit
9fd9ba07
authored
4 years ago
by
Marshall Scott
Browse files
Options
Downloads
Patches
Plain Diff
Removed resolution functions
parent
6d391841
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!37
Fix pions
This commit is part of merge request
!29
. Comments created here will be created in the context of that merge request.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/barrel_ecal/scripts/emcal_barrel_pions_electrons_analysis.cxx
+0
-22
0 additions, 22 deletions
...el_ecal/scripts/emcal_barrel_pions_electrons_analysis.cxx
with
0 additions
and
22 deletions
benchmarks/barrel_ecal/scripts/emcal_barrel_pions_electrons_analysis.cxx
+
0
−
22
Edit
View file @
9fd9ba07
...
...
@@ -68,28 +68,6 @@ void emcal_barrel_pions_electrons_analysis(const char* input_fname = "sim_output
return
result
;
};
// Energy Resolution = Esampling/Sampling_fraction - Ethrown
auto
eResol
=
[
samp_frac
](
const
std
::
vector
<
double
>&
sampled
,
const
std
::
vector
<
double
>&
thrown
)
{
std
::
vector
<
double
>
result
;
auto
it_sam
=
sampled
.
cbegin
();
auto
it_thr
=
thrown
.
cbegin
();
for
(;
it_sam
!=
sampled
.
end
()
&&
it_thr
!=
thrown
.
end
();
++
it_sam
,
++
it_thr
)
{
result
.
push_back
(
*
it_sam
/
samp_frac
-
*
it_thr
);
}
return
result
;
};
// Relative Energy Resolution = (Esampling/Sampling fraction - Ethrown)/Ethrown
auto
eResol_rel
=
[
samp_frac
](
const
std
::
vector
<
double
>&
sampled
,
const
std
::
vector
<
double
>&
thrown
)
{
std
::
vector
<
double
>
result
;
auto
it_sam
=
sampled
.
cbegin
();
auto
it_thr
=
thrown
.
cbegin
();
for
(;
it_sam
!=
sampled
.
end
()
&&
it_thr
!=
thrown
.
end
();
++
it_sam
,
++
it_thr
)
{
result
.
push_back
((
*
it_sam
/
samp_frac
-
*
it_thr
)
/
*
it_thr
);
}
return
result
;
};
// Returns the pdgID of the particle
auto
getpid
=
[](
std
::
vector
<
dd4pod
::
Geant4ParticleData
>
const
&
input
)
{
return
input
[
2
].
pdgID
;
...
...
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