Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
reconstruction_benchmarks
Commits
a60821da
Commit
a60821da
authored
Nov 20, 2020
by
Jihee Kim
Browse files
Options
Downloads
Patches
Plain Diff
debugging
parent
adf0d6cd
No related branches found
No related tags found
1 merge request
!36
Update Analysis Script
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ecal/scripts/emcal_electrons_analysis.cxx
+10
-13
10 additions, 13 deletions
ecal/scripts/emcal_electrons_analysis.cxx
with
10 additions
and
13 deletions
ecal/scripts/emcal_electrons_analysis.cxx
+
10
−
13
View file @
a60821da
...
...
@@ -113,17 +113,6 @@ void emcal_electrons_analysis(const char* input_fname = "rec_electron_10kEvt.roo
return
result
;
};
// Energy Ratio
auto
E_ratio
=
[]
(
const
std
::
vector
<
float
>&
Erec
,
const
std
::
vector
<
float
>&
Ethr
)
{
std
::
vector
<
float
>
result
;
for
(
const
auto
&
E1
:
Ethr
)
{
for
(
const
auto
&
E2
:
Erec
)
{
result
.
push_back
(
E2
/
E1
);
}
}
return
result
;
};
// Define variables
auto
d1
=
d0
.
Define
(
"ncluster"
,
ncluster
,
{
"EcalClusters"
})
.
Define
(
"clusterE"
,
clusterE
,
{
"EcalClusters"
})
...
...
@@ -134,7 +123,6 @@ void emcal_electrons_analysis(const char* input_fname = "rec_electron_10kEvt.roo
.
Define
(
"p_thr"
,
p_thr
,
{
"mcparticles2"
})
.
Define
(
"E_thr"
,
E_thr
,
{
"mcparticles2"
})
.
Define
(
"E_res"
,
E_res
,
{
"clusterE"
,
"E_thr"
})
.
Define
(
"E_ratio"
,
E_ratio
,
{
"clusterE"
,
"E_thr"
})
;
// Define Histograms
...
...
@@ -150,7 +138,16 @@ void emcal_electrons_analysis(const char* input_fname = "rec_electron_10kEvt.roo
auto
d2
=
d1
.
Filter
(
"ncluster==1"
);
auto
hClusterE1
=
d2
.
Histo1D
({
"hClusterE1"
,
"One Cluster Energy; Cluster Energy [GeV]; Events"
,
100
,
-
0.5
,
30.5
},
"clusterE"
);
auto
hEres
=
d2
.
Histo1D
({
"hEres"
,
"Energy Resolution; #DeltaE/E; Events"
,
100
,
-
0.3
,
0.3
},
"E_res"
);
auto
hPthr_accepted
=
d2
.
Filter
(
"E_ratio > 0.9"
)
auto
hPthr_accepted
=
d2
.
Filter
([
=
]
(
const
std
::
vector
<
float
>&
Erec
,
const
std
::
vector
<
float
>&
Ethr
)
{
for
(
const
auto
&
E1
:
Ethr
)
{
for
(
const
auto
&
E2
:
Erec
)
{
auto
Eratio
=
E2
/
E1
;
if
(
Eratio
>
0.9
)
{
return
true
;
}
}
}
return
false
;},
{
"clusterE"
,
"E_thr"
})
.
Histo1D
({
"hPthr_accepted"
,
"Thrown momentum for reconstructed particle; p_{thr} [GeV]; Events"
,
100
,
-
0.5
,
30.5
},
"p_thr"
);
// Draw Histograms
...
...
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