Skip to content
Snippets Groups Projects
Commit 8ddc0c20 authored by Marshall Scott's avatar Marshall Scott
Browse files

calculates sampling fraction and then uses that to correctly calculate the resolution 3

parent 37eb49e4
No related branches found
No related tags found
1 merge request!24Resolve "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.
...@@ -126,7 +126,8 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal ...@@ -126,7 +126,8 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
.Define("pid", getpid, {"mcparticles"}) .Define("pid", getpid, {"mcparticles"})
; ;
// Set sampling Fraction, ideally this will be taken from a json file // Set sampling Fraction, ideally this will be taken from a json file
samp_frac = *d1.Mean<double>("fsam"); auto svec = d1.Mean<double>("fsam");
for (auto ele : svec){cout << ele << endl;}
auto d2 = d1.Define("dE", eResol, {"Esim","Ethr"}) auto d2 = d1.Define("dE", eResol, {"Esim","Ethr"})
.Define("dE_rel", eResol_rel, {"Esim","Ethr"}) .Define("dE_rel", eResol_rel, {"Esim","Ethr"})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment