MINT2
HyperBinningPainter2D.h
Go to the documentation of this file.
1 
11 #ifndef HYPERBINNINGPAINTER2D_HH
12 #define HYPERBINNINGPAINTER2D_HH
13 
14 // HyperPlot includes
15 #include "Mint/MessageService.h"
16 #include "Mint/RootPlotter1D.h"
17 #include "Mint/RootPlotter2D.h"
19 
20 
21 // Root includes
22 #include "TH1D.h"
23 #include "TH2D.h"
24 
25 // std includes
26 
27 
28 
30 
31  private:
32 
42  const BinningBase& getBinning();
43 
44  int getFillColour(double binContents);
45 
46  void addHyperPoints(TH2D* histogram);
47 
48  void drawFilledBins(RootPlotter2D* plotter, bool hashNeg = false);
49  void drawFilledBin(RootPlotter2D* plotter, int bin, bool hashNeg = false);
50  void drawFilledBin(RootPlotter2D* plotter, HyperCuboid* bin, double binContents);
51  void drawFilledBin(RootPlotter2D* plotter, HyperCuboid* bin, int fillColor, int fillStyle);
52 
53 
54  void drawBinEdges(RootPlotter2D* plotter);
55  void drawBinEdge(RootPlotter2D* plotter, int bin);
56  void drawBinEdge(RootPlotter2D* plotter, HyperCuboid* bin);
57 
58 
59  void drawBinEdges2(RootPlotter2D* plotter);
60  void drawBinEdge2(RootPlotter2D* plotter, int bin, double minWidX, double minWidY);
61  void drawBinEdge2(RootPlotter2D* plotter, HyperCuboid* bin, double minWidX, double minWidY);
62  void drawBinEdge2(RootPlotter2D* plotter, HyperCuboid* bin, int edge, double minWidX, double minWidY);
63 
64 
65  void drawBinNumbers(RootPlotter2D* plotter);
66  void drawBinNumbers(RootPlotter2D* plotter, int bin);
67 
68  void drawBinCont(RootPlotter2D* plotter);
69  void drawBinCont(RootPlotter2D* plotter, int bin);
70 
71 
72  public:
73 
74  HyperBinningPainter2D(BinningBase* binning, HyperPointSet* hyperPoints = 0);
76 
77  virtual void draw(TString path = "", TString option = "");
78 
80 
81 
82 };
83 
84 
85 
86 #endif
87 
void drawBinEdges2(RootPlotter2D *plotter)
HyperBinningPainter2D(BinningBase *binning, HyperPointSet *hyperPoints=0)
void drawFilledBin(RootPlotter2D *plotter, int bin, bool hashNeg=false)
void drawBinNumbers(RootPlotter2D *plotter)
void addHyperPoints(TH2D *histogram)
void drawBinEdge(RootPlotter2D *plotter, int bin)
virtual void draw(TString path="", TString option="")
void drawBinEdges(RootPlotter2D *plotter)
void drawFilledBins(RootPlotter2D *plotter, bool hashNeg=false)
void drawBinCont(RootPlotter2D *plotter)
const BinningBase & getBinning()
void drawBinEdge2(RootPlotter2D *plotter, int bin, double minWidX, double minWidY)
int getFillColour(double binContents)