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
29b65ebd
Commit
29b65ebd
authored
Nov 24, 2020
by
Jihee Kim
Browse files
Options
Downloads
Patches
Plain Diff
Fixed filter
parent
bd791391
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ecal/scripts/emcal_electrons_analysis.cxx
+5
-1
5 additions, 1 deletion
ecal/scripts/emcal_electrons_analysis.cxx
with
5 additions
and
1 deletion
ecal/scripts/emcal_electrons_analysis.cxx
+
5
−
1
View file @
29b65ebd
...
@@ -150,7 +150,11 @@ void emcal_electrons_analysis(const char* input_fname = "rec_electron_10kEvt.roo
...
@@ -150,7 +150,11 @@ void emcal_electrons_analysis(const char* input_fname = "rec_electron_10kEvt.roo
auto
d2
=
d1
.
Filter
(
"ncluster==1"
);
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
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
,
-
1.0
,
1.0
},
"E_res"
);
auto
hEres
=
d2
.
Histo1D
({
"hEres"
,
"Energy Resolution; #DeltaE/E; Events"
,
100
,
-
1.0
,
1.0
},
"E_res"
);
auto
hEres_lmom
=
d2
.
Filter
(
"p_thr < 15.0"
)
auto
hEres_lmom
=
d2
.
Filter
([
=
](
std
::
vector
<
dd4pod
::
Geant4ParticleData
>
const
&
input
)
{
auto
Pthr
=
TMath
::
Sqrt
(
input
[
2
].
psx
*
input
[
2
].
psx
+
input
[
2
].
psy
*
input
[
2
].
psy
+
input
[
2
].
psz
*
input
[
2
].
psz
+
input
[
2
].
mass
*
input
[
2
].
mass
);
if
(
Pthr
<
15.0
)
return
true
;
return
false
;},
{
"mcparticles2"
})
.
Histo1D
({
"hEres_lmom"
,
"Energy Resolution; #DeltaE/E; Events"
,
100
,
-
1.0
,
1.0
},
"E_res"
);
.
Histo1D
({
"hEres_lmom"
,
"Energy Resolution; #DeltaE/E; Events"
,
100
,
-
1.0
,
1.0
},
"E_res"
);
auto
hPratio
=
d2
.
Histo1D
({
"hPratio"
,
"Momentum ratio; p_{rec}/p_{thr}; Events"
,
100
,
0.0
,
1.0
},
"p_ratio"
);
auto
hPratio
=
d2
.
Histo1D
({
"hPratio"
,
"Momentum ratio; p_{rec}/p_{thr}; Events"
,
100
,
0.0
,
1.0
},
"p_ratio"
);
auto
hPthr_accepted
=
d2
.
Filter
([
=
]
(
const
std
::
vector
<
float
>&
Prec
,
const
std
::
vector
<
float
>&
Pthr
)
{
auto
hPthr_accepted
=
d2
.
Filter
([
=
]
(
const
std
::
vector
<
float
>&
Prec
,
const
std
::
vector
<
float
>&
Pthr
)
{
...
...
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