BCHistogramBase.h
560 void GetNonzeroBinDensityMassVector(std::vector<std::pair<double, double> >& bin_dens_mass, int sort = -1);
571 std::vector<std::pair<double, double> > GetSmallestIntervalBounds(std::vector<double> masses, bool overcoverage = true);
579 virtual std::vector<double> GetSmallestIntervalSize(std::vector<double> masses, bool overcoverage = true);
604 TLegendEntry* AddLegendEntry(TObject* obj, const std::string& label, const std::string& options);
608 TLegendEntry* AddBandLegendEntry(TObject* obj, const std::string& label, const std::string& options);
friend void swap(BCHistogramBase &first, BCHistogramBase &second)
Swap function.
Definition: BCHistogramBase.cxx:140
BCHistogramBase & operator=(BCHistogramBase other)
Assignment operator.
Definition: BCHistogramBase.cxx:131
virtual void DrawMarkers()
Draw markers (global mode, local mode, etc.).
Definition: BCHistogramBase.cxx:522
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)...
Definition: BCHistogramBase.cxx:437
void SetStats(bool flag=true)
Set drawing of ROOT histogram stats box.
Definition: BCHistogramBase.h:479
const std::vector< double > & GetIntervals() const
Definition: BCHistogramBase.h:277
const std::string & GetROOToptions() const
Definition: BCHistogramBase.h:287
TLegendEntry * AddLegendEntry(TObject *obj, const std::string &label, const std::string &options)
Add legend entry, checking first for unused extra entries.
Definition: BCHistogramBase.cxx:715
void SetIntervals(std::vector< double > intervals)
Set intervals to be drawn.
Definition: BCHistogramBase.h:484
virtual void CheckIntervals(std::vector< double > &intervals, int sort)
Check intervals: remove values below 0 or above 1.
Definition: BCHistogramBase.cxx:310
bool GetDrawGlobalModeArrows() const
Definition: BCHistogramBase.h:207
int GetBandColor(int index) const
Returns a band color of the current color scheme.
Definition: BCHistogramBase.h:152
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.
Definition: BCHistogramBase.cxx:351
const std::vector< double > & GetLocalMode() const
Definition: BCHistogramBase.h:139
virtual void CopyOptions(const BCHistogramBase &other)
Copy options from.
Definition: BCHistogramBase.cxx:97
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...
Definition: BCHistogramBase.cxx:382
void Smooth(int n=-1)
Applying ROOT smoothing to histogram, and renormalize.
Definition: BCHistogramBase.cxx:291
void SetNLegendColumns(unsigned n)
Set number of columns in legend.
Definition: BCHistogramBase.h:474
BCHistogramBase(const TH1 *const hist=0, int dimension=0)
The default constructor.
Definition: BCHistogramBase.cxx:32
void SetDrawGlobalMode(bool flag=true, bool arrows=true)
Set drawing of global mode.
Definition: BCHistogramBase.h:434
virtual void SetHistogram(const TH1 *const hist)
Sets the histogram.
Definition: BCHistogramBase.cxx:194
virtual void SetColorScheme(BCHColorScheme scheme)
Sets the color scheme.
Definition: BCHistogramBase.cxx:232
int GetLocalModeMarkerStyle() const
Definition: BCHistogramBase.h:227
virtual std::vector< double > DefaultIntervals(int nbands=-1)
Return default intervals.
Definition: BCHistogramBase.cxx:334
int fGlobalModeMarkerStyle
Holds option for global-mode marker style.
Definition: BCHistogramBase.h:704
void SetDrawLocalMode(bool flag=true, bool arrows=true)
Set drawing of global mode.
Definition: BCHistogramBase.h:445
bool GetDrawStandardDeviation() const
Definition: BCHistogramBase.h:242
bool GetBandOvercoverage() const
Definition: BCHistogramBase.h:157
void SetNSmooth(unsigned n)
Sets number of times to smooth the histogram using ROOT's smoothing function.
Definition: BCHistogramBase.h:429
std::vector< double > & GetLocalMode()
Definition: BCHistogramBase.h:134
BCHistogramBase & operator=(const TH1 &hist)
Assign TH1 histogram with operator.
Definition: BCHistogramBase.h:88
virtual double ResizeLegend()
Resize legend and set it for placement at the top of the pad.
Definition: BCHistogramBase.cxx:695
void SetDrawMean(bool flag=true, bool stddev=true)
Set drawing of mean.
Definition: BCHistogramBase.h:458
const std::vector< double > & GetBestFitParameters() const
Definition: BCHistogramBase.h:123
virtual bool Valid() const
Whether histogram has been set and filled.
Definition: BCHistogramBase.cxx:226
std::vector< double > & GetIntervals()
Definition: BCHistogramBase.h:272
void SetROOToptions(const std::string &options)
Set ROOT drawing options.
Definition: BCHistogramBase.h:497
int GetMarkerColor() const
Returns the marker colors (used for mean, median, and mode.
Definition: BCHistogramBase.h:177
void SetBandOvercoverage(bool flag=true)
Set band coverage to be overcoverage (true) or undercoverage (false).
Definition: BCHistogramBase.h:355
void SetNBands(unsigned n)
Sets number of credibility interval bands to draw.
Definition: BCHistogramBase.h:424
std::vector< TLegendEntry * > fExtraLegendEntries
Storage for unused legend entries (for use with multicolumn legends).
Definition: BCHistogramBase.h:756
unsigned GetNLegendColumns() const
Definition: BCHistogramBase.h:113
std::vector< double > & GetBestFitParameters()
Definition: BCHistogramBase.h:118
int fLocalModeMarkerStyle
Holds option for local-mode marker style.
Definition: BCHistogramBase.h:716
int GetBestFitParametersMarkerStyle() const
Definition: BCHistogramBase.h:212
double GetBestFitParameters(unsigned i) const
Definition: BCHistogramBase.h:129
bool GetDrawLocalModeArrows() const
Definition: BCHistogramBase.h:222
BCHistogramBase & operator=(const TH1 *const hist)
Assign TH1 histogram with operator.
Definition: BCHistogramBase.h:83
unsigned fNSmooth
Number of times to smooth histogram using ROOT's smooth function.
Definition: BCHistogramBase.h:692
void SetMarkerColor(int c)
Set marker color (used for mean, median, and mode).
Definition: BCHistogramBase.h:379
void SetInterval(double interval)
Set intervals to one single value.
Definition: BCHistogramBase.h:489
TLegendEntry * AddBandLegendEntry(TObject *obj, const std::string &label, const std::string &options)
Add band legend entry, creating unused extra entries if necessary.
Definition: BCHistogramBase.cxx:728