RooStats::HybridPlot Class Reference

#include <HybridPlot.h>

Inheritance diagram for RooStats::HybridPlot:

TNamed TNamed TObject TObject TObject TObject List of all members.

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.
TH1FGetBhisto ()
 Get B histo.
double GetBCenter (double n_sigmas=1, bool display=false)
 Get B histo center.
doubleGetBIntExtremes (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.
doubleGetSBIntExtremes (double frac)
 Get SB histo integration extremes to obtain the requested area fraction.
TH1FGetSBhisto ()
 Get B histo.
TVirtualPadGetCanvas ()
 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.
doubleGetHistoPvals (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.
TH1FGetBhisto ()
 Get B histo.
double GetBCenter (double n_sigmas=1, bool display=false)
 Get B histo center.
doubleGetBIntExtremes (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.
doubleGetSBIntExtremes (double frac)
 Get SB histo integration extremes to obtain the requested area fraction.
TH1FGetSBhisto ()
 Get B histo.
TVirtualPadGetCanvas ()
 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.
doubleGetHistoPvals (TH1 *histo, double percentage)
 Get the "effective sigmas" of the histo.
double GetMedian (TH1 *histo)
 Get the median of an histogram.

Private Attributes

TH1FfSb_histo
TH1FfSb_histo_shaded
TH1FfB_histo
TH1FfB_histo_shaded
TLinefData_testStat_line
TLegendfLegend
TVirtualPadfPad
bool fVerbose
TH1FfSb_histo
TH1FfSb_histo_shaded
TH1FfB_histo
TH1FfB_histo_shaded
TLinefData_testStat_line
TLegendfLegend
TVirtualPadfPad

Detailed Description

Definition at line 39 of file HybridPlot.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void RooStats::HybridPlot::Draw ( const char *  options = ""  )  [virtual]

Draw on current pad.

Reimplemented from TObject.

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.

Definition at line 68 of file HybridPlot.h.

References fB_histo.

double RooStats::HybridPlot::GetBCenter ( double  n_sigmas = 1,
bool  display = false 
) [inline]

Get B histo center.

Definition at line 71 of file HybridPlot.h.

References fB_histo, and GetHistoCenter().

double* RooStats::HybridPlot::GetBIntExtremes ( double  frac  )  [inline]

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().

double RooStats::HybridPlot::GetSBCenter ( double  n_sigmas = 1,
bool  display = false 
) [inline]

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().

double* RooStats::HybridPlot::GetSBIntExtremes ( double  frac  )  [inline]

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]

Get B histo.

Definition at line 93 of file HybridPlot.h.

References fSb_histo.

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.

Referenced by GetBCenter(), and GetSBCenter().

double* RooStats::HybridPlot::GetHistoPvals ( TH1 histo,
double  percentage 
)

Get the "effective sigmas" of the histo.

Referenced by GetBIntExtremes(), and GetSBIntExtremes().

double RooStats::HybridPlot::GetMedian ( TH1 histo  ) 

Get the median of an histogram.

void RooStats::HybridPlot::Draw ( const char *  options = ""  )  [virtual]

Draw on current pad.

Reimplemented from TObject.

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.

Definition at line 68 of file HybridPlot.h.

References fB_histo.

double RooStats::HybridPlot::GetBCenter ( double  n_sigmas = 1,
bool  display = false 
) [inline]

Get B histo center.

Definition at line 71 of file HybridPlot.h.

References fB_histo, and GetHistoCenter().

double* RooStats::HybridPlot::GetBIntExtremes ( double  frac  )  [inline]

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().

double RooStats::HybridPlot::GetSBCenter ( double  n_sigmas = 1,
bool  display = false 
) [inline]

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().

double* RooStats::HybridPlot::GetSBIntExtremes ( double  frac  )  [inline]

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]

Get B histo.

Definition at line 93 of file HybridPlot.h.

References fSb_histo.

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.

double* RooStats::HybridPlot::GetHistoPvals ( TH1 histo,
double  percentage 
)

Get the "effective sigmas" of the histo.

double RooStats::HybridPlot::GetMedian ( TH1 histo  ) 

Get the median of an histogram.


Member Data Documentation

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]

Definition at line 119 of file HybridPlot.h.

Referenced by GetCanvas().

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.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:56:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1