Skip to content
Snippets Groups Projects

Resolve "pi0 resolution for ECal barrel"

Merged Marshall Scott requested to merge 19-pi0-resolution-for-ecal-barrel into master
Compare and Show latest version
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -51,6 +51,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
{"quantity", "resolution (in %)"},
{"target", std::to_string(resolutionTarget)}}};
*/
gSystem->Exec("cp sim_output/sim_emcal_barrel_uniform_pions.root results/sim_emcal_barrel_uniform_pions.root");
ROOT::EnableImplicitMT();
ROOT::RDataFrame d0("events", input_fname);
@@ -106,7 +107,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
return result;
};
// Relative Energy Resolution = (Esampling - Ethrown)/Ethrown
// Relative Energy Resolution = (Esampling - Ethrown)/Esampling
auto eResol_rel = [](const std::vector<double>& sampled, const std::vector<double>& thrown) {
std::vector<double> result;
auto it_sam = sampled.cbegin();
Loading