111 axis.nBins = rootAxis->GetNbins();
112 axis.min = rootAxis->GetXmin();
113 axis.max = rootAxis->GetXmax();
115 if (axis.nBins < 1) {
120 const float width = rootAxis->GetBinWidth(1);
121 for (std::size_t ibin = 2; ibin <= axis.nBins; ++ibin) {
123 if (std::abs(rootAxis->GetBinWidth(ibin) -
width) > 0.01*
width) {
129 axis.width = 1.*axis.nBins/(axis.max - axis.min);