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

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

parent ffff5b59
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,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
.Define("pid", getpid, {"mcparticles"})
;
// Set sampling Fraction, ideally this will be taken from a json file
samp_frac = &d1.Mean<double>("fsam");
samp_frac = *d1.Mean<double>("fsam");
auto d2 = d1.Define("dE", eResol, {"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