27 #include "TPaveStats.h" 38 static std::map<PerformanceResult::ResultType, std::string>
functType = {
67 template <PerformanceResult::ResultType T>
73 auto tag = PlotBase::getTag<0>();
74 auto iov =
tag.iovs.front();
76 auto payload = fetchPayload(std::get<1>(iov));
83 auto formula_vec =
formula.formulas();
84 auto limits_vec =
formula.limits();
85 if (pos < 0 || pos > (
int)formula_vec.size()) {
87 <<
" as it's not contained in the payload!";
90 TCanvas
canvas(
"PfCalibration",
"PfCalibration", 1500, 800);
92 auto formula_string = formula_vec[
pos];
95 auto function_plot =
new TF1(
"f1", formula_string.c_str(),
limits.first,
limits.second);
96 function_plot->SetTitle((
functType[
T] +
" " + formula_string).c_str());
97 function_plot->GetXaxis()->SetTitle(
"GeV");
98 function_plot->Draw(
"");
Log< level::Error, false > LogError
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
static std::map< PerformanceResult::ResultType, std::string > functType