16 #ifndef ROOSTATS_HybridPlot
17 #define ROOSTATS_HybridPlot
36 class HybridPlot :
public TNamed {
41 HybridPlot(
const char* name,
43 const std::vector<double> & sb_values,
44 const std::vector<double> & b_values,
53 void Draw (
const char* options=
"");
56 void DumpToFile (
const char* RootFileName,
const char* options);
59 double GetBmean(){
return fB_histo->GetMean();};
62 double GetBrms(){
return fB_histo->GetRMS();};
65 TH1F * GetBhisto(){
return fB_histo;}
68 double GetBCenter(
double n_sigmas=1,
bool display=
false)
69 {
return GetHistoCenter(fB_histo,n_sigmas,display);};
72 double* GetBIntExtremes(
double frac)
73 {
return GetHistoPvals(fB_histo,frac);};
76 double GetSBmean(){
return fSb_histo->GetMean();};
79 double GetSBCenter(
double n_sigmas=1,
bool display=
false)
80 {
return GetHistoCenter(fSb_histo,n_sigmas,display);};
83 double GetSBrms(){
return fSb_histo->GetRMS();};
86 double* GetSBIntExtremes(
double frac)
87 {
return GetHistoPvals(fSb_histo,frac);};
90 TH1F* GetSBhisto(){
return fSb_histo;}
93 TVirtualPad * GetCanvas() {
return fPad; }
96 void DumpToImage (
const char* filename);
100 double GetHistoCenter(TH1* histo,
double n_rms=1,
bool display_result=
false);
103 double* GetHistoPvals (TH1* histo,
double percentage);
106 double GetMedian(TH1* histo);
111 TH1F* fSb_histo_shaded;
113 TH1F* fB_histo_shaded;
114 TLine* fData_testStat_line;
119 ClassDef(HybridPlot,1)