26 double GetCentrality(
double value)
const;
27 double GetCentrality(
double xvalue,
double yvalue)
const;
29 void SetBorders(
const std::vector<double>& borders) {
30 borders_ = TAxis(borders.size() - 1, &(borders[0]));
31 isinitialized_ =
true;
34 const TAxis& GetBorders()
const {
return borders_; };
35 const std::vector<double>& GetRanges()
const {
return ranges_; };
37 void SetRanges(
const std::vector<double>& ranges) { ranges_ = ranges; }
38 void IsSpectator(
bool is =
true) { isspectator_ = is; }
40 void AddBorder2D(
const std::array<double, 2>& border2D) {
41 borders2d_.push_back(border2D);
42 if (!isinitialized2D_) { isinitialized2D_ =
true; }
45 const std::vector<std::array<double, 2>>& GetBorders2D()
const {
return borders2d_; };
47 void SetMax(
double x,
double y) {
52 static Getter* Create1DGetter(std::vector<double> borders);
56 std::vector<std::array<double, 2>> borders2d_{};
57 std::vector<double> ranges_{};
62 bool isspectator_{
false};
63 bool isinitialized_{
false};
64 bool isinitialized2D_{
false};