16#ifndef ROOSTATS_HybridPlot
17#define ROOSTATS_HybridPlot
43 const std::vector<double> & sb_values,
44 const std::vector<double> & b_values,
53 void Draw (
const char* options=
"")
override;
56 void DumpToFile (
const char* RootFileName,
const char* options);
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
double GetMedian(TH1 *histo)
Get the median of an histogram.
double GetSBrms()
Get SB histo RMS.
double GetSBCenter(double n_sigmas=1, bool display=false)
Get SB histo center.
double * GetBIntExtremes(double frac)
Get B histo integration extremes to obtain the requested area fraction call delete [] res to release ...
TH1F * fB_histo_shaded
The b Histo shaded.
TH1F * GetBhisto()
Get B histo.
TH1F * fSb_histo_shaded
The sb Histo shaded.
double GetSBmean()
Get SB histo mean.
TH1F * GetSBhisto()
Get B histo.
double GetBCenter(double n_sigmas=1, bool display=false)
Get B histo center.
double * GetSBIntExtremes(double frac)
Get SB histo integration extremes to obtain the requested area fraction call delete [] res to release...
TVirtualPad * fPad
The pad where it has been drawn.
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.
TVirtualPad * GetCanvas()
Get the pad (or canvas) where it has been drawn.
TH1F * fSb_histo
The sb Histo.
bool fVerbose
verbosity flag
void DumpToImage(const char *filename)
Write an image on disk.
TLine * fData_testStat_line
The line for the data value of the test statistic.
TLegend * fLegend
The legend of the plot.
TH1F * fB_histo
The b Histo.
double GetBrms()
Get B histo RMS.
~HybridPlot() override
Destructor.
double GetBmean()
Get B histo mean.
double * GetHistoPvals(TH1 *histo, double percentage)
Get the "effective sigmas" of the histo, call delete [] res to release memory.
double GetHistoCenter(TH1 *histo, double n_rms=1, bool display_result=false)
Get the center of the histo.
void DumpToFile(const char *RootFileName, const char *options)
All the objects are written to rootfile.
1-D histogram with a float per channel (see TH1 documentation)
TH1 is the base class of all histogram classes in ROOT.
This class displays a legend box (TPaveText) containing several legend entries.
Use the TLine constructor to create a simple line.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Namespace for the RooStats classes.