10 std::string hist_title = title;
13 pos = hist_title.find(
';', pos);
14 if (pos == std::string::npos)
return hist_title;
15 hist_title.insert(pos, 1,
'#');
23 case 0:
return *hist.GetXaxis();
25 throw std::runtime_error(std::to_string(idx)
26 +
" is not a valid axis index for TH1");
33 case 0:
return *hist.GetXaxis();
34 case 1:
return *hist.GetYaxis();
36 throw std::runtime_error(std::to_string(idx)
37 +
" is not a valid axis index for TH2");
44 case 0:
return *hist.GetXaxis();
45 case 1:
return *hist.GetYaxis();
46 case 2:
return *hist.GetZaxis();
48 throw std::runtime_error(std::to_string(idx)
49 +
" is not a valid axis index for TH3");
57 if (axis.IsVariableBinSize() && (bin == 0)) {
58 return std::numeric_limits<double>::min();
60 return axis.GetBinLowEdge(bin);
66 std::array<Int_t, 3> bin_xyz;
67 hist.GetBinXYZ(bin, bin_xyz[0], bin_xyz[1], bin_xyz[2]);
73 std::array<Int_t, 3> bin_xyz;
74 hist.GetBinXYZ(bin, bin_xyz[0], bin_xyz[1], bin_xyz[2]);
81 std::array<Int_t, 3> bin_xyz;
82 hist.GetBinXYZ(bin, bin_xyz[0], bin_xyz[1], bin_xyz[2]);
91 dest.SetTitle(src.GetTitle().c_str());
95 dest.SetCanExtend((src.GetNOverflowBins() == 0));
100 dest.SetNoAlphanumeric(
true);
std::string convert_hist_title(const std::string &title)
TAxis & get_root6_axis(TH1 &hist, size_t idx)
Output convert_hist(const Input &src, const char *name)
Double_t get_bin_from_root6(const TAxis &axis, Int_t bin)
void setup_axis_base(TAxis &dest, const RExp::RAxisBase &src)