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
1c848892
Commit
1c848892
authored
4 years ago
by
Marshall Scott
Browse files
Options
Downloads
Patches
Plain Diff
checking include issues 2
parent
a931ef85
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!24
Resolve "pi0 resolution for ECal barrel"
This commit is part of merge request
!24
. 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_analysis.cxx
+5
-5
5 additions, 5 deletions
...marks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
with
5 additions
and
5 deletions
benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
+
5
−
5
Edit
View file @
1c848892
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
#include
"dd4pod/Geant4ParticleCollection.h"
#include
"dd4pod/Geant4ParticleCollection.h"
#include
"dd4pod/CalorimeterHitCollection.h"
#include
"dd4pod/CalorimeterHitCollection.h"
/*
#include "benchmark.h"
#include "benchmark.h"
#include "mt.h"
#include "mt.h"
#include "util.h"
#include "util.h"
*/
#include
"TCanvas.h"
#include
"TCanvas.h"
#include
"TStyle.h"
#include
"TStyle.h"
#include
"TMath.h"
#include
"TMath.h"
...
@@ -42,7 +42,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
...
@@ -42,7 +42,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
//TODO: Change test_tag to something else
//TODO: Change test_tag to something else
std:
string
detector
=
"Barrel_emcal"
;
std:
string
detector
=
"Barrel_emcal"
;
double
resolutionTarget
=
0.1
;
double
resolutionTarget
=
0.1
;
/*
eic
::
util
::
Test
pion0_Energy_resolution
{
eic
::
util
::
Test
pion0_Energy_resolution
{
{{
"name"
,
fmt
::
format
(
"{}_energy_resolution"
,
test_tag
)},
{{
"name"
,
fmt
::
format
(
"{}_energy_resolution"
,
test_tag
)},
{
"title"
,
"Pion0 Energy resolution"
},
{
"title"
,
"Pion0 Energy resolution"
},
...
@@ -50,7 +50,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
...
@@ -50,7 +50,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
fmt
::
format
(
"Pion0 energy resolution with {}, estimated using a Gaussian fit."
,
detector
)},
fmt
::
format
(
"Pion0 energy resolution with {}, estimated using a Gaussian fit."
,
detector
)},
{
"quantity"
,
"resolution (in %)"
},
{
"quantity"
,
"resolution (in %)"
},
{
"target"
,
std
::
to_string
(
resolutionTarget
)}}};
{
"target"
,
std
::
to_string
(
resolutionTarget
)}}};
*/
ROOT
::
EnableImplicitMT
();
ROOT
::
EnableImplicitMT
();
ROOT
::
RDataFrame
d0
(
"events"
,
input_fname
);
ROOT
::
RDataFrame
d0
(
"events"
,
input_fname
);
...
@@ -105,7 +105,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
...
@@ -105,7 +105,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
return
result
;
return
result
;
};
};
// Relative Energy Resolution = (Esampling - Ethrown)/Ethrown
nnn
// Relative Energy Resolution = (Esampling - Ethrown)/Ethrown
auto
eResol_rel
=
[](
const
std
::
vector
<
double
>&
sampled
,
const
std
::
vector
<
double
>&
thrown
)
{
auto
eResol_rel
=
[](
const
std
::
vector
<
double
>&
sampled
,
const
std
::
vector
<
double
>&
thrown
)
{
std
::
vector
<
double
>
result
;
std
::
vector
<
double
>
result
;
auto
it_sam
=
sampled
.
cbegin
();
auto
it_sam
=
sampled
.
cbegin
();
...
...
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