HyperPlot
v1
Bin and visualise multidimensional datasets
|
HyperPlot, Author: Sam Harnew, sam.h , Date: Dec 2015 arne w@gma il.c om
This class allowes binning algorithm options to be passed to a HyperBinningHistogram. An instance of the class can only be made by one of it's static member functions - for instance:
~~~
These options are inturpreted by the HyperBinningAlgorithms class, which selects the correct binning algorithm and applies all the options passed to it
Definition at line 35 of file HyperBinningAlgorithms.h.
#include <HyperBinningAlgorithms.h>
Public Types | |
enum | OptionName { EMTPY, START_DIM, BINNING_DIMS, RAND_SEED, MIN_BIN_WIDTH, MIN_BIN_CONTENT, MIN_SHADOW_BIN_CONTENT, USE_WEIGHTS, USE_SHADOW_DATA, DRAW_ALGORITHM, SNAP_TO_GRID, GRID_MULTIPLIER, AXIS_NAMES, FUNC, NUM_BIN_PAIRS, PHASE_BIN_EDGES } |
Public Member Functions | |
bool | isEmpty () |
OptionName | getOptionName () |
bool | getBoolOpt () |
int | getIntOpt () |
double | getDoubleOpt () |
TString | getStringOpt () |
std::vector< int > | getIntVectorOpt () |
std::vector< double > | getDoubleVectorOpt () |
HyperPoint | getHyperPointOpt () |
const HyperPointSet & | getHyperPointSetOpt () |
HyperName | getHyperNameOpt () |
HyperFunction * | getFuncOpt () |
Static Public Member Functions | |
static AlgOption | Empty () |
static AlgOption | StartDimension (int dim) |
static AlgOption | BinningDimensions (std::vector< int > dims) |
static AlgOption | RandomSeed (int seed) |
static AlgOption | MinBinWidth (double width) |
static AlgOption | MinBinWidth (HyperPoint widths) |
static AlgOption | MinBinContent (double val) |
static AlgOption | MinShadowBinContent (double val) |
static AlgOption | UseWeights (bool val=true) |
static AlgOption | UseShadowData (const HyperPointSet &data) |
static AlgOption | DrawAlgorithm (TString path) |
static AlgOption | AxisTitles (HyperName name) |
static AlgOption | UseFunction (HyperFunction *func) |
Use this if you want to provide a HyperFunction. | |
static AlgOption | GridMultiplier (int val) |
static AlgOption | GridMultiplier (HyperPoint val) |
static AlgOption | SnapToGrid (bool val) |
static AlgOption | NumPhaseBinPairs (int val) |
static AlgOption | PhaseBinEdges (std::vector< double > val) |
Private Member Functions | |
AlgOption () | |
Private Attributes | |
OptionName | _optionName |
bool | _bool |
int | _int |
double | _double |
std::vector< double > | _doublevector |
std::vector< int > | _intvector |
HyperPoint | _hyperPoint |
const HyperPointSet * | _hyperPointSet |
TString | _string |
HyperName | _hyperName |
HyperFunction * | _hyperFunc |
enum containing a list of avalible options one can pass to a binning algorithm
Enumerator | |
---|---|
EMTPY |
Empty option |
START_DIM |
The dimension to start splitting bins |
BINNING_DIMS |
The dimensions that the algorithm is allowed to split |
RAND_SEED |
Random seed used by the binning algorithm |
MIN_BIN_WIDTH |
Minimum bin width |
MIN_BIN_CONTENT |
Minimum bin content |
MIN_SHADOW_BIN_CONTENT |
Minimum bin content for shadow events |
USE_WEIGHTS |
Use weights for calculating the bin contents |
USE_SHADOW_DATA |
Use a show datatset |
DRAW_ALGORITHM |
Draw the binning at each iteration of the algorithm |
SNAP_TO_GRID |
Ensure all bin edges are on a grid |
GRID_MULTIPLIER |
Set the grid multiplier |
AXIS_NAMES |
The axis names (that are provided by a HyperName) |
FUNC |
Pass a HyperFunction to the binning alg |
NUM_BIN_PAIRS |
Set the number of bin pairs in the PhaseBinning algorithm (cisi binning) |
PHASE_BIN_EDGES |
Set the bin edges for the phase binning (cisi binning) |
Definition at line 41 of file HyperBinningAlgorithms.h.
|
private |
The empty constuctor which is private. This means it can only be called from a static member function
Definition at line 5 of file HyperBinningAlgorithms.cpp.
Use this if you want to set the axis titles - can also do this later, unless you want axis titles for the DrawAlgorithm() option.
Definition at line 121 of file HyperBinningAlgorithms.cpp.
|
static |
Get the BINNING_DIMS AlgOption, which tells the binning algorithm what dimensions its allowed to split
Definition at line 38 of file HyperBinningAlgorithms.cpp.
|
static |
Use this if you want to draw the HyperBinning after every iteration
Definition at line 112 of file HyperBinningAlgorithms.cpp.
|
static |
Get the EMTPY AlgOption, which takes no arguments.
Definition at line 20 of file HyperBinningAlgorithms.cpp.
bool AlgOption::getBoolOpt | ( | ) |
Get the boolean option
Definition at line 182 of file HyperBinningAlgorithms.cpp.
double AlgOption::getDoubleOpt | ( | ) |
Get the double member
Definition at line 194 of file HyperBinningAlgorithms.cpp.
std::vector< double > AlgOption::getDoubleVectorOpt | ( | ) |
Get the std::vector<double> member
Definition at line 213 of file HyperBinningAlgorithms.cpp.
HyperName AlgOption::getHyperNameOpt | ( | ) |
Get the HyperName member
Definition at line 240 of file HyperBinningAlgorithms.cpp.
HyperPoint AlgOption::getHyperPointOpt | ( | ) |
Get the HyperPoint member
Definition at line 219 of file HyperBinningAlgorithms.cpp.
const HyperPointSet & AlgOption::getHyperPointSetOpt | ( | ) |
Get the HyperPointSet member
Definition at line 225 of file HyperBinningAlgorithms.cpp.
int AlgOption::getIntOpt | ( | ) |
Get the integer option
Definition at line 188 of file HyperBinningAlgorithms.cpp.
std::vector< int > AlgOption::getIntVectorOpt | ( | ) |
Get the std::vector<int> member
Definition at line 200 of file HyperBinningAlgorithms.cpp.
AlgOption::OptionName AlgOption::getOptionName | ( | ) |
Get the AlgOption::OptionName
Definition at line 176 of file HyperBinningAlgorithms.cpp.
TString AlgOption::getStringOpt | ( | ) |
Get the string member
Definition at line 206 of file HyperBinningAlgorithms.cpp.
bool AlgOption::isEmpty | ( | ) |
Check if the OptionName is EMTPY
Definition at line 246 of file HyperBinningAlgorithms.cpp.
|
static |
Get the MIN_BIN_CONTENT AlgOption, which tells the binning algorithm the minimum bin content allowed.
Definition at line 74 of file HyperBinningAlgorithms.cpp.
|
static |
Get the MIN_BIN_WIDTH AlgOption, which tells the binning algorithm the minimum bin width that is allowed for ALL dimensions
Definition at line 56 of file HyperBinningAlgorithms.cpp.
|
static |
Get the MIN_BIN_WIDTH AlgOption, which tells the binning algorithm the minimum bin width that is allowed for EACH dimension
Definition at line 65 of file HyperBinningAlgorithms.cpp.
|
static |
Get the MIN_SHADOW_BIN_CONTENT AlgOption, which tells the binning algorithm the minimum bin content allowed in the shadow dataset.
Definition at line 83 of file HyperBinningAlgorithms.cpp.
|
static |
Get the RAND_SEED AlgOption, which tells the binning algorithm what random seed to use (not applicable to all algorithms).
Definition at line 47 of file HyperBinningAlgorithms.cpp.
|
static |
Get the START_DIM AlgOption, which tells the binning algorithm what dimension to split first (not applicable to all algorithms).
Definition at line 29 of file HyperBinningAlgorithms.cpp.
|
static |
Get the USE_SHADOW_DATA AlgOption, which tells the binning algorithm if it should use the a shadow dataset. This allows each bin to have a specified number of events from both the dataset and the shadow dataset.
Definition at line 102 of file HyperBinningAlgorithms.cpp.
|
static |
Get the USE_WEIGHTS AlgOption, which tells the binning algorithm if it should use the event weights
Definition at line 92 of file HyperBinningAlgorithms.cpp.
|
private |
boolean option
Definition at line 64 of file HyperBinningAlgorithms.h.
|
private |
double option
Definition at line 66 of file HyperBinningAlgorithms.h.
|
private |
vector<double> option
Definition at line 67 of file HyperBinningAlgorithms.h.
|
private |
HyperFunction option
Definition at line 73 of file HyperBinningAlgorithms.h.
|
private |
HyperName option
Definition at line 72 of file HyperBinningAlgorithms.h.
|
private |
HyperPoint option
Definition at line 69 of file HyperBinningAlgorithms.h.
|
private |
HyperPointSet option
Definition at line 70 of file HyperBinningAlgorithms.h.
|
private |
integer option
Definition at line 65 of file HyperBinningAlgorithms.h.
|
private |
vector<int> option
Definition at line 68 of file HyperBinningAlgorithms.h.
|
private |
the option that this particular intstance of the class represents
Definition at line 63 of file HyperBinningAlgorithms.h.
|
private |
string option
Definition at line 71 of file HyperBinningAlgorithms.h.