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 SetNormalization(
long int norm) { norm_ = norm; }
27 Double_t GetNormalization()
const {
return norm_; }
29 void SetRanges(
const std::vector<double>& ranges) { ranges_ = ranges; }
30 void SetRanges(
int n,
double min,
double max) {
32 for (
int i = 0; i <= n; ++i) {
33 ranges_.push_back(min + i * (max - min) / n);
39 void SetBorders(
const std::vector<double>& borders) { borders_ = borders; }
41 void SetLimits(
double xLo,
double xHi) {
47 void IsSpectator(
bool is =
true) { isSpectator_ = is; }
49 [[nodiscard]]
const std::vector<double>& GetRanges()
const {
return ranges_; }
50 [[nodiscard]]
const std::vector<double>& GetBorders()
const {
return borders_; }
51 [[nodiscard]]
bool GetIsSpectator()
const {
return isSpectator_; }
57 std::vector<double> ranges_{};
58 std::vector<double> borders_{};
60 bool isSpectator_{
false};
62 bool applyLimits_{
false};