|
|
| BCH1D (const TH1 *const hist=0) |
| The default constructor. More...
|
|
| BCH1D (const BCH1D &other) |
| Copy constructor. More...
|
|
virtual | ~BCH1D () |
| The default destructor. More...
|
|
|
double | GetLocalMode () |
|
double | GetBestFitParameters () |
|
double | GetMedian () |
|
double | GetQuantile (double probability) |
| Returns the quantile of the distribution. More...
|
|
double | GetLimit (double probability) |
| Return the quantile of the distribution. More...
|
|
BCH1DBandType | GetBandType () |
|
unsigned | GetNQuantiles () |
|
int | GetQuantileLineColor () |
|
bool | GetDrawMedian () |
|
bool | GetDrawCentral68 () |
|
|
void | CopyOptions (const BCH1D &other) |
| Copy options from other. More...
|
|
void | SetColorScheme (BCHColorScheme scheme) |
| Sets the color scheme. More...
|
|
void | SetGlobalMode (double mode) |
| Set global mode.
|
|
void | SetLocalMode (double mode) |
| Set local mode.
|
|
void | SetBandType (BCH1DBandType bt) |
| Set band type. More...
|
|
void | SetDrawQuantiles (unsigned n) |
| Set draw quantiles. More...
|
|
void | SetQuantileLineColor (int c) |
| Set quantile line color. More...
|
|
void | SetDrawMedian (bool flag=true, bool central68=true) |
| Set drawing of median. More...
|
|
|
virtual void | CheckIntervals (std::vector< double > &intervals) |
| Check intervals: remove values below 0 or above 1, and sort to proper order for band type. More...
|
|
virtual std::vector< double > | DefaultIntervals (int nbands=-1) |
| Return default intervals. More...
|
|
virtual void | DrawBands (const std::string &options="same") |
| Draw bands. More...
|
|
virtual void | DrawMarkers () |
| Draw markers: global mode, local mode, mean, quantiles, median. More...
|
|
virtual void | DrawQuantiles (unsigned n) |
| Draw quantiles. More...
|
|
virtual void | DrawMedian () |
| Draw median & central 68% interval. More...
|
|
void | PrintSummary (const std::string &prefix="", unsigned prec=6, std::vector< double > intervals=std::vector< double >(0)) |
| Print information to log. More...
|
|
std::vector< BCH1D::BCH1DSmallestInterval > | GetSmallestIntervals (std::vector< double > masses) |
|
BCH1D::BCH1DSmallestInterval | GetSmallestIntervals (double mass) |
|
TH1 * | GetSubHistogram (double min, double max, const std::string &name="", bool preserve_range=false) |
| Get histogram with bins outside min, max band being zero. More...
|
|
| 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...
|
|
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 1D distributions.
- Author
- Daniel Kollar
-
Kevin Kröninger
-
Daniel Greenwald
- Version
- 1.0
- Date
- 08.2008
This class contains a TH1 histogram and some additional functions. It is used for marginalized distributions.
Definition at line 34 of file BCH1D.h.