42 class HistPlotCategory;
47 HistPlot(
const std::string& sname,
const std::string& stitle);
52 HistPlotVar const& GetNewVar(
const std::string& name,
const std::string& title,
53 double minval,
double maxval,
54 const std::string& unit =
"");
56 HistPlotCategory const& GetNewCategory(
const std::string& name,
const std::string& title);
61 bool invert_colors =
false);
66 bool invert_colors =
false);
68 void Fill(
double weight = 1.);
71 void Draw(
bool invert_colors =
false);
73 void SetPlotLabel(
const std::string& label);
75 void SetPlotTitle(
const std::string& title);
77 void SetScaleLabel(
const std::string& label);
79 void SetScale(
double scale = -1);
81 void SetRebin(
int rebin = 4);
83 void WriteHist(
const std::string& filename);
86 std::string m_PlotLabel;
87 std::string m_PlotTitle;
88 std::string m_ScaleLabel;
93 std::vector<TH1D*> m_1DHists;
94 std::vector<TH2D*> m_2DHists;
99 std::map<const HistPlotCategory*,std::vector<TH1D*> > m_CatToHist1D;
100 std::map<const HistPlotCategory*,std::vector<TH2D*> > m_CatToHist2D;
102 std::vector<const HistPlotVar*> m_Plot1D_Var;
103 std::vector<HistPlotCatList> m_Plot1D_Cats;
104 std::vector<bool> m_Plot1D_Color;
106 const HistPlotVar*> > m_Plot2D_Vars;
107 std::vector<const HistPlotCategory*> m_Plot2D_Cat;
108 std::vector<bool> m_Plot2D_Color;
110 std::map<TH1D*,const HistPlotVar*> m_HistToVar;
111 std::map<TH2D*,std::pair<
const HistPlotVar*,
112 const HistPlotVar*> > m_HistToVars;
114 void DrawPlot(
const HistPlotVar& var,
116 bool invert_colors =
false);
117 void DrawPlot(
const std::pair<
const HistPlotVar*,
118 const HistPlotVar*>& vars,
120 bool invert_colors =
false);
virtual void Clear()
Clears RFBase of all connections to other objects.