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.
RooPrintable() | |
RooPrintable(const RooPrintable&) | |
virtual | ~RooPrintable() |
static TClass* | Class() |
virtual Int_t | defaultPrintContents(Option_t* opt) const |
static ostream& | defaultPrintStream(ostream* os = 0) |
virtual RooPrintable::StyleOption | defaultPrintStyle(Option_t* opt) const |
virtual TClass* | IsA() const |
static void | nameFieldLength(Int_t newLen) |
RooPrintable& | operator=(const RooPrintable&) |
virtual void | printAddress(ostream& os) const |
virtual void | printArgs(ostream& os) const |
virtual void | printClassName(ostream& os) const |
virtual void | printExtras(ostream& os) const |
virtual void | printMultiline(ostream& os, Int_t contents, Bool_t verbose = kFALSE, TString indent = "") const |
virtual void | printName(ostream& os) const |
virtual void | printStream(ostream& os, Int_t contents, RooPrintable::StyleOption style, TString indent = "") const |
virtual void | printTitle(ostream& os) const |
virtual void | printTree(ostream& os, TString indent = "") const |
virtual void | printValue(ostream& os) const |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
enum ContentsOption { | kName | |
kClassName | ||
kValue | ||
kArgs | ||
kExtras | ||
kAddress | ||
kTitle | ||
kCollectionHeader | ||
}; | ||
enum StyleOption { | kInline | |
kSingleLine | ||
kStandard | ||
kVerbose | ||
kTreeStructure | ||
}; |
static Int_t | _nameLength |
Set length of field reserved from printing name of RooAbsArgs in multi-line collection printing to given amount.
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
Interface for detailed printing of object
Interface for tree structure printing of object
Interface for printing of object arguments. Arguments are loosely defined as external server objects in this context
Default choice of contents to be printed (name and value)
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.