|
|
| BCH2D (const TH2 *const h=0) |
| The complete constructor. More...
|
|
| BCH2D (const BCH2D &other) |
| Copy constuctor. More...
|
|
virtual | ~BCH2D () |
| The default destructor. More...
|
|
|
TH2 * | GetHistogram () |
| Return the TH2 histogram. More...
|
|
BCH2DBandType | GetBandType () |
|
bool | GetLogz () |
|
bool | GetDrawProfileX () |
|
BCH2DProfileType | GetProfileXType () |
|
int | GetProfileXLineColor () |
|
int | GetProfileXLineStyle () |
|
bool | GetDrawProfileY () |
|
BCH2DProfileType | GetProfileYType () |
|
int | GetProfileYLineColor () |
|
int | GetProfileYLineStyle () |
|
|
void | CopyOptions (const BCH2D &other) |
| copy options from
|
|
void | SetGlobalMode (double x, double y) |
| Set global mode. More...
|
|
void | SetLocalMode (double x, double y) |
| Set local mode. More...
|
|
void | SetBandType (BCH2DBandType bt) |
| Set band type. More...
|
|
void | SetLogz (bool flag=true) |
| Sets drawing of z axis in log. More...
|
|
void | SetDrawProfileX (bool flag=true) |
| Set drawing of x profile. More...
|
|
void | SetProfileXType (BCH2DProfileType pt) |
| Set profile type of x profile. More...
|
|
void | SetProfileXLineColor (int c) |
| Set line color of x profile. More...
|
|
void | SetProfileXLineStyle (int s) |
| Set line style of x profile. More...
|
|
void | SetDrawProfileY (bool flag=true) |
| Set drawing of y profile. More...
|
|
void | SetProfileYType (BCH2DProfileType pt) |
| Set profile type of y profile. More...
|
|
void | SetProfileYLineColor (int c) |
| Set line color of y profile. More...
|
|
void | SetProfileYLineStyle (int s) |
| Set line style of y profile. More...
|
|
|
virtual void | CheckIntervals (std::vector< double > &intervals) |
| Check intervals: remove values below 0 or above 1, and sort to proper order band type. More...
|
|
virtual std::vector< double > | DefaultIntervals (int nbands=-1) |
| Return default intervals. More...
|
|
virtual void | DrawBands (const std::string &options="same") |
| Draw band, or if band type set to no bands, histogram. More...
|
|
virtual void | DrawMarkers () |
| Draw Markers: global mode, local mode, etc. More...
|
|
TGraph * | CalculateProfileGraph (BCH2DProfileAxis axis, BCH2DProfileType pt=kProfileMean) |
| Return a graph of the profile along x or y. More...
|
|
void | DrawProfileGraphs () |
| Draw the profiles along x and y.
|
|
| BCHistogramBase (const TH1 *const hist=0, int dimension=0) |
| The default constructor. More...
|
|
| BCHistogramBase (const BCHistogramBase &other) |
| Copy constructor. More...
|
|
virtual | ~BCHistogramBase () |
| The default destructor. More...
|
|
TH1 * | GetHistogram () |
|
unsigned | GetDimension () const |
|
TLegend & | GetLegend () |
|
unsigned | GetNLegendColumns () const |
|
std::vector< double > & | GetBestFitParameters () |
|
const std::vector< double > & | GetBestFitParameters () const |
|
double | GetBestFitParameters (unsigned i) const |
|
std::vector< double > & | GetLocalMode () |
|
const std::vector< double > & | GetLocalMode () const |
|
double | GetLocalMode (unsigned i) |
|
int | GetBandColor (int index) const |
| Returns a band color of the current color scheme. More...
|
|
bool | GetBandOvercoverage () const |
|
int | GetLineColor () const |
|
int | GetLineStyle () const |
|
int | GetLineWidth () const |
|
int | GetMarkerColor () const |
| Returns the marker colors (used for mean, median, and mode. More...
|
|
double | GetMarkerScale () const |
|
short | GetBandFillStyle () const |
|
unsigned | GetNBands () const |
|
unsigned | GetNSmooth () const |
|
bool | GetDrawGlobalMode () const |
|
bool | GetDrawGlobalModeArrows () const |
|
int | GetBestFitParametersMarkerStyle () const |
|
bool | GetDrawLocalMode () const |
|
bool | GetDrawLocalModeArrows () const |
|
int | GetLocalModeMarkerStyle () const |
|
bool | GetDrawMean () const |
|
int | GetMeanMarkerStyle () const |
|
bool | GetDrawStandardDeviation () const |
|
bool | GetLogx () const |
|
bool | GetLogy () const |
|
bool | GetLogz () const |
|
bool | GetGridx () const |
|
bool | GetGridy () const |
|
std::vector< double > & | GetIntervals () |
|
const std::vector< double > & | GetIntervals () const |
|
std::string & | GetROOToptions () |
|
const std::string & | GetROOToptions () const |
|
virtual void | CopyOptions (const BCHistogramBase &other) |
| Copy options from. More...
|
|
void | SetGlobalMode (std::vector< double > gm) |
| Set global mode. More...
|
|
void | UnsetGlobalMode () |
| Unset global mode. More...
|
|
void | SetGlobalMode (unsigned i, double lm) |
| Set global mode element. More...
|
|
void | SetLocalMode (std::vector< double > lm) |
| Set local mode. More...
|
|
void | UnsetLocalMode () |
| Unset local mode. More...
|
|
void | SetLocalMode (unsigned i, double lm) |
| Set local mode element. More...
|
|
virtual void | SetColorScheme (BCHColorScheme scheme) |
| Sets the color scheme. More...
|
|
void | AddBandColor (int c) |
| Add band color. More...
|
|
void | SetBandColor (unsigned i, int c) |
| Set band color. More...
|
|
void | SetBandOvercoverage (bool flag=true) |
| Set band coverage to be overcoverage (true) or undercoverage (false). More...
|
|
void | SetLineColor (int c) |
| Set histogram line color. More...
|
|
void | SetLineStyle (int s) |
| Set histogram line style. More...
|
|
void | SetLineWidth (int w) |
| Set histogram line width. More...
|
|
void | SetMarkerColor (int c) |
| Set marker color (used for mean, median, and mode). More...
|
|
void | SetMarkerScale (double s) |
| Set marker size scale. More...
|
|
void | SetBandFillStyle (short f) |
| Set band fill style. More...
|
|
virtual void | SetHistogram (const TH1 *const hist) |
| Sets the histogram. More...
|
|
void | SetLogx (bool flag=true) |
| Sets drawing of x axis in log. More...
|
|
void | SetLogy (bool flag=true) |
| Sets drawing of y axis in log. More...
|
|
void | SetLogz (bool flag=true) |
| Sets drawing of z axis in log. More...
|
|
void | SetGridx (bool flag=true) |
| Sets drawing of grid on x axis. More...
|
|
void | SetGridy (bool flag=true) |
| Sets drawing of grid on y axis. More...
|
|
void | SetNBands (unsigned n) |
| Sets number of credibility interval bands to draw. More...
|
|
void | SetNSmooth (unsigned n) |
| Sets number of times to smooth the histogram using ROOT's smoothing function. More...
|
|
void | SetDrawGlobalMode (bool flag=true, bool arrows=true) |
| Set drawing of global mode. More...
|
|
void | SetGlobalModeMarkerStyle (int s) |
| Set global mode marker style. More...
|
|
void | SetDrawLocalMode (bool flag=true, bool arrows=true) |
| Set drawing of global mode. More...
|
|
void | SetLocalModeMarkerStyle (int s) |
| Set Local mode marker style. More...
|
|
void | SetDrawMean (bool flag=true, bool stddev=true) |
| Set drawing of mean. More...
|
|
void | SetMeanMarkerStyle (int s) |
| Set mean marker style. More...
|
|
void | SetDrawLegend (bool flag=true) |
| Set drawing of legend. More...
|
|
void | SetNLegendColumns (unsigned n) |
| Set number of columns in legend. More...
|
|
void | SetStats (bool flag=true) |
| Set drawing of ROOT histogram stats box. More...
|
|
void | SetIntervals (std::vector< double > intervals) |
| Set intervals to be drawn. More...
|
|
void | SetInterval (double interval) |
| Set intervals to one single value. More...
|
|
void | AddInterval (double interval) |
| Add interval value. More...
|
|
void | SetROOToptions (const std::string &options) |
| Set ROOT drawing options. More...
|
|
virtual bool | Valid () const |
| Whether histogram has been set and filled. More...
|
|
void | ClearBandColors () |
|
void | ClearIntervals () |
|
void | Smooth (int n=-1) |
| Applying ROOT smoothing to histogram, and renormalize. More...
|
|
virtual void | Draw () |
| Draw distribution into the active pad.
|
|
virtual void | DrawGlobalMode () |
| Draw global mode. More...
|
|
virtual void | DrawLocalMode () |
| Draw global mode. More...
|
|
virtual void | DrawMean () |
| Draw mean and standard deviation. More...
|
|
virtual double | ResizeLegend () |
| Resize legend and set it for placement at the top of the pad. More...
|
|
virtual void | DrawLegend () |
| Resize histogram and draw legend. More...
|
|
void | GetNonzeroBinDensityMassVector (std::vector< std::pair< double, double > > &bin_dens_mass, int sort=-1) |
| Fill vector with values and integrals of nonzero bins sorted by value. More...
|
|
std::vector< std::pair< double, double > > | GetSmallestIntervalBounds (std::vector< double > masses, bool overcoverage=true) |
| Get probability density levels bounding from below the smallest-interval levels with probability mass near that provided in the argument. More...
|
|
virtual std::vector< double > | GetSmallestIntervalSize (std::vector< double > masses, bool overcoverage=true) |
| Get smallest interval sizes in dimensions of histogram: length (1D), area (2D), volume (3D). More...
|
|
virtual double | GetSmallestIntervalSize (double mass, bool overcoverage=true) |
| Get smallest interval size in dimensions of histogram: length (1D), area (2D), volume (3D). More...
|
|
virtual void | CheckIntervals (std::vector< double > &intervals, int sort) |
| Check intervals : remove values below 0 or above 1. More...
|
|
TLegendEntry * | AddLegendEntry (TObject *obj, const std::string &label, const std::string &options) |
| Add legend entry, checking first for unused extra entries. More...
|
|
TLegendEntry * | AddBandLegendEntry (TObject *obj, const std::string &label, const std::string &options) |
| Add band legend entry, creating unused extra entries if necessary. More...
|
|
BCHistogramBase & | operator= (BCHistogramBase other) |
| Assignment operator. More...
|
|
BCHistogramBase & | operator= (const TH1 *const hist) |
| Assign TH1 histogram with operator. More...
|
|
BCHistogramBase & | operator= (const TH1 &hist) |
| Assign TH1 histogram with operator. More...
|
|
A class for handling 2D distributions.
- Author
- Daniel Kollar
-
Kevin Kröninger
-
Daniel Greenwald
- Version
- 1.0
- Date
- 08.2008
This class contains a TH2 histogram and some additional functions. It is used for marginalized distributions.
Definition at line 37 of file BCH2D.h.