Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RooPlotable Class Referenceabstract

Class RooPotable is a base class for objects that can be inserted into RooPlots and take advantage of its internal normalization and axis range adjustment features.

The most useful implementation of RooPlotable are RooHist and RooCurve.

Definition at line 26 of file RooPlotable.h.

Public Types

enum  ContentsOption {
  kName =1 , kClassName =2 , kValue =4 , kArgs =8 ,
  kExtras =16 , kAddress =32 , kTitle =64 , kCollectionHeader =128
}
enum  StyleOption {
  kInline =1 , kSingleLine =2 , kStandard =3 , kVerbose =4 ,
  kTreeStructure =5
}

Public Member Functions

TObjectcrossCast ()
 Return cast of RooPlotable as TObject.
virtual Int_t defaultPrintContents (Option_t *opt) const
 Default choice of contents to be printed (name and value).
virtual StyleOption defaultPrintStyle (Option_t *opt) const
virtual double getFitRangeBinW () const =0
virtual double getFitRangeNEvt () const =0
virtual double getFitRangeNEvt (double xlo, double xhi) const =0
const char * getYAxisLabel () const
double getYAxisMax () const
double getYAxisMin () const
TClassIsA () const override
virtual void printAddress (std::ostream &os) const
 Print class name of object.
virtual void printArgs (std::ostream &os) const
 Interface for printing of object arguments.
virtual void printClassName (std::ostream &os) const
 Print class name of object.
virtual void printExtras (std::ostream &os) const
 Interface to print extras of object.
