14 Axis(
const std::vector<double> &bins,
16 const std::string &title =
"",
17 const std::set<double> &cut_vals = {});
18 Axis(std::size_t nbins,
19 double xmin,
double xmax,
21 const std::string &title =
"",
22 const std::set<double> &cut_vals = {});
30 std::size_t
Nbins()
const;
31 Axis &
Bins(
const std::vector<double> &bins);
32 Axis &
Bins(std::size_t nbins,
double xmin,
double xmax);
33 const std::vector<double> &
Bins()
const;
36 std::string
Title()
const;
46 static std::vector<double>
GetEdges(std::size_t nbins,
double xmin,
double xmax);
Axis(const std::vector< double > &bins, const NamedFunc &var, const std::string &title="", const std::set< double > &cut_vals={})
std::string Title() const
std::string units_
Units of Axis::var_.
double AvgBinWidth() const
Combines a callable function taking a Baby and returning a scalar or vector with its string represent...
static std::vector< double > GetEdges(std::size_t nbins, double xmin, double xmax)
std::string title_
Axis title without units.
NamedFunc var_
Variable to be plotted.
Axis & operator=(const Axis &)=default
std::size_t Nbins() const
std::vector< double > bins_
List of bin edges.
std::set< double > cut_vals_
Values of HistoDef::var_ for which to plot a line.
const std::vector< double > & Bins() const