18 BordersFinder() =
default;
21 void SaveBorders(
const std::string& filename,
const std::string& getter_name);
23 void SetHisto(
const TH1F& h) { histo_ = h; }
24 TH1F& GetHisto() {
return histo_; }
26 void SetRanges(
const std::vector<double>& ranges) { ranges_ = ranges; }
27 void SetRanges(
int n,
double min,
double max) {
29 for (
int i = 0; i <= n; ++i) {
30 ranges_.push_back(min + i * (max - min) / n);
36 void SetBorders(
const std::vector<double>& borders) { borders_ = borders; }
38 void SetLimits(
double xLo,
double xHi) {
44 void IsSpectator(
bool is =
true) { isSpectator_ = is; }
46 [[nodiscard]]
const std::vector<double>& GetRanges()
const {
return ranges_; }
47 [[nodiscard]]
const std::vector<double>& GetBorders()
const {
return borders_; }
48 [[nodiscard]]
bool GetIsSpectator()
const {
return isSpectator_; }
53 std::vector<double> ranges_{};
54 std::vector<double> borders_{};
56 bool isSpectator_{
false};
58 bool applyLimits_{
false};