#include <HybridPlot.h>
Inheritance diagram for RooStats::HybridPlot:
Public Member Functions | |
HybridPlot (const char *name, const char *title, const std::vector< double > &sb_values, const std::vector< double > &b_values, double testStat_data, int n_bins, bool verbosity=true) | |
Constructor. | |
~HybridPlot () | |
Destructor. | |
void | Draw (const char *options="") |
Draw on current pad. | |
void | DumpToFile (const char *RootFileName, const char *options) |
All the objects are written to rootfile. | |
double | GetBmean () |
Get B histo mean. | |
double | GetBrms () |
Get B histo RMS. | |
TH1F * | GetBhisto () |
Get B histo. | |
double | GetBCenter (double n_sigmas=1, bool display=false) |
Get B histo center. | |
double * | GetBIntExtremes (double frac) |
Get B histo integration extremes to obtain the requested area fraction. | |
double | GetSBmean () |
Get SB histo mean. | |
double | GetSBCenter (double n_sigmas=1, bool display=false) |
Get SB histo center. | |
double | GetSBrms () |
Get SB histo RMS. | |
double * | GetSBIntExtremes (double frac) |
Get SB histo integration extremes to obtain the requested area fraction. | |
TH1F * | GetSBhisto () |
Get B histo. | |
TVirtualPad * | GetCanvas () |
Get the pad (or canvas) where it has been drawn. | |
void | DumpToImage (const char *filename) |
Write an image on disk. | |
double | GetHistoCenter (TH1 *histo, double n_rms=1, bool display_result=false) |
Get the center of the histo. | |
double * | GetHistoPvals (TH1 *histo, double percentage) |
Get the "effective sigmas" of the histo. | |
double | GetMedian (TH1 *histo) |
Get the median of an histogram. | |
HybridPlot (const char *name, const char *title, const std::vector< double > &sb_values, const std::vector< double > &b_values, double testStat_data, int n_bins, bool verbosity=true) | |
Constructor. | |
~HybridPlot () | |
Destructor. | |
void | Draw (const char *options="") |
Draw on current pad. | |
void | DumpToFile (const char *RootFileName, const char *options) |
All the objects are written to rootfile. | |
double | GetBmean () |
Get B histo mean. | |
double | GetBrms () |
Get B histo RMS. | |
TH1F * | GetBhisto () |
Get B histo. | |
double | GetBCenter (double n_sigmas=1, bool display=false) |
Get B histo center. | |
double * | GetBIntExtremes (double frac) |
Get B histo integration extremes to obtain the requested area fraction. | |
double | GetSBmean () |
Get SB histo mean. | |
double | GetSBCenter (double n_sigmas=1, bool display=false) |
Get SB histo center. | |
double | GetSBrms () |
Get SB histo RMS. | |
double * | GetSBIntExtremes (double frac) |
Get SB histo integration extremes to obtain the requested area fraction. | |
TH1F * | GetSBhisto () |
Get B histo. | |
TVirtualPad * | GetCanvas () |
Get the pad (or canvas) where it has been drawn. | |
void | DumpToImage (const char *filename) |
Write an image on disk. | |
double | GetHistoCenter (TH1 *histo, double n_rms=1, bool display_result=false) |
Get the center of the histo. | |
double * | GetHistoPvals (TH1 *histo, double percentage) |
Get the "effective sigmas" of the histo. | |
double | GetMedian (TH1 *histo) |
Get the median of an histogram. | |
Private Attributes | |
TH1F * | fSb_histo |
TH1F * | fSb_histo_shaded |
TH1F * | fB_histo |
TH1F * | fB_histo_shaded |
TLine * | fData_testStat_line |
TLegend * | fLegend |
TVirtualPad * | fPad |
bool | fVerbose |
TH1F * | fSb_histo |
TH1F * | fSb_histo_shaded |
TH1F * | fB_histo |
TH1F * | fB_histo_shaded |
TLine * | fData_testStat_line |
TLegend * | fLegend |
TVirtualPad * | fPad |
Definition at line 39 of file HybridPlot.h.
RooStats::HybridPlot::HybridPlot | ( | const char * | name, | |
const char * | title, | |||
const std::vector< double > & | sb_values, | |||
const std::vector< double > & | b_values, | |||
double | testStat_data, | |||
int | n_bins, | |||
bool | verbosity = true | |||
) |
Constructor.
RooStats::HybridPlot::~HybridPlot | ( | ) |
Destructor.
RooStats::HybridPlot::HybridPlot | ( | const char * | name, | |
const char * | title, | |||
const std::vector< double > & | sb_values, | |||
const std::vector< double > & | b_values, | |||
double | testStat_data, | |||
int | n_bins, | |||
bool | verbosity = true | |||
) |
Constructor.
RooStats::HybridPlot::~HybridPlot | ( | ) |
Destructor.
void RooStats::HybridPlot::Draw | ( | const char * | options = "" |
) | [virtual] |
void RooStats::HybridPlot::DumpToFile | ( | const char * | RootFileName, | |
const char * | options | |||
) |
All the objects are written to rootfile.
double RooStats::HybridPlot::GetBmean | ( | ) | [inline] |
Get B histo mean.
Definition at line 62 of file HybridPlot.h.
References fB_histo, and TH1::GetMean().
double RooStats::HybridPlot::GetBrms | ( | ) | [inline] |
Get B histo RMS.
Definition at line 65 of file HybridPlot.h.
References fB_histo, and TH1::GetRMS().
TH1F* RooStats::HybridPlot::GetBhisto | ( | ) | [inline] |
Get B histo center.
Definition at line 71 of file HybridPlot.h.
References fB_histo, and GetHistoCenter().
Get B histo integration extremes to obtain the requested area fraction.
Definition at line 75 of file HybridPlot.h.
References fB_histo, and GetHistoPvals().
double RooStats::HybridPlot::GetSBmean | ( | ) | [inline] |
Get SB histo mean.
Definition at line 79 of file HybridPlot.h.
References fSb_histo, and TH1::GetMean().
Get SB histo center.
Definition at line 82 of file HybridPlot.h.
References fSb_histo, and GetHistoCenter().
double RooStats::HybridPlot::GetSBrms | ( | ) | [inline] |
Get SB histo RMS.
Definition at line 86 of file HybridPlot.h.
References fSb_histo, and TH1::GetRMS().
Get SB histo integration extremes to obtain the requested area fraction.
Definition at line 89 of file HybridPlot.h.
References fSb_histo, and GetHistoPvals().
TH1F* RooStats::HybridPlot::GetSBhisto | ( | ) | [inline] |
TVirtualPad* RooStats::HybridPlot::GetCanvas | ( | ) | [inline] |
Get the pad (or canvas) where it has been drawn.
Definition at line 96 of file HybridPlot.h.
References fPad.
void RooStats::HybridPlot::DumpToImage | ( | const char * | filename | ) |
Write an image on disk.
void RooStats::HybridPlot::Draw | ( | const char * | options = "" |
) | [virtual] |
void RooStats::HybridPlot::DumpToFile | ( | const char * | RootFileName, | |
const char * | options | |||
) |
All the objects are written to rootfile.
double RooStats::HybridPlot::GetBmean | ( | ) | [inline] |
Get B histo mean.
Definition at line 62 of file HybridPlot.h.
References fB_histo, and TH1::GetMean().
double RooStats::HybridPlot::GetBrms | ( | ) | [inline] |
Get B histo RMS.
Definition at line 65 of file HybridPlot.h.
References fB_histo, and TH1::GetRMS().
TH1F* RooStats::HybridPlot::GetBhisto | ( | ) | [inline] |
Get B histo center.
Definition at line 71 of file HybridPlot.h.
References fB_histo, and GetHistoCenter().
Get B histo integration extremes to obtain the requested area fraction.
Definition at line 75 of file HybridPlot.h.
References fB_histo, and GetHistoPvals().
double RooStats::HybridPlot::GetSBmean | ( | ) | [inline] |
Get SB histo mean.
Definition at line 79 of file HybridPlot.h.
References fSb_histo, and TH1::GetMean().
Get SB histo center.
Definition at line 82 of file HybridPlot.h.
References fSb_histo, and GetHistoCenter().
double RooStats::HybridPlot::GetSBrms | ( | ) | [inline] |
Get SB histo RMS.
Definition at line 86 of file HybridPlot.h.
References fSb_histo, and TH1::GetRMS().
Get SB histo integration extremes to obtain the requested area fraction.
Definition at line 89 of file HybridPlot.h.
References fSb_histo, and GetHistoPvals().
TH1F* RooStats::HybridPlot::GetSBhisto | ( | ) | [inline] |
TVirtualPad* RooStats::HybridPlot::GetCanvas | ( | ) | [inline] |
Get the pad (or canvas) where it has been drawn.
Definition at line 96 of file HybridPlot.h.
References fPad.
void RooStats::HybridPlot::DumpToImage | ( | const char * | filename | ) |
Write an image on disk.
double RooStats::HybridPlot::GetHistoCenter | ( | TH1 * | histo, | |
double | n_rms = 1 , |
|||
bool | display_result = false | |||
) |
Get the center of the histo.
Get the "effective sigmas" of the histo.
TH1F* RooStats::HybridPlot::fSb_histo [private] |
Definition at line 113 of file HybridPlot.h.
Referenced by GetSBCenter(), GetSBhisto(), GetSBIntExtremes(), GetSBmean(), and GetSBrms().
TH1F* RooStats::HybridPlot::fSb_histo_shaded [private] |
Definition at line 114 of file HybridPlot.h.
TH1F* RooStats::HybridPlot::fB_histo [private] |
Definition at line 115 of file HybridPlot.h.
Referenced by GetBCenter(), GetBhisto(), GetBIntExtremes(), GetBmean(), and GetBrms().
TH1F* RooStats::HybridPlot::fB_histo_shaded [private] |
Definition at line 116 of file HybridPlot.h.
TLine* RooStats::HybridPlot::fData_testStat_line [private] |
Definition at line 117 of file HybridPlot.h.
TLegend* RooStats::HybridPlot::fLegend [private] |
Definition at line 118 of file HybridPlot.h.
TVirtualPad* RooStats::HybridPlot::fPad [private] |
bool RooStats::HybridPlot::fVerbose [private] |
Definition at line 120 of file HybridPlot.h.
TH1F* RooStats::HybridPlot::fSb_histo [private] |
Definition at line 113 of file HybridPlot.h.
TH1F* RooStats::HybridPlot::fSb_histo_shaded [private] |
Definition at line 114 of file HybridPlot.h.
TH1F* RooStats::HybridPlot::fB_histo [private] |
Definition at line 115 of file HybridPlot.h.
TH1F* RooStats::HybridPlot::fB_histo_shaded [private] |
Definition at line 116 of file HybridPlot.h.
TLine* RooStats::HybridPlot::fData_testStat_line [private] |
Definition at line 117 of file HybridPlot.h.
TLegend* RooStats::HybridPlot::fLegend [private] |
Definition at line 118 of file HybridPlot.h.
TVirtualPad* RooStats::HybridPlot::fPad [private] |
Definition at line 119 of file HybridPlot.h.