File indexing completed on 2026-07-26 08:22:20
0001
0002
0003
0004
0005
0006
0007
0008 #pragma once
0009
0010
0011 #include "traccc/utils/helpers.hpp"
0012
0013
0014 #include <map>
0015 #include <string>
0016 #include <vector>
0017
0018 namespace traccc {
0019
0020
0021 struct res_plot_tool_config {
0022
0023 std::vector<std::string> param_names = {"d0", "z0", "phi", "theta",
0024 "qop", "t", "qopT", "qopz"};
0025
0026
0027 std::map<std::string, plot_helpers::binning> var_binning = {
0028 {"pull", plot_helpers::binning("pull", 100, -5, 5)},
0029 {"residual_d0", plot_helpers::binning("r_{d0} [mm]", 100, -0.5f, 0.5f)},
0030 {"residual_z0", plot_helpers::binning("r_{z0} [mm]", 100, -0.5f, 0.5f)},
0031 {"residual_phi",
0032 plot_helpers::binning("r_{#phi} [rad]", 100, -0.01f, 0.01f)},
0033 {"residual_theta",
0034 plot_helpers::binning("r_{#theta} [rad]", 100, -0.01f, 0.01f)},
0035 {"residual_qop",
0036 plot_helpers::binning("r_{q/p} [c/GeV]", 100, -1.f, 1.f)},
0037 {"residual_t", plot_helpers::binning("r_{t} [s]", 100, -1000.f, 1000.f)},
0038 {"residual_qopT",
0039 plot_helpers::binning("r_{q/p_{T}} [c/GeV]", 100, -1.f, 1.f)},
0040 {"residual_qopz",
0041 plot_helpers::binning("r_{q/p_{z}} [c/GeV]", 100, -1.f, 1.f)},
0042 {"resolution_d0",
0043 plot_helpers::binning("#sigma_{d0} [mm]", 100, 0.f, 0.5f)},
0044 {"resolution_z0",
0045 plot_helpers::binning("#sigma_{z0} [mm]", 100, 0.f, 0.5f)},
0046 {"resolution_phi",
0047 plot_helpers::binning("#sigma_{#phi} [rad]", 100, 0.f, 0.01f)},
0048 {"resolution_theta",
0049 plot_helpers::binning("#sigma_{#theta} [rad]", 100, 0.f, 0.01f)},
0050 {"resolution_qop",
0051 plot_helpers::binning("#sigma_{q/p} [c/GeV]", 100, 0.f, 0.1f)},
0052 {"resolution_t",
0053 plot_helpers::binning("#sigma_{t} [s]", 100, -1000.f, 1000.f)},
0054 {"resolution_qopT",
0055 plot_helpers::binning("#sigma_{q/p_{T}} [c/GeV]", 100, 0.f, 0.1f)},
0056 {"resolution_qopz",
0057 plot_helpers::binning("#sigma_{q/p_{z}} [c/GeV]", 100, 0.f, 0.1f)},
0058 {"Eta", plot_helpers::binning("#eta", 40, -4.f, 4.f)},
0059 {"Pt", plot_helpers::binning("p_{T} [GeV/c]", 40, 0.f, 100.f)},
0060 };
0061 };
0062
0063 }