Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RHistDisplayItem.hxx
Go to the documentation of this file.
1/// \file ROOT/RHistDisplayItem.hxx
2/// \ingroup HistDrawV7
3/// \author Sergey Linev <s.linev@gsi.de>
4/// \date 2020-06-25
5/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
6/// is welcome!
7
8/*************************************************************************
9 * Copyright (C) 1995-2020, Rene Brun and Fons Rademakers. *
10 * All rights reserved. *
11 * *
12 * For the licensing terms see $ROOTSYS/LICENSE. *
13 * For the list of contributors see $ROOTSYS/README/CREDITS. *
14 *************************************************************************/
15
16#ifndef ROOT7_RHistDisplayItem
17#define ROOT7_RHistDisplayItem
18
19#include <ROOT/RDisplayItem.hxx>
20
21#include <vector>
22
23namespace ROOT {
24namespace Experimental {
25
26class RAxisBase;
27
29 std::vector<const RAxisBase *> fAxes; ///< histogram axes, only temporary pointers
30 std::vector<int> fIndicies; ///< [left,right,step] for each axes
31 std::vector<double> fBinContent; ///< extracted bins values
32 double fContMin{0.}; ///< minimum content value
33 double fContMinPos{0.}; ///< minimum positive value
34 double fContMax{0.}; ///< maximum content value
35
36public:
37 RHistDisplayItem() = default;
38
39 RHistDisplayItem(const RDrawable &dr);
40
41 void AddAxis(const RAxisBase *axis, int left = -1, int right = -1, int step = 1)
42 {
43 fAxes.emplace_back(axis);
44 fIndicies.emplace_back(left);
45 fIndicies.emplace_back(right);
46 fIndicies.emplace_back(step);
47 }
48
49 auto &GetBinContent() { return fBinContent; }
50
51 void SetContentMinMax(double min, double minpos, double max)
52 {
53 fContMin = min;
54 fContMinPos = minpos;
55 fContMax = max;
56 }
57};
58
59} // namespace Experimental
60} // namespace ROOT
61
62#endif
Histogram axis base class.
Definition RAxis.hxx:44
Base class for drawable entities: objects that can be painted on a RPad.
void AddAxis(const RAxisBase *axis, int left=-1, int right=-1, int step=1)
double fContMinPos
minimum positive value
double fContMax
maximum content value
double fContMin
minimum content value
std::vector< const RAxisBase * > fAxes
histogram axes, only temporary pointers
void SetContentMinMax(double min, double minpos, double max)
std::vector< double > fBinContent
extracted bins values
std::vector< int > fIndicies
[left,right,step] for each axes
Extract (reference) only basic attributes from drawable, but not drawable itself.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...