8#include "FastAxisCalc.h"
15 FastAxisCalc::FastAxisCalc(
const TAxis& x) {
16 const int steps = x.GetNbins();
17 fMin = x.GetBinLowEdge(1);
18 fMax = x.GetBinUpEdge(x.GetNbins());
19 fStep = (fMax - fMin) / ((Double_t) steps);
25 void FastAxisCalc::Recalc(
const TAxis& x) {
26 const int steps = x.GetNbins();
27 fMin = x.GetBinLowEdge(1);
28 fMax = x.GetBinUpEdge(x.GetNbins());
29 fStep = (fMax - fMin) / ((Double_t) steps);
35 void FastAxisCalc::RoundToMinusOne() { fMinBin = fMaxBin = -1; }
37 void FastAxisCalc::Print(Option_t* option)
const {
38 std::cout << ClassName() << std::endl;
39 std::cout << Form(
"1/step %4.4f min = %4.4f max = %4.4f", fStep, fMin, fMax) << std::endl;