diff --git a/benchmarks/dis/analysis/dis_electrons.cxx b/benchmarks/dis/analysis/dis_electrons.cxx index fed2cafccf0d25a27f5b35dc7a45f0d53be93d2e..9ac81ce3c19bc67391bcd28bb4b875f1e6662576 100644 --- a/benchmarks/dis/analysis/dis_electrons.cxx +++ b/benchmarks/dis/analysis/dis_electrons.cxx @@ -150,6 +150,32 @@ int dis_electrons(const std::string& config_name) TFitResultPtr f_x_esigma_res = h_x_esigma_res->Fit("gaus", "S"); if (f_x_esigma_res == 0) f_x_esigma_res->Print("V"); + // Print summary + fmt::print(fmt::emphasis::bold | fg(fmt::color::forest_green), + "Inclusive kinematics summary:\n"); + fmt::print("Q2 resolution:\n"); + fmt::print(" - electron: {} +/- {}\n", + f_Q2_el_res->Parameter(1), f_Q2_el_res->Error(1)); + fmt::print(" - sigma: {} +/- {}\n", + f_Q2_sigma_res->Parameter(1), f_Q2_sigma_res->Error(1)); + fmt::print(" - esigma: {} +/- {}\n", + f_Q2_esigma_res->Parameter(1), f_Q2_esigma_res->Error(1)); + fmt::print(" - JB: {} +/- {}\n", + f_Q2_jb_res->Parameter(1), f_Q2_jb_res->Error(1)); + fmt::print(" - DA: {} +/- {}\n", + f_Q2_da_res->Parameter(1), f_Q2_da_res->Error(1)); + fmt::print("x resolution:\n"); + fmt::print(" - electron: {} +/- {}\n", + f_x_el_res->Parameter(1), f_x_el_res->Error(1)); + fmt::print(" - sigma: {} +/- {}\n", + f_x_sigma_res->Parameter(1), f_x_sigma_res->Error(1)); + fmt::print(" - esigma: {} +/- {}\n", + f_x_esigma_res->Parameter(1), f_x_esigma_res->Error(1)); + fmt::print(" - JB: {} +/- {}\n", + f_x_jb_res->Parameter(1), f_x_jb_res->Error(1)); + fmt::print(" - DA: {} +/- {}\n", + f_x_da_res->Parameter(1), f_x_da_res->Error(1)); + // Plot our histograms. // TODO: to start I'm explicitly plotting the histograms, but want to // factorize out the plotting code moving forward. diff --git a/benchmarks/dis/dis.sh b/benchmarks/dis/dis.sh index f34e543cf3f204205871168ac5a99c1c3f8fef3f..27c347f32b0f94b4f46a37647c39e4e82116aed3 100755 --- a/benchmarks/dis/dis.sh +++ b/benchmarks/dis/dis.sh @@ -114,12 +114,11 @@ cat << EOF > ${CONFIG} } EOF -#FIXME DIS analysis disabled -#root -b -q "benchmarks/dis/analysis/dis_electrons.cxx+(\"${CONFIG}\")" -#if [[ "$?" -ne "0" ]] ; then -# echo "ERROR running dis_electron script" -# exit 1 -#fi +root -b -q "benchmarks/dis/analysis/dis_electrons.cxx+(\"${CONFIG}\")" +if [[ "$?" -ne "0" ]] ; then + echo "ERROR running dis_electron script" + exit 1 +fi CONFIG="${TMP_PATH}/${PLOT_TAG}.raw.json" cat << EOF > ${CONFIG}