void printMultiline (std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
 Print detailed information.
virtual void printName (std::ostream &os) const
 Print name of object.
virtual void printStream (std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
 Print description of object on ostream, printing contents set by contents integer, which is interpreted as an OR of 'enum ContentsOptions' values and in the style given by 'enum StyleOption'.
virtual void printTitle (std::ostream &os) const
 Print title of object.
virtual void printTree (std::ostream &os, TString indent="") const
 Interface for tree structure printing of object.
virtual void printValue (std::ostream &os) const
 Interface to print value of object.
void setYAxisLabel (const char *label)
void setYAxisLimits (double ymin, double ymax)
void Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
void updateYAxisLimits (double y)

Static Public Member Functions

static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static std::ostream & defaultPrintStream (std::ostream *os=nullptr)
 Return a reference to the current default stream to use in Print().
static void nameFieldLength (Int_t newLen)
 Set length of field reserved from printing name of RooAbsArgs in multi-line collection printing to given amount.

Protected Attributes

double _normValue = 0.0
TString _yAxisLabel
double _ymax = 0.0
double _ymin = 0.0

Static Protected Attributes

static Int_t _nameLength

#include <RooPlotable.h>

Inheritance diagram for RooPlotable:
RooPrintable RooCurve RooEllipse RooHist

Member Enumeration Documentation

◆ ContentsOption

Enumerator
kName 
kClassName 
kValue 
kArgs 
kExtras 
kAddress 
kTitle 
kCollectionHeader 

Definition at line 33 of file RooPrintable.h.

◆ StyleOption

enum RooPrintable::StyleOption
inherited
Enumerator
kInline 
kSingleLine 
kStandard 
kVerbose 
kTreeStructure 

Definition at line 34 of file RooPrintable.h.

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

constexpr Version_t RooPlotable::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 55 of file RooPlotable.h.

◆ crossCast()

TObject * RooPlotable::crossCast ( )

Return cast of RooPlotable as TObject.

Note that is this a cross cast that will change the pointer value in most cases

Definition at line 50 of file RooPlotable.cxx.

◆ DeclFileName()

const char * RooPlotable::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 55 of file RooPlotable.h.

◆ defaultPrintContents()

Int_t RooPrintable::defaultPrintContents ( Option_t * opt) const
virtualinherited

Default choice of contents to be printed (name and value).

Reimplemented in Roo1DTable, RooAbsArg, RooAbsCollection, RooAbsData, RooAbsDataStore, RooAbsGenContext, RooFitResult, RooPlot, and RooRealVar.

Definition at line 229 of file RooPrintable.cxx.

◆ defaultPrintStream()

ostream & RooPrintable::defaultPrintStream ( std::ostream * os = nullptr)
staticinherited

Return a reference to the current default stream to use in Print().

Use the optional parameter to specify a new default stream (a reference to the old one is still returned). This method allows subclasses to provide an inline implementation of Print() without pulling in iostream.h.

Definition at line 268 of file RooPrintable.cxx.

◆ defaultPrintStyle()

RooPrintable::StyleOption RooPrintable::defaultPrintStyle ( Option_t * opt) const
virtualinherited

Reimplemented in RooAbsGenContext, RooFitResult, RooNumGenConfig, and RooNumIntConfig.

Definition at line 237 of file RooPrintable.cxx.

◆ getFitRangeBinW()

virtual double RooPlotable::getFitRangeBinW ( ) const
pure virtual

Implemented in RooCurve, RooEllipse, and RooHist.

◆ getFitRangeNEvt() [1/2]

virtual double RooPlotable::getFitRangeNEvt ( ) const
pure virtual

Implemented in RooCurve, RooEllipse, and RooHist.

◆ getFitRangeNEvt() [2/2]

virtual double RooPlotable::getFitRangeNEvt ( double xlo,
double xhi ) const
pure virtual

Implemented in RooCurve, RooEllipse, and RooHist.

◆ getYAxisLabel()

const char * RooPlotable::getYAxisLabel ( ) const
inline

Definition at line 28 of file RooPlotable.h.

◆ getYAxisMax()

double RooPlotable::getYAxisMax ( ) const
inline

Definition at line 39 of file RooPlotable.h.

◆ getYAxisMin()

double RooPlotable::getYAxisMin ( ) const
inline

Definition at line 38 of file RooPlotable.h.

◆ IsA()

TClass * RooPlotable::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from RooPrintable.

Definition at line 55 of file RooPlotable.h.

◆ nameFieldLength()

void RooPrintable::nameFieldLength ( Int_t newLen)
staticinherited

Set length of field reserved from printing name of RooAbsArgs in multi-line collection printing to given amount.

Definition at line 59 of file RooPrintable.cxx.

◆ printAddress()

void RooPrintable::printAddress ( std::ostream & os) const
virtualinherited

Print class name of object.

Reimplemented in RooAbsArg.

Definition at line 219 of file RooPrintable.cxx.

◆ printArgs()

◆ printClassName()

void RooPrintable::printClassName ( std::ostream & os) const
virtualinherited

◆ printExtras()

void RooPrintable::printExtras ( std::ostream & os) const
virtualinherited

Interface to print extras of object.

Reimplemented in RooRealVar.

Definition at line 159 of file RooPrintable.cxx.

◆ printMultiline()

void RooPlotable::printMultiline ( std::ostream & os,
Int_t contents,
bool verbose = false,
TString indent = "" ) const
overridevirtual

Print detailed information.

Reimplemented from RooPrintable.

Definition at line 38 of file RooPlotable.cxx.

◆ printName()

void RooPrintable::printName ( std::ostream & os) const
virtualinherited

◆ printStream()

void RooPrintable::printStream ( std::ostream & os,
Int_t contents,
StyleOption style,
TString indent = "" ) const
virtualinherited

Print description of object on ostream, printing contents set by contents integer, which is interpreted as an OR of 'enum ContentsOptions' values and in the style given by 'enum StyleOption'.

Each message is prefixed by string 'indent' when printed

Definition at line 71 of file RooPrintable.cxx.

◆ printTitle()

void RooPrintable::printTitle ( std::ostream & os) const
virtualinherited

◆ printTree()

void RooPrintable::printTree ( std::ostream & os,
TString indent = "" ) const
virtualinherited

Interface for tree structure printing of object.

Reimplemented in RooAbsArg.

Definition at line 175 of file RooPrintable.cxx.

◆ printValue()

void RooPrintable::printValue ( std::ostream & os) const
virtualinherited

◆ setYAxisLabel()

void RooPlotable::setYAxisLabel ( const char * label)
inline

Definition at line 29 of file RooPlotable.h.

◆ setYAxisLimits()

void RooPlotable::setYAxisLimits ( double ymin,
double ymax )
inline

Definition at line 34 of file RooPlotable.h.

◆ Streamer()

void RooPlotable::Streamer ( TBuffer & )
overridevirtual

Reimplemented from RooPrintable.

◆ StreamerNVirtual()

void RooPlotable::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 55 of file RooPlotable.h.

◆ updateYAxisLimits()

void RooPlotable::updateYAxisLimits ( double y)
inline

Definition at line 30 of file RooPlotable.h.

Member Data Documentation

◆ _nameLength

Int_t RooPrintable::_nameLength
staticprotectedinherited

Definition at line 57 of file RooPrintable.h.

◆ _normValue

double RooPlotable::_normValue = 0.0
protected

Definition at line 54 of file RooPlotable.h.

◆ _yAxisLabel

TString RooPlotable::_yAxisLabel
protected

Definition at line 51 of file RooPlotable.h.

◆ _ymax

double RooPlotable::_ymax = 0.0
protected

Definition at line 53 of file RooPlotable.h.

◆ _ymin

double RooPlotable::_ymin = 0.0
protected

Definition at line 52 of file RooPlotable.h.


The documentation for this class was generated from the following files: