HyperPlot  v1
Bin and visualise multidimensional datasets
Public Member Functions | Private Member Functions | Private Attributes | List of all members
HyperBinningPainter2D Class Reference

Detailed Description

HyperPlot, Author: Sam Harnew, sam.h.nosp@m.arne.nosp@m.w@gma.nosp@m.il.c.nosp@m.om , Date: Dec 2015

Class plotting 2D HyperBinningHistograms

Definition at line 29 of file HyperBinningPainter2D.h.

#include <HyperBinningPainter2D.h>

Inheritance diagram for HyperBinningPainter2D:
HyperBinningPainter

Public Member Functions

 HyperBinningPainter2D (BinningBase *binning, HyperPointSet *hyperPoints=0)
 
 HyperBinningPainter2D (HyperHistogram *histogram)
 
virtual void draw (TString path="")
 
 ~HyperBinningPainter2D ()
 
- Public Member Functions inherited from HyperBinningPainter
 HyperBinningPainter (HyperHistogram *histogram)
 
void useDensity (bool val)
 
virtual ~HyperBinningPainter ()
 

Private Member Functions

const BinningBasegetBinning ()
 
int getFillColour (double binContents)
 
void addHyperPoints (TH2D *histogram)
 
void drawFilledBins (RootPlotter2D *plotter)
 
void drawFilledBin (RootPlotter2D *plotter, int bin)
 
void drawFilledBin (RootPlotter2D *plotter, HyperCuboid *bin, double binContents)
 
void drawBinEdges (RootPlotter2D *plotter)
 
void drawBinEdge (RootPlotter2D *plotter, int bin)
 
void drawBinEdge (RootPlotter2D *plotter, HyperCuboid *bin)
 
void drawBinNumbers (RootPlotter2D *plotter)
 
void drawBinNumbers (RootPlotter2D *plotter, int bin)
 

Private Attributes

BinningBase_binning
 
HyperPointSet_hyperPoints
 

Additional Inherited Members

- Protected Attributes inherited from HyperBinningPainter
HyperHistogram_histogram
 
bool _density
 

Constructor & Destructor Documentation

HyperBinningPainter2D::HyperBinningPainter2D ( BinningBase binning,
HyperPointSet hyperPoints = 0 
)

Construct a 2D HyperBinningPainter for a given HyperVolumeBinning and HyperPointSet. This option will draw the HyperPointSet as dots over the binning scheme

Definition at line 6 of file HyperBinningPainter2D.cpp.

HyperBinningPainter2D::HyperBinningPainter2D ( HyperHistogram histogram)

Construct a 2D HyperBinningPainter for a given HyperBinningHistogram

Definition at line 23 of file HyperBinningPainter2D.cpp.

HyperBinningPainter2D::~HyperBinningPainter2D ( )

Constructor

Definition at line 214 of file HyperBinningPainter2D.cpp.

Member Function Documentation

void HyperBinningPainter2D::addHyperPoints ( TH2D *  histogram)
private

If HyperPoints provided, add to TH2D

Definition at line 155 of file HyperBinningPainter2D.cpp.

void HyperBinningPainter2D::draw ( TString  path = "")
virtual

Draw the HyperBinningHistogram

Reimplemented from HyperBinningPainter.

Definition at line 162 of file HyperBinningPainter2D.cpp.

void HyperBinningPainter2D::drawBinEdge ( RootPlotter2D plotter,
int  bin 
)
private

add the bin edges to the Plotter (for one HyperVolume)

Definition at line 48 of file HyperBinningPainter2D.cpp.

void HyperBinningPainter2D::drawBinEdge ( RootPlotter2D plotter,
HyperCuboid bin 
)
private

add the bin edges to the Plotter (for one HyperCuboid)

Definition at line 57 of file HyperBinningPainter2D.cpp.

void HyperBinningPainter2D::drawBinEdges ( RootPlotter2D plotter)
private

add the bin edges to the Plotter (for all HyperVolumes)

Definition at line 43 of file HyperBinningPainter2D.cpp.

void HyperBinningPainter2D::drawBinNumbers ( RootPlotter2D plotter)
private

Draw bin numbers on the all the bins

Definition at line 112 of file HyperBinningPainter2D.cpp.

void HyperBinningPainter2D::drawBinNumbers ( RootPlotter2D plotter,
int  bin 
)
private

Draw bin number on a single bin

Definition at line 117 of file HyperBinningPainter2D.cpp.

void HyperBinningPainter2D::drawFilledBin ( RootPlotter2D plotter,
int  bin 
)
private

add filled bins to the Plotter (for all HyperVolumes)

Definition at line 130 of file HyperBinningPainter2D.cpp.

void HyperBinningPainter2D::drawFilledBin ( RootPlotter2D plotter,
HyperCuboid bin,
double  binContents 
)
private

add filled bins to the Plotter (for all HyperVolumes)

Definition at line 143 of file HyperBinningPainter2D.cpp.

void HyperBinningPainter2D::drawFilledBins ( RootPlotter2D plotter)
private

add filled bins to the Plotter (for all HyperVolumes)

Definition at line 125 of file HyperBinningPainter2D.cpp.

const BinningBase & HyperBinningPainter2D::getBinning ( )
private

get the binning (works for either constructor)

Definition at line 35 of file HyperBinningPainter2D.cpp.

int HyperBinningPainter2D::getFillColour ( double  binContents)
private

Code stolen from the THistPainter - choose the colour to make the bin based on the colour scale of the TH2D

Definition at line 89 of file HyperBinningPainter2D.cpp.

Member Data Documentation

BinningBase* HyperBinningPainter2D::_binning
private

This gets filled in an alternate constructor (usually the HyperBinningHistogram get taken from the inhereted HyperBinningPainter class). This allows a HyperPointSet to be plotted on top of the HyperVolumeBinning

Definition at line 33 of file HyperBinningPainter2D.h.

HyperPointSet* HyperBinningPainter2D::_hyperPoints
private

This gets filled in an alternate constructor (usually the HyperBinningHistogram get taken from the inhereted HyperBinningPainter class). This allows a HyperPointSet to be plotted on top of the HyperVolumeBinning

Definition at line 37 of file HyperBinningPainter2D.h.


The documentation for this class was generated from the following files: