class RooPrintable

RooPlotable is 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.

Function Members (Methods)

static TClass*Class()
virtual Int_tdefaultPrintContents(Option_t* opt) const
static ostream&defaultPrintStream(ostream* os = 0)
virtual RooPrintable::StyleOptiondefaultPrintStyle(Option_t* opt) const
virtual TClass*IsA() const
static voidnameFieldLength(Int_t newLen)
RooPrintable&operator=(const RooPrintable&)
virtual voidprintAddress(ostream& os) const
virtual voidprintArgs(ostream& os) const
virtual voidprintClassName(ostream& os) const
virtual voidprintExtras(ostream& os) const
virtual voidprintMultiline(ostream& os, Int_t contents, Bool_t verbose = kFALSE, TString indent = "") const
virtual voidprintName(ostream& os) const
virtual voidprintStream(ostream& os, Int_t contents, RooPrintable::StyleOption style, TString indent = "") const
virtual voidprintTitle(ostream& os) const
virtual voidprintTree(ostream& os, TString indent = "") const
virtual voidprintValue(ostream& os) const
RooPrintable(const RooPrintable&)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)

Data Members

static RooPrintable::ContentsOptionkAddress
static RooPrintable::ContentsOptionkArgs
static RooPrintable::ContentsOptionkClassName
static RooPrintable::ContentsOptionkCollectionHeader
static RooPrintable::ContentsOptionkExtras
static RooPrintable::StyleOptionkInline
static RooPrintable::ContentsOptionkName
static RooPrintable::StyleOptionkSingleLine
static RooPrintable::StyleOptionkStandard
static RooPrintable::ContentsOptionkTitle
static RooPrintable::StyleOptionkTreeStructure
static RooPrintable::ContentsOptionkValue
static RooPrintable::StyleOptionkVerbose
static Int_t_nameLength

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void nameFieldLength(Int_t newLen)
 Set length of field reserved from printing name of RooAbsArgs in
 multi-line collection printing to given amount.
void printStream(ostream& os, Int_t contents, RooPrintable::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'. Each message is prefixed by string 'indent' when printed
void printValue(ostream& os) const
 Interface to print value of object
void printExtras(ostream& os) const
 Interface to print extras of object
void printMultiline(ostream& os, Int_t contents, Bool_t verbose = kFALSE, TString indent = "") const
 Interface for detailed printing of object
void printTree(ostream& os, TString indent = "") const
 Interface for tree structure printing of object
void printArgs(ostream& os) const
 Interface for printing of object arguments. Arguments
 are loosely defined as external server objects
 in this context
void printName(ostream& os) const
 Print name of object
void printTitle(ostream& os) const
 Print title of object
void printClassName(ostream& os) const
 Print class name of object
void printAddress(ostream& os) const
 Print class name of object
Int_t defaultPrintContents(Option_t* opt) const
 Default choice of contents to be printed (name and value)
ostream & defaultPrintStream(ostream* os = 0)
 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.
inline RooPrintable()
{ }
virtual ~RooPrintable()
{ }
StyleOption defaultPrintStyle(Option_t* opt) const