From ef3abfd42d92338fef1d020920f7839f87b36994 Mon Sep 17 00:00:00 2001 From: Marshall Scott <mbscott@anl.gov> Date: Mon, 3 May 2021 10:56:33 -0400 Subject: [PATCH] calculates sampling fraction and then uses that to correctly calculate the resolution 5 --- benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx | 2 +- 1 file changed, 1 insertion(+), 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 a49ca514..62d5e0b8 100644 --- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx +++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx @@ -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 - auto svec = d1.Mean<double>("fsam"); + auto svec = d1.Mean("fsam"); for (auto &ele : svec){cout << ele << endl;} auto d2 = d1.Define("dE", eResol, {"Esim","Ethr"}) -- GitLab