Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
HybridPlot.h File Reference
#include <vector>
#include <iostream>
#include "TNamed.h"
#include "TH1.h"
Include dependency graph for HybridPlot.h:
This graph shows which files directly or indirectly include this file:

Classes

class  RooStats::HybridPlot
 This class provides the plots for the result of a study performed with the HybridCalculatorOriginal class. More...
 

Namespaces

namespace  RooStats
 Namespace for the RooStats classes.
 

Functions

 ~HybridPlot () override
 Destructor.
 
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
void Draw (const char *options="") override
 Draw on current pad.
 
void DumpToFile (const char *RootFileName, const char *options)
 All the objects are written to rootfile.
 
void DumpToImage (const char *filename)
 Write an image on disk.
 
double GetBCenter (double n_sigmas=1, bool display=false)
 Get B histo center.
 
TH1FGetBhisto ()
 Get B histo.
 
doubleGetBIntExtremes (double frac)
 Get B histo integration extremes to obtain the requested area fraction call delete [] res to release memory.
 
double GetBmean ()
 Get B histo mean.
 
double GetBrms ()
 Get B histo RMS.
 
TVirtualPadGetCanvas ()
 Get the pad (or canvas) where it has been drawn.
 
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, call delete [] res to release memory.
 
double GetMedian (TH1 *histo)
 Get the median of an histogram.
 
double GetSBCenter (double n_sigmas=1, bool display=false)
 Get SB histo center.
 
TH1FGetSBhisto ()
 Get B histo.
 
doubleGetSBIntExtremes (double frac)
 Get SB histo integration extremes to obtain the requested area fraction call delete [] res to release memory.
 
double GetSBmean ()
 Get SB histo mean.
 
double GetSBrms ()
 Get SB histo RMS.
 
 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.
 
TClassIsA () const override
 
RooStats::HybridPlot TNamed RooStats::R__DEPRECATED (6, 42, "Please write your own ROOT-based plotting code, possibly based on the source code of the deprecated HybridPlot class.")
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Variables

TH1FfB_histo
 The b Histo.
 
TH1FfB_histo_shaded
 The b Histo shaded.
 
TLinefData_testStat_line
 The line for the data value of the test statistic.
 
TLegendfLegend
 The legend of the plot.
 
TVirtualPadfPad
 The pad where it has been drawn.
 
TH1FfSb_histo
 The sb Histo.
 
TH1FfSb_histo_shaded
 The sb Histo shaded.
 
bool fVerbose
 verbosity flag
 

Function Documentation

◆ ~HybridPlot()

R__DEPRECATED::~HybridPlot ( )
override

Destructor.

◆ Class()

static TClass * R__DEPRECATED::Class ( )
static
Returns
TClass describing this class

Definition at line 29 of file Class.C.

◆ Class_Name()

static const char * R__DEPRECATED::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t R__DEPRECATED::Class_Version ( )
staticconstexpr
Returns
Version of this class

Definition at line 84 of file HybridPlot.h.

◆ DeclFileName()

static const char * R__DEPRECATED::DeclFileName ( )
static
Returns
Name of the file containing the class declaration

Definition at line 84 of file HybridPlot.h.

◆ Draw()

void R__DEPRECATED::Draw ( const char * options = "")
override

Draw on current pad.

◆ DumpToFile()

void R__DEPRECATED::DumpToFile ( const char * RootFileName,
const char * options )

All the objects are written to rootfile.

◆ DumpToImage()

void R__DEPRECATED::DumpToImage ( const char * filename)

Write an image on disk.

◆ GetBCenter()

double R__DEPRECATED::GetBCenter ( double n_sigmas = 1,
bool display = false )

Get B histo center.

Definition at line 31 of file HybridPlot.h.

◆ GetBhisto()

TH1F * R__DEPRECATED::GetBhisto ( )

Get B histo.

Definition at line 28 of file HybridPlot.h.

◆ GetBIntExtremes()

double * R__DEPRECATED::GetBIntExtremes ( double frac)

Get B histo integration extremes to obtain the requested area fraction call delete [] res to release memory.

Definition at line 36 of file HybridPlot.h.

◆ GetBmean()

double R__DEPRECATED::GetBmean ( )

Get B histo mean.

Definition at line 22 of file HybridPlot.h.

◆ GetBrms()

double R__DEPRECATED::GetBrms ( )

Get B histo RMS.

Definition at line 25 of file HybridPlot.h.

◆ GetCanvas()

TVirtualPad * R__DEPRECATED::GetCanvas ( )

Get the pad (or canvas) where it has been drawn.

Definition at line 58 of file HybridPlot.h.

◆ GetHistoCenter()

double R__DEPRECATED::GetHistoCenter ( TH1 * histo,
double n_rms = 1,
bool display_result = false )

Get the center of the histo.

◆ GetHistoPvals()

double * R__DEPRECATED::GetHistoPvals ( TH1 * histo,
double percentage )

Get the "effective sigmas" of the histo, call delete [] res to release memory.

◆ GetMedian()

double R__DEPRECATED::GetMedian ( TH1 * histo)

Get the median of an histogram.

◆ GetSBCenter()

double R__DEPRECATED::GetSBCenter ( double n_sigmas = 1,
bool display = false )

Get SB histo center.

Definition at line 43 of file HybridPlot.h.

◆ GetSBhisto()

TH1F * R__DEPRECATED::GetSBhisto ( )

Get B histo.

Definition at line 55 of file HybridPlot.h.

◆ GetSBIntExtremes()

double * R__DEPRECATED::GetSBIntExtremes ( double frac)

Get SB histo integration extremes to obtain the requested area fraction call delete [] res to release memory.

Definition at line 51 of file HybridPlot.h.

◆ GetSBmean()

double R__DEPRECATED::GetSBmean ( )

Get SB histo mean.

Definition at line 40 of file HybridPlot.h.

◆ GetSBrms()

double R__DEPRECATED::GetSBrms ( )

Get SB histo RMS.

Definition at line 47 of file HybridPlot.h.

◆ HybridPlot()

R__DEPRECATED::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.

◆ IsA()

TClass * R__DEPRECATED::IsA ( ) const
override
Returns
TClass describing current object

Definition at line 84 of file HybridPlot.h.

◆ Streamer()

void R__DEPRECATED::Streamer ( TBuffer & )
override

◆ StreamerNVirtual()

void R__DEPRECATED::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)

Definition at line 84 of file HybridPlot.h.

Variable Documentation

◆ fB_histo

TH1F* fB_histo
private

The b Histo.

Definition at line 77 of file HybridPlot.h.

◆ fB_histo_shaded

TH1F* fB_histo_shaded
private

The b Histo shaded.

Definition at line 78 of file HybridPlot.h.

◆ fData_testStat_line

TLine* fData_testStat_line
private

The line for the data value of the test statistic.

Definition at line 79 of file HybridPlot.h.

◆ fLegend

TLegend* fLegend
private

The legend of the plot.

Definition at line 80 of file HybridPlot.h.

◆ fPad

TVirtualPad* fPad
private

The pad where it has been drawn.

Definition at line 81 of file HybridPlot.h.

◆ fSb_histo

TH1F* fSb_histo
private

The sb Histo.

Definition at line 75 of file HybridPlot.h.

◆ fSb_histo_shaded

TH1F* fSb_histo_shaded
private

The sb Histo shaded.

Definition at line 76 of file HybridPlot.h.

◆ fVerbose

bool fVerbose
private

verbosity flag

Definition at line 82 of file HybridPlot.h.