Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooPrintable Class Reference

A 'mix-in' base class that define the standard RooFit plotting and printing methods.

Each RooPlotable implementation must define methods that print the objects name, class name, title, value, arguments and extras to a provided stream. The definition of value is class dependent. The definition of arguments is also class dependent, but should always be interpreted as the names (and properties) of any (RooAbsArg) external inputs of a given object. The extras method can be used to print any properties that does not fit in any of the other classes. Each object an also override the definitions made in defaultPrintStyle and defaultPrintContents to determine what is printed (in terms of contents) and how it is printed (inline,single-line or multiline) given a Print() option string.

Definition at line 25 of file RooPrintable.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

 RooPrintable ()
 
virtual ~RooPrintable ()
 
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 TClassIsA () const
 
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.
 
virtual void printMultiline (std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const
 Interface for detailed printing of object.
 
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.
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

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.
 

Static Protected Attributes

static Int_t _nameLength
 

#include <RooPrintable.h>

Inheritance diagram for RooPrintable:
[legend]

Member Enumeration Documentation

◆ ContentsOption

Enumerator
kName 
kClassName 
kValue 
kArgs 
kExtras 
kAddress 
kTitle 
kCollectionHeader 

Definition at line 33 of file RooPrintable.h.

◆ StyleOption

Enumerator
kInline 
kSingleLine 
kStandard 
kVerbose 
kTreeStructure 

Definition at line 34 of file RooPrintable.h.

Constructor & Destructor Documentation

◆ RooPrintable()

RooPrintable::RooPrintable ( )
inline

Definition at line 27 of file RooPrintable.h.

◆ ~RooPrintable()

virtual RooPrintable::~RooPrintable ( )
inlinevirtual

Definition at line 28 of file RooPrintable.h.

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 59 of file RooPrintable.h.

◆ DeclFileName()

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

Definition at line 59 of file RooPrintable.h.

◆ defaultPrintContents()

Int_t RooPrintable::defaultPrintContents ( Option_t opt) const
virtual

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

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

Definition at line 230 of file RooPrintable.cxx.

◆ defaultPrintStream()

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

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 269 of file RooPrintable.cxx.

◆ defaultPrintStyle()

RooPrintable::StyleOption RooPrintable::defaultPrintStyle ( Option_t opt) const
virtual

Reimplemented in RooAbsGenContext, RooFitResult, RooNumGenConfig, and RooNumIntConfig.

Definition at line 238 of file RooPrintable.cxx.

◆ IsA()

virtual TClass * RooPrintable::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented in RooStats::HistFactory::FlexibleInterpVar, RooStats::HistFactory::LinInterpVar, ParamHistFunc, PiecewiseInterpolation, RooStats::HistFactory::RooBarlowBeestonLL, Roo2DKeysPdf, RooArgusBG, RooBCPEffDecay, RooBCPGenDecay, RooBDecay, RooBernstein, RooBifurGauss, RooBMixDecay, RooBreitWigner, RooBukinPdf, RooCBShape, RooCFunction1Binding< VO, VI >, RooCFunction1PdfBinding< VO, VI >, RooCFunction2Binding< VO, VI1, VI2 >, RooCFunction2PdfBinding< VO, VI1, VI2 >, RooCFunction3Binding< VO, VI1, VI2, VI3 >, RooCFunction3PdfBinding< VO, VI1, VI2, VI3 >, RooCFunction4Binding< VO, VI1, VI2, VI3, VI4 >, RooCFunction4PdfBinding< VO, VI1, VI2, VI3, VI4 >, RooChebychev, RooChiSquarePdf, RooCrystalBall, RooDecay, RooDstD0BG, RooExponential, RooExpPoly, RooFunctor1DBinding, RooFunctor1DPdfBinding, RooFunctorBinding, RooFunctorPdfBinding, RooGamma, RooGaussian, RooGaussModel, RooGExpModel, RooHistConstraint, RooIntegralMorph, RooJeffreysPrior, RooJohnson, RooKeysPdf, RooLagrangianMorphFunc, RooLandau, RooLognormal, RooMomentMorph, RooMomentMorphFunc, RooMomentMorphFuncND, RooMultiBinomial, RooNDKeysPdf, RooNonCPEigenDecay, RooNovosibirsk, RooParametricStepFunction, RooParamHistFunc, RooPoisson, RooPolynomial, RooPower, RooSpline, RooStepFunction, RooTFnBinding, RooTFnPdfBinding, RooUnblindCPAsymVar, RooUnblindOffset, RooUnblindPrecision, RooUnblindUniform, RooUniform, RooVoigtian, Roo1DTable, RooAbsAnaConvPdf, RooAbsBinning, RooAbsCachedPdf, RooAbsCachedReal, RooAbsCategory, RooAbsCategoryLValue, RooAbsCollection, RooAbsData, RooAbsDataStore, RooAbsGenContext, RooAbsHiddenReal, RooAbsMoment, RooAbsOptTestStatistic, RooAbsPdf, RooAbsReal, RooAbsRealLValue, RooAbsTestStatistic, RooAddGenContext, RooAddition, RooAddModel, RooAddPdf, RooArgList, RooArgSet, RooBinnedGenContext, RooBinning, RooBinningCategory, RooBinSamplingPdf, RooBinWidthFunction, RooCachedPdf, RooCachedReal, RooCategory, RooChangeTracker, RooChi2Var, RooCollectionProxy< RooArgList >, RooCollectionProxy< RooArgSet >, RooCompositeDataStore, RooConstraintSum, RooConstVar, RooConvCoefVar, RooConvGenContext, RooCurve, RooDataHist, RooDataSet, RooDerivative, RooEffGenContext, RooEfficiency, RooEffProd, RooEllipse, RooErrorVar, RooExtendedBinding, RooExtendedTerm, RooExtendPdf, RooFactoryWSTool, RooFFTConvPdf, RooFirstMoment, RooFit::TestStatistics::RooRealL, RooCatType, RooTreeData, RooFitResult, RooFormulaVar, RooFracRemainder, RooGenContext, RooGenericPdf, RooHist, RooHistFunc, RooHistPdf, RooLinearCombination, RooLinearVar, RooLinTransBinning, RooMappedCategory, RooMoment, RooMultiCategory, RooMultiVarGaussian, RooNLLVar, RooNumCdf, RooNumConvolution, RooNumConvPdf, RooNumGenConfig, RooNumIntConfig, RooNumRunningInt, RooParamBinning, RooPlot, RooPlotable, RooPolyFunc, RooPolyVar, RooProdGenContext, RooProdPdf, RooProduct, RooProfileLL, RooProjectedPdf, RooPullVar, RooRangeBinning, RooRangeBoolean, RooRatio, RooRealIntegral, RooRealMPFE, RooRealSumFunc, RooRealSumPdf, RooRealVar, RooRecursiveFraction, RooResolutionModel, RooSecondMoment, RooSimGenContext, RooSimSplitGenContext, RooSimultaneous, RooStringVar, RooSuperCategory, RooTable, RooThresholdCategory, RooTreeDataStore, RooTruthModel, RooUniformBinning, RooVectorDataStore, RooWrapperPdf, RooXYChi2Var, RooLegendre, RooNonCentralChiSquare, RooSpHarmonic, RooStats::Heaviside, RooStats::HypoTestPlot, RooStats::LikelihoodIntervalPlot, RooStats::MCMCIntervalPlot, and RooStats::SamplingDistPlot.

Definition at line 59 of file RooPrintable.h.

◆ nameFieldLength()

void RooPrintable::nameFieldLength ( Int_t  newLen)
static

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

Definition at line 60 of file RooPrintable.cxx.

◆ printAddress()

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

Print class name of object.

Reimplemented in RooAbsArg.

Definition at line 220 of file RooPrintable.cxx.

◆ printArgs()

◆ printClassName()

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

◆ printExtras()

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

Interface to print extras of object.

Reimplemented in RooRealVar.

Definition at line 160 of file RooPrintable.cxx.

◆ printMultiline()

◆ printName()

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

◆ printStream()

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

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 72 of file RooPrintable.cxx.

◆ printTitle()

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

◆ printTree()

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

Interface for tree structure printing of object.

Reimplemented in RooAbsArg.

Definition at line 176 of file RooPrintable.cxx.

◆ printValue()

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

◆ Streamer()

virtual void RooPrintable::Streamer ( TBuffer )
virtual

Reimplemented in RooStats::HistFactory::FlexibleInterpVar, RooStats::HistFactory::LinInterpVar, ParamHistFunc, PiecewiseInterpolation, RooStats::HistFactory::RooBarlowBeestonLL, Roo2DKeysPdf, RooArgusBG, RooBCPEffDecay, RooBCPGenDecay, RooBDecay, RooBernstein, RooBifurGauss, RooBMixDecay, RooBreitWigner, RooBukinPdf, RooCBShape, RooCFunction1Binding< VO, VI >, RooCFunction1PdfBinding< VO, VI >, RooCFunction2Binding< VO, VI1, VI2 >, RooCFunction2PdfBinding< VO, VI1, VI2 >, RooCFunction3Binding< VO, VI1, VI2, VI3 >, RooCFunction3PdfBinding< VO, VI1, VI2, VI3 >, RooCFunction4Binding< VO, VI1, VI2, VI3, VI4 >, RooCFunction4PdfBinding< VO, VI1, VI2, VI3, VI4 >, RooChebychev, RooChiSquarePdf, RooCrystalBall, RooDecay, RooDstD0BG, RooExponential, RooExpPoly, RooFunctor1DBinding, RooFunctor1DPdfBinding, RooFunctorBinding, RooFunctorPdfBinding, RooGamma, RooGaussian, RooGaussModel, RooGExpModel, RooHistConstraint, RooIntegralMorph, RooJeffreysPrior, RooJohnson, RooKeysPdf, RooLagrangianMorphFunc, RooLandau, RooLognormal, RooMomentMorph, RooMomentMorphFunc, RooMomentMorphFuncND, RooMultiBinomial, RooNDKeysPdf, RooNonCPEigenDecay, RooNovosibirsk, RooParametricStepFunction, RooParamHistFunc, RooPoisson, RooPolynomial, RooPower, RooSpline, RooStepFunction, RooTFnBinding, RooTFnPdfBinding, RooUnblindCPAsymVar, RooUnblindOffset, RooUnblindPrecision, RooUnblindUniform, RooUniform, RooVoigtian, Roo1DTable, RooAbsAnaConvPdf, RooAbsBinning, RooAbsCachedPdf, RooAbsCachedReal, RooAbsCategory, RooAbsCategoryLValue, RooAbsCollection, RooAbsData, RooAbsDataStore, RooAbsGenContext, RooAbsHiddenReal, RooAbsMoment, RooAbsOptTestStatistic, RooAbsPdf, RooAbsReal, RooAbsRealLValue, RooAbsTestStatistic, RooAddGenContext, RooAddition, RooAddModel, RooAddPdf, RooArgList, RooArgSet, RooBinnedGenContext, RooBinning, RooBinningCategory, RooBinSamplingPdf, RooBinWidthFunction, RooCachedPdf, RooCachedReal, RooCategory, RooChangeTracker, RooChi2Var, RooCollectionProxy< RooArgList >, RooCollectionProxy< RooArgSet >, RooCompositeDataStore, RooConstraintSum, RooConstVar, RooConvCoefVar, RooConvGenContext, RooCurve, RooDataHist, RooDataSet, RooDerivative, RooEffGenContext, RooEfficiency, RooEffProd, RooEllipse, RooErrorVar, RooExtendedBinding, RooExtendedTerm, RooExtendPdf, RooFactoryWSTool, RooFFTConvPdf, RooFirstMoment, RooFit::TestStatistics::RooRealL, RooCatType, RooTreeData, RooFitResult, RooFormulaVar, RooFracRemainder, RooGenContext, RooGenericPdf, RooHist, RooHistFunc, RooHistPdf, RooLinearCombination, RooLinearVar, RooLinTransBinning, RooMappedCategory, RooMoment, RooMultiCategory, RooMultiVarGaussian, RooNLLVar, RooNumCdf, RooNumConvolution, RooNumConvPdf, RooNumGenConfig, RooNumIntConfig, RooNumRunningInt, RooParamBinning, RooPlot, RooPlotable, RooPolyFunc, RooPolyVar, RooProdGenContext, RooProdPdf, RooProduct, RooProfileLL, RooProjectedPdf, RooPullVar, RooRangeBinning, RooRangeBoolean, RooRatio, RooRealIntegral, RooRealMPFE, RooRealSumFunc, RooRealSumPdf, RooRealVar, RooRecursiveFraction, RooResolutionModel, RooSecondMoment, RooSimGenContext, RooSimSplitGenContext, RooSimultaneous, RooStringVar, RooSuperCategory, RooTable, RooThresholdCategory, RooTreeDataStore, RooTruthModel, RooUniformBinning, RooVectorDataStore, RooWrapperPdf, RooXYChi2Var, RooLegendre, RooNonCentralChiSquare, RooSpHarmonic, RooStats::Heaviside, RooStats::HypoTestPlot, RooStats::LikelihoodIntervalPlot, RooStats::MCMCIntervalPlot, and RooStats::SamplingDistPlot.

◆ StreamerNVirtual()

void RooPrintable::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 59 of file RooPrintable.h.

Member Data Documentation

◆ _nameLength

Int_t RooPrintable::_nameLength
staticprotected

Definition at line 57 of file RooPrintable.h.

Libraries for RooPrintable:

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