File indexing completed on 2025-01-30 10:22:34
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef ROOT7_RHistDisplayItem
0017 #define ROOT7_RHistDisplayItem
0018
0019 #include <ROOT/RDisplayItem.hxx>
0020
0021 #include <vector>
0022
0023 namespace ROOT {
0024 namespace Experimental {
0025
0026 class RAxisBase;
0027
0028 class RHistDisplayItem : public RIndirectDisplayItem {
0029 std::vector<const RAxisBase *> fAxes;
0030 std::vector<int> fIndicies;
0031 std::vector<double> fBinContent;
0032 double fContMin{0.};
0033 double fContMinPos{0.};
0034 double fContMax{0.};
0035
0036 public:
0037 RHistDisplayItem() = default;
0038
0039 RHistDisplayItem(const RDrawable &dr);
0040
0041 void AddAxis(const RAxisBase *axis, int left = -1, int right = -1, int step = 1)
0042 {
0043 fAxes.emplace_back(axis);
0044 fIndicies.emplace_back(left);
0045 fIndicies.emplace_back(right);
0046 fIndicies.emplace_back(step);
0047 }
0048
0049 auto &GetBinContent() { return fBinContent; }
0050
0051 void SetContentMinMax(double min, double minpos, double max)
0052 {
0053 fContMin = min;
0054 fContMinPos = minpos;
0055 fContMax = max;
0056 }
0057 };
0058
0059 }
0060 }
0061
0062 #endif