23 namespace QAHistManagerDef
56 assert(axis->GetXmin() > 0);
57 assert(axis->GetXmax() > 0);
59 const int bins = axis->GetNbins();
61 Axis_t from = log10(axis->GetXmin());
62 Axis_t to = log10(axis->GetXmax());
63 Axis_t
width = (to - from) / bins;
64 std::vector<Axis_t> new_bins(bins + 1);
66 for (
int i = 0; i <= bins; i++)
68 new_bins[i] = pow(10, from + i * width);
70 axis->Set(bins, new_bins.data());