From 8ddc0c20b0b64fc6ed9d0ec29a4a58619577f08c Mon Sep 17 00:00:00 2001 From: Marshall Scott <mbscott@anl.gov> Date: Mon, 3 May 2021 10:42:44 -0400 Subject: [PATCH] calculates sampling fraction and then uses that to correctly calculate the resolution 3 --- benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx index ad9d6dee..dc7fe0fb 100644 --- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx +++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx @@ -126,7 +126,8 @@ 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"); + auto svec = d1.Mean<double>("fsam"); + for (auto ele : svec){cout << ele << endl;} auto d2 = d1.Define("dE", eResol, {"Esim","Ethr"}) .Define("dE_rel", eResol_rel, {"Esim","Ethr"}) -- GitLab