File indexing completed on 2026-07-26 08:22:21
0001
0002
0003
0004
0005
0006
0007
0008 #pragma once
0009
0010
0011 #include "traccc/utils/helpers.hpp"
0012
0013
0014 #ifdef TRACCC_HAVE_ROOT
0015 #include <TEfficiency.h>
0016 #include <TH1.h>
0017 #include <TH2.h>
0018 #include <TProfile.h>
0019 #endif
0020
0021
0022 #include <memory>
0023 #include <string_view>
0024
0025 namespace traccc::plot_helpers {
0026
0027 #ifdef TRACCC_HAVE_ROOT
0028
0029
0030
0031
0032
0033
0034
0035 std::unique_ptr<TH1> book_histo(std::string_view hist_name,
0036 std::string_view hist_title,
0037 const binning& var_binning);
0038
0039
0040
0041
0042
0043
0044
0045
0046 std::unique_ptr<TH2> book_histo(std::string_view hist_name,
0047 std::string_view hist_title,
0048 const binning& var_x_binning,
0049 const binning& var_y_binning);
0050
0051
0052
0053
0054
0055
0056
0057 std::unique_ptr<TEfficiency> book_eff(std::string_view eff_name,
0058 std::string_view eff_title,
0059 const binning& var_binning);
0060
0061 std::unique_ptr<TProfile> book_prof(std::string_view prof_name,
0062 std::string_view prof_title,
0063 const binning& var_x_binning,
0064 const binning& var_y_binning);
0065
0066 #endif
0067
0068 }