The xRooNode class is designed to wrap over a TObject and provide functionality to aid with interacting with that object, particularly in the case where the object is a RooFit class instance.
It is a smart pointer to the object, so you have access to all the methods of the object too.
xRooNode is designed to work in both python and C++, but examples below are given in python because that is imagined be the most common way to use the xRooFit API.
An existing workspace file (either a ROOT file containing a RooWorkspace, or a json HS3 file) can be opened using xRooNode like this:
You can explore the content of the workspace somewhat like you would a file system: each node contains sub-nodes, which you can interact with to explore ever deeper. The most relevant methods for navigating the workspace and exploring the content are:
Definition at line 52 of file xRooNode.h.
Classes | |
class | InteractiveObject |
class | xRooNodeIterator |
Public Member Functions | |
xRooNode (const char *name="", const std::shared_ptr< TObject > &comp=nullptr, const std::shared_ptr< xRooNode > &parent=nullptr) | |
xRooNode (const char *type, const char *name, const char *title="") | |
~xRooNode () override | |
xRooNode | Add (const xRooNode &child, Option_t *opt="") |
RooArgList | argList () const |
std::shared_ptr< xRooNode > | at (const std::string &name, bool browseResult=true) const |
const std::shared_ptr< xRooNode > & | at (size_t idx, bool browseResult=true) const |
auto | begin () const -> xRooNodeIterator |
xRooNode | bins () const |
bins of a channel or sample, or channels of a multi-channel pdf | |
void | Browse (TBrowser *b=nullptr) override |
Browse object. May be overridden for another default action. | |
TGraph * | BuildGraph (RooAbsLValue *v=nullptr, bool includeZeros=false, TVirtualPad *fromPad=nullptr) const |
TH1 * | BuildHistogram (RooAbsLValue *v=nullptr, bool empty=false, bool errors=false, int binStart=1, int binEnd=0, const xRooNode &fr="", bool errorsHi=false, bool errorsLo=false, int nErrorToys=0, TH1 *templateHist=nullptr, bool nostack=true, bool setInterp=false) const |
void | Checked (TObject *obj, bool val) |
xRooNode | coefs (bool recurse=false) const |
xRooNode | Combine (const xRooNode &rhs) |
xRooNode | components () const |
xRooNode | Constrain (const xRooNode &child) |
xRooNode | constraints () const |
xRooNode | consts () const |
List of parameters that are currently constant. | |
bool | contains (const std::string &name) const |
std::vector< double > | contents () const |
xRooNode | coords (bool setVals=true) const |
TMatrixDSym | covariances (const xRooNode &fr="") const |
xRooNode | datasets () const |
void | Draw (Option_t *opt="") override |
Default Draw method for all objects. | |
auto | end () const -> xRooNodeIterator |
xRooNode | factors () const |
std::shared_ptr< xRooNode > | find (const std::string &name, bool browseResult=true) const |
xRooNode | fitResult (const char *opt="") const |
xRooNode | floats () const |
List of parameters that are currently non-constant These parameters do not have the "Constant" attribute. | |
xRooNode | generate (const xRooNode &fr="", bool expected=false, int seed=0) |
TObject * | get () const |
template<typename T > | |
T * | get () const |
double | GetBinContent (int bin) const |
std::vector< double > | GetBinContents (int binStart=1, int binEnd=0) const |
double | GetBinData (int bin, const xRooNode &data="obsData") |
double | GetBinError (int bin, const xRooNode &fr="", int nToys=0, bool errorsHi=false, bool errorsLo=false) const |
double | GetBinErrorHi (int bin, const xRooNode &fr="", int nToys=0) const |
double | GetBinErrorLo (int bin, const xRooNode &fr="", int nToys=0) const |
std::vector< double > | GetBinErrors (int binStart=1, int binEnd=0, const xRooNode &fr="", int nToys=0, bool errorsHi=false, bool errorsLo=false) const |
std::vector< double > | GetBinErrorsHi (int binStart=1, int binEnd=0, const xRooNode &fr="", int nToys=0) const |
std::vector< double > | GetBinErrorsLo (int binStart=1, int binEnd=0, const xRooNode &fr="", int nToys=0) const |
double | GetContent () const |
double | GetData (const xRooNode &data="obsData") |
double | GetError (const xRooNode &fr="") const |
const char * | GetRange () const |
TAxis * | GetXaxis () const |
xRooNode | globs () const |
List of global observables of this node. | |
void | Inspect () const override |
Dump contents of this object in a graphics canvas. | |
std::pair< double, double > | IntegralAndError (const xRooNode &fr="", const char *rangeName=nullptr) const |
TClass * | IsA () const override |
bool | IsHidden () const |
xRooNode | mainChild () const |
xRooNode | Multiply (const xRooNode &child, Option_t *opt="") |
xRooNLLVar | nll (const char *_data, std::initializer_list< RooCmdArg > nllOpts={}) const |
xRooNLLVar | nll (const xRooNode &_data, const RooLinkedList &nllOpts) const |
xRooNLLVar | nll (const xRooNode &_data, std::initializer_list< RooCmdArg > nllOpts) const |
xRooNLLVar | nll (const xRooNode &_data="") const |
xRooNode | np () const |
List of nuisance parameters: non-constant parameters that are not marked of interest, as well as any parameters that have been marked by the "np" attribute. | |
xRooNode | obs () const |
List of observables (global and regular) of this node. | |
TObject * | operator-> () const |
xRooNode & | operator= (const TObject &o) |
std::shared_ptr< xRooNode > | operator[] (const std::string &name) |
std::shared_ptr< xRooNode > | operator[] (size_t idx) |
std::shared_ptr< xRooNode > | parentPdf () const |
like a parent but only for use by getObject | |
xRooNode | pars () const |
List of parameters (non-observables) of this node. | |
xRooNode | poi () const |
List of parameters of interest: parameters marked as "of interest" These parameters have the "poi" attribute. | |
xRooNode | pp () const |
List of prespecified parameters: non-floatable parameters. | |
void | Print (Option_t *opt="") const override |
Print TNamed name and title. | |
xRooNode | reduced (const std::string &range="", bool invert=false) const |
xRooNode | Remove (const xRooNode &child) |
xRooNode | Replace (const xRooNode &node) |
xRooNode | robs () const |
List of regular observables of this node. | |
void | SaveAs (const char *filename="", Option_t *option="") const override |
Save this object in the file specified by filename. | |
bool | SetBinContent (int bin, double value, const char *par=nullptr, double parVal=1) |
bool | SetBinData (int bin, double value, const xRooNode &data="obsData") |
bool | SetBinError (int bin, double value) |
void | SetChecked (bool val=true) |
bool | SetContent (double value) |
bool | SetContent (double value, const char *par, double parVal=1) |
bool | SetContents (const TObject &obj) |
bool | SetContents (const TObject &obj, const char *par, double parVal) |
bool | SetData (const TObject &obj, const xRooNode &data="obsData") |
void | SetFitResult (const RooFitResult *fr=nullptr) |
void | SetFitResult (const std::shared_ptr< const RooFitResult > &fr) |
void | SetFitResult (const xRooNode &fr) |
void | SetHidden (bool set=true) |
void | SetName (const char *name) override |
Set the name of the TNamed. | |
void | SetRange (const char *range, double low=std::numeric_limits< double >::quiet_NaN(), double high=std::numeric_limits< double >::quiet_NaN()) |
void | SetTitle (const char *title) override |
Set the title of the TNamed. | |
bool | SetXaxis (const char *name, const char *title, int nbins, const double *bins) |
bool | SetXaxis (const char *name, const char *title, int nbins, double low, double high) |
bool | SetXaxis (const char *title, int nbins, const double *bins) |
bool | SetXaxis (const char *title, int nbins, double low, double high) |
bool | SetXaxis (const RooAbsBinning &binning) |
bool | SetXaxis (int nbins, const double *bins) |
bool | SetXaxis (int nbins, double low, double high) |
bool | SetXaxis (TAxis *ax) |
void | Streamer (TBuffer &) override |
Stream an object of class TObject. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
std::shared_ptr< TStyle > | style (TObject *initObject=nullptr, bool autoCreate=true) const |
xRooNode | styles (TObject *initObject=nullptr, bool autoCreate=true) const |
xRooNode | variations () const |
xRooNode | vars () const |
List of variables (observables and parameters) of this node. | |
xRooNode | Vary (const xRooNode &child) |
RooWorkspace * | ws () const |
The RooWorkspace this node belong to, if any. | |
template<typename T > | |
T * | xget () const |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TNamed &named) | |
TNamed copy ctor. | |
TNamed (const TString &name, const TString &title) | |
virtual | ~TNamed () |
TNamed destructor. | |
void | Clear (Option_t *option="") override |
Set name and title to empty strings (""). | |
TObject * | Clone (const char *newname="") const override |
Make a clone of an object using the Streamer facility. | |
Int_t | Compare (const TObject *obj) const override |
Compare two TNamed objects. | |
void | Copy (TObject &named) const override |
Copy this to obj. | |
virtual void | FillBuffer (char *&buffer) |
Encode TNamed into output buffer. | |
const char * | GetName () const override |
Returns name of object. | |
const char * | GetTitle () const override |
Returns title of object. | |
ULong_t | Hash () const override |
Return hash value for this object. | |
Bool_t | IsSortable () const override |
void | ls (Option_t *option="") const override |
List TNamed name and title. | |
TNamed & | operator= (const TNamed &rhs) |
TNamed assignment operator. | |
virtual void | SetNameTitle (const char *name, const char *title) |
Set all the TNamed parameters (name and title). | |
virtual Int_t | Sizeof () const |
Return size of the TNamed part of the TObject. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. | |
TObject (const TObject &object) | |
TObject copy ctor. | |
virtual | ~TObject () |
TObject destructor. | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. | |
ULong_t | CheckedHash () |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. | |
virtual void | Delete (Option_t *option="") |
Delete this object. | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1) . | |
virtual void | Dump () const |
Dump contents of object on stdout. | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. | |
virtual void | Execute (const char *method, const char *params, Int_t *error=nullptr) |
Execute method on this object with the given parameter string, e.g. | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr) |
Execute method on this object with parameters stored in the TObjArray. | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). | |
virtual Option_t * | GetOption () const |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. | |
Bool_t | HasInconsistentHash () const |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. | |
void | InvertBit (UInt_t f) |
Bool_t | IsDestructed () const |
IsDestructed. | |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification (the base implementation is no-op). | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. | |
void | operator delete (void *ptr) |
Operator delete. | |
void | operator delete (void *ptr, void *vp) |
Only called by placement new when throwing an exception. | |
void | operator delete[] (void *ptr) |
Operator delete []. | |
void | operator delete[] (void *ptr, void *vp) |
Only called by placement new[] when throwing an exception. | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. | |
void | ResetBit (UInt_t f) |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". | |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. | |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. | |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. | |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. | |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static void | Interactive_PLLPlot () |
static void | Interactive_Pull () |
Static Public Member Functions inherited from TNamed | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static Longptr_t | GetDtorOnly () |
Return destructor only flag. | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. | |
Public Attributes | |
bool | fAcquirer = false |
int | fBinNumber = -1 |
std::vector< std::shared_ptr< xRooNode > > | fBrowsables |
std::function< xRooNode(xRooNode *) | fBrowseOperation ) |
std::shared_ptr< TObject > | fComp |
std::string | fFolder |
bool | fInterrupted = false |
appears that if was fXaxis then dialog box for SetXaxis will take as current value | |
std::shared_ptr< xRooNode > | fParent |
std::shared_ptr< xRooNode > | fProvider |
std::string | fRange |
int | fTimes = 1 |
std::shared_ptr< TAxis > | fXAxis |
only here so can have char* GetRange return so can return nullptr for no range set (required for RooCategory) | |
Static Public Attributes | |
static std::map< std::string, std::tuple< std::function< double(double, double, double)>, bool > > | auxFunctions |
static InteractiveObject * | gIntObj = nullptr |
Private Member Functions | |
template<typename T > | |
xRooNode (const char *name, const char *title) | |
xRooNode (const char *name, const std::shared_ptr< TObject > &comp, const xRooNode &parent) | |
xRooNode (const char *name, const TObject &comp, const std::shared_ptr< xRooNode > &parent) | |
xRooNode (const char *name, const TObject &comp, const xRooNode &parent) | |
template<typename T > | |
xRooNode (const std::shared_ptr< const T > &comp, const std::shared_ptr< xRooNode > &parent=nullptr) | |
template<typename T > | |
xRooNode (const std::shared_ptr< const T > &comp, const xRooNode &parent) | |
template<typename T > | |
xRooNode (const std::shared_ptr< T > &comp, const std::shared_ptr< xRooNode > &parent=nullptr) | |
template<typename T > | |
xRooNode (const std::shared_ptr< T > &comp, const xRooNode &parent) | |
xRooNode (const std::shared_ptr< TObject > &comp, const std::shared_ptr< xRooNode > &parent=nullptr) | |
xRooNode (const TObject &comp, const std::shared_ptr< xRooNode > &parent=nullptr) | |
xRooNode (const TObject &comp, const xRooNode &parent) | |
xRooNode (double value) | |
void | _Add_ (const char *name, const char *opt) |
xRooNode | _Constrain_ (const char *what) |
void | _fit_ (const char *constParValues="") |
void | _generate_ (const char *name="", bool expected=false) |
bool | _IsShowVars_ () const |
xRooNode | _Multiply_ (const char *what) |
void | _scan_ (const char *what="plr", double nToys=0, const char *xvar="", int nPointsX=0, double lowX=0, double highX=0, const char *constParValues="") |
void | _SetBinContent_ (int bin, double value, const char *par="", double parVal=1) |
void | _SetContent_ (double value) |
void | _ShowVars_ (bool set=true) |
void | _Vary_ (const char *what) |
template<typename T , typename... Args> | |
std::shared_ptr< T > | acquire (Args &&...args) |
std::shared_ptr< TObject > | acquire (const std::shared_ptr< TObject > &arg, bool checkFactory=false, bool mustBeNew=false) |
template<typename T , typename T2 , typename... Args> | |
std::shared_ptr< T > | acquire2 (Args &&...args) |
template<typename T , typename... Args> | |
std::shared_ptr< T > | acquireNew (Args &&...args) |
xRooNode & | browse () |
std::shared_ptr< TObject > | convertForAcquisition (xRooNode &acquirer, const char *opt="") const |
xRooNode | filter (const xRooNode &range) const |
std::shared_ptr< xRooNode > | getBrowsable (const char *name) const |
const char * | GetIconName () const override |
Returns mime type name of object. | |
TGListTree * | GetListTree (TBrowser *b) const |
const char * | GetNodeType () const |
template<typename T > | |
std::shared_ptr< T > | getObject (const std::string &name) const |
std::shared_ptr< TObject > | getObject (const std::string &name, const std::string &type="") const |
std::string | GetPath () const |
TGListTreeItem * | GetTreeItem (TBrowser *b) const |
xRooNode | histo (const xRooNode &vars="x", const xRooNode &fr="", bool content=true, bool errors=true, bool stack=true, bool errorsHi=false, bool errorsLo=false, int nErrorToys=0) const |
bool | IsFolder () const override |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). | |
operator bool () const | |
xRooNode | shallowCopy (const std::string &name, std::shared_ptr< xRooNode > parent=nullptr) |
void | sterilize () const |
TObject * | xget () const |
Static Private Member Functions | |
static bool | isNull (const std::shared_ptr< xRooNode > &x) |
static void | SetAuxFunction (const char *title, const std::function< double(double, double, double)> &func, bool symmetrize=false) |
Additional Inherited Members | |
Public Types inherited from TObject | |
enum | { kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 , kBitMask = 0x00ffffff } |
enum | { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) } |
enum | EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) } |
enum | EStatusBits { kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) , kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 )) } |
Protected Types inherited from TObject | |
enum | { kOnlyPrepStep = (1ULL << ( 3 )) } |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). | |
void | MakeZombie () |
Protected Attributes inherited from TNamed | |
TString | fName |
TString | fTitle |
#include <RooFit/xRooFit/xRooNode.h>
ROOT::Experimental::XRooFit::xRooNode::xRooNode | ( | const char * | type, |
const char * | name, | ||
const char * | title = "" ) |
|
inlineprivate |
Definition at line 75 of file xRooNode.h.
xRooNode::xRooNode | ( | const char * | name = "", |
const std::shared_ptr< TObject > & | comp = nullptr, | ||
const std::shared_ptr< xRooNode > & | parent = nullptr ) |
Definition at line 258 of file xRooNode.cxx.
|
inlineprivate |
Definition at line 85 of file xRooNode.h.
|
inlineprivate |
Definition at line 91 of file xRooNode.h.
|
inlineprivate |
Definition at line 97 of file xRooNode.h.
|
private |
Definition at line 460 of file xRooNode.cxx.
|
inlineprivate |
Definition at line 104 of file xRooNode.h.
|
private |
Definition at line 475 of file xRooNode.cxx.
|
inlineprivate |
Definition at line 109 of file xRooNode.h.
|
inlineprivate |
Definition at line 115 of file xRooNode.h.
|
inlineprivate |
Definition at line 121 of file xRooNode.h.
|
inlineprivate |
Definition at line 127 of file xRooNode.h.
|
private |
Definition at line 488 of file xRooNode.cxx.
|
override |
Definition at line 2304 of file xRooNode.cxx.
Definition at line 1341 of file xRooNode.cxx.
Definition at line 338 of file xRooNode.h.
|
private |
Definition at line 3660 of file xRooNode.cxx.
Definition at line 3737 of file xRooNode.cxx.
|
private |
Definition at line 831 of file xRooNode.cxx.
Definition at line 334 of file xRooNode.h.
|
private |
Definition at line 3752 of file xRooNode.cxx.
|
private |
Definition at line 3822 of file xRooNode.cxx.
|
private |
Definition at line 3832 of file xRooNode.cxx.
Definition at line 813 of file xRooNode.cxx.
|
private |
Definition at line 1350 of file xRooNode.cxx.
|
inlineprivate |
Definition at line 260 of file xRooNode.h.
|
private |
Definition at line 4734 of file xRooNode.cxx.
|
inlineprivate |
Definition at line 268 of file xRooNode.h.
|
inlineprivate |
Definition at line 274 of file xRooNode.h.
Definition at line 1533 of file xRooNode.cxx.
RooArgList xRooNode::argList | ( | ) | const |
Definition at line 6155 of file xRooNode.cxx.
std::shared_ptr< xRooNode > xRooNode::at | ( | const std::string & | name, |
bool | browseResult = true ) const |
Definition at line 4357 of file xRooNode.cxx.
|
inline |
Definition at line 147 of file xRooNode.h.
|
inline |
Definition at line 200 of file xRooNode.h.
xRooNode xRooNode::bins | ( | ) | const |
bins of a channel or sample, or channels of a multi-channel pdf
Definition at line 5825 of file xRooNode.cxx.
|
private |
Definition at line 5141 of file xRooNode.cxx.
|
overridevirtual |
Browse object. May be overridden for another default action.
Reimplemented from TObject.
Definition at line 566 of file xRooNode.cxx.
TGraph * xRooNode::BuildGraph | ( | RooAbsLValue * | v = nullptr, |
bool | includeZeros = false, | ||
TVirtualPad * | fromPad = nullptr ) const |
Definition at line 6296 of file xRooNode.cxx.
TH1 * xRooNode::BuildHistogram | ( | RooAbsLValue * | v = nullptr, |
bool | empty = false, | ||
bool | errors = false, | ||
int | binStart = 1, | ||
int | binEnd = 0, | ||
const xRooNode & | fr = "", | ||
bool | errorsHi = false, | ||
bool | errorsLo = false, | ||
int | nErrorToys = 0, | ||
TH1 * | templateHist = nullptr, | ||
bool | nostack = true, | ||
bool | setInterp = false ) const |
Definition at line 7898 of file xRooNode.cxx.
Definition at line 490 of file xRooNode.cxx.
|
inlinestaticconstexpr |
Definition at line 531 of file xRooNode.h.
Definition at line 5886 of file xRooNode.cxx.
Definition at line 2327 of file xRooNode.cxx.
xRooNode xRooNode::components | ( | ) | const |
Definition at line 5686 of file xRooNode.cxx.
Definition at line 2578 of file xRooNode.cxx.
xRooNode xRooNode::constraints | ( | ) | const |
Definition at line 4380 of file xRooNode.cxx.
xRooNode xRooNode::consts | ( | ) | const |
List of parameters that are currently constant.
Definition at line 5490 of file xRooNode.cxx.
Definition at line 4942 of file xRooNode.cxx.
std::vector< double > xRooNode::contents | ( | ) | const |
Definition at line 11508 of file xRooNode.cxx.
|
private |
Definition at line 4494 of file xRooNode.cxx.
Definition at line 1270 of file xRooNode.cxx.
TMatrixDSym xRooNode::covariances | ( | const xRooNode & | fr = "" | ) | const |
Definition at line 11518 of file xRooNode.cxx.
xRooNode xRooNode::datasets | ( | ) | const |
Definition at line 6166 of file xRooNode.cxx.
Definition at line 531 of file xRooNode.h.
|
overridevirtual |
Default Draw method for all objects.
Reimplemented from TObject.
Definition at line 9128 of file xRooNode.cxx.
|
inline |
Definition at line 201 of file xRooNode.h.
xRooNode xRooNode::factors | ( | ) | const |
Definition at line 6005 of file xRooNode.cxx.
Definition at line 7893 of file xRooNode.cxx.
std::shared_ptr< xRooNode > xRooNode::find | ( | const std::string & | name, |
bool | browseResult = true ) const |
Definition at line 4947 of file xRooNode.cxx.
Definition at line 6549 of file xRooNode.cxx.
xRooNode xRooNode::floats | ( | ) | const |
List of parameters that are currently non-constant These parameters do not have the "Constant" attribute.
Definition at line 5507 of file xRooNode.cxx.
Definition at line 6879 of file xRooNode.cxx.
|
inline |
Definition at line 231 of file xRooNode.h.
|
inline |
Definition at line 233 of file xRooNode.h.
Definition at line 389 of file xRooNode.h.
Definition at line 8845 of file xRooNode.cxx.
Definition at line 8829 of file xRooNode.cxx.
double xRooNode::GetBinError | ( | int | bin, |
const xRooNode & | fr = "", | ||
int | nToys = 0, | ||
bool | errorsHi = false, | ||
bool | errorsLo = false ) const |
Definition at line 11500 of file xRooNode.cxx.
|
inline |
Definition at line 405 of file xRooNode.h.
|
inline |
Definition at line 409 of file xRooNode.h.
std::vector< double > xRooNode::GetBinErrors | ( | int | binStart = 1, |
int | binEnd = 0, | ||
const xRooNode & | fr = "", | ||
int | nToys = 0, | ||
bool | errorsHi = false, | ||
bool | errorsLo = false ) const |
Definition at line 11645 of file xRooNode.cxx.
|
inline |
Definition at line 397 of file xRooNode.h.
|
inline |
Definition at line 401 of file xRooNode.h.
Definition at line 6287 of file xRooNode.cxx.
|
inline |
Definition at line 415 of file xRooNode.h.
Definition at line 420 of file xRooNode.h.
Definition at line 416 of file xRooNode.h.
|
overrideprivatevirtual |
Returns mime type name of object.
Used by the TBrowser (via TGMimeTypes class). Override for class of which you would like to have different icons for objects of the same class.
Reimplemented from TObject.
Definition at line 1150 of file xRooNode.cxx.
|
private |
Definition at line 5090 of file xRooNode.cxx.
|
private |
Definition at line 1249 of file xRooNode.cxx.
|
inlineprivate |
Definition at line 282 of file xRooNode.h.
|
private |
Definition at line 919 of file xRooNode.cxx.
|
private |
Definition at line 2297 of file xRooNode.cxx.
const char * xRooNode::GetRange | ( | ) | const |
Definition at line 6836 of file xRooNode.cxx.
|
private |
Definition at line 5065 of file xRooNode.cxx.
TAxis * xRooNode::GetXaxis | ( | ) | const |
Definition at line 992 of file xRooNode.cxx.
xRooNode xRooNode::globs | ( | ) | const |
List of global observables of this node.
Definition at line 5438 of file xRooNode.cxx.
|
private |
Definition at line 7867 of file xRooNode.cxx.
|
overridevirtual |
Dump contents of this object in a graphics canvas.
Same action as Dump but in a graphical form. In addition pointers to other objects can be followed.
The following picture is the Inspect of a histogram object:
Reimplemented from TObject.
Definition at line 8928 of file xRooNode.cxx.
std::pair< double, double > xRooNode::IntegralAndError | ( | const xRooNode & | fr = "", |
const char * | rangeName = nullptr ) const |
Definition at line 11572 of file xRooNode.cxx.
|
static |
Definition at line 145 of file xRooNode_interactive.cxx.
|
static |
Definition at line 30 of file xRooNode_interactive.cxx.
|
inlineoverridevirtual |
Reimplemented from TNamed.
Definition at line 531 of file xRooNode.h.
|
overrideprivatevirtual |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Reimplemented from TObject.
Definition at line 840 of file xRooNode.cxx.
bool xRooNode::IsHidden | ( | ) | const |
Definition at line 2319 of file xRooNode.cxx.
|
inlinestaticprivate |
Definition at line 65 of file xRooNode.h.
xRooNode xRooNode::mainChild | ( | ) | const |
Definition at line 8906 of file xRooNode.cxx.
Definition at line 2717 of file xRooNode.cxx.
xRooNLLVar xRooNode::nll | ( | const char * | _data, |
std::initializer_list< RooCmdArg > | nllOpts = {} ) const |
Definition at line 6850 of file xRooNode.cxx.
xRooNLLVar ROOT::Experimental::XRooFit::xRooNode::nll | ( | const xRooNode & | _data, |
const RooLinkedList & | nllOpts ) const |
xRooNLLVar xRooNode::nll | ( | const xRooNode & | _data, |
std::initializer_list< RooCmdArg > | nllOpts ) const |
Definition at line 6860 of file xRooNode.cxx.
xRooNLLVar xRooNode::nll | ( | const xRooNode & | _data = "" | ) | const |
Definition at line 6855 of file xRooNode.cxx.
xRooNode xRooNode::np | ( | ) | const |
List of nuisance parameters: non-constant parameters that are not marked of interest, as well as any parameters that have been marked by the "np" attribute.
Definition at line 5541 of file xRooNode.cxx.
xRooNode xRooNode::obs | ( | ) | const |
List of observables (global and regular) of this node.
Definition at line 5422 of file xRooNode.cxx.
|
inlineexplicitprivate |
Definition at line 144 of file xRooNode.h.
|
inline |
Definition at line 250 of file xRooNode.h.
Definition at line 3563 of file xRooNode.cxx.
Definition at line 5004 of file xRooNode.cxx.
|
inline |
Definition at line 164 of file xRooNode.h.
std::shared_ptr< xRooNode > xRooNode::parentPdf | ( | ) | const |
like a parent but only for use by getObject
Definition at line 7165 of file xRooNode.cxx.
xRooNode xRooNode::pars | ( | ) | const |
List of parameters (non-observables) of this node.
Definition at line 5470 of file xRooNode.cxx.
xRooNode xRooNode::poi | ( | ) | const |
List of parameters of interest: parameters marked as "of interest" These parameters have the "poi" attribute.
Definition at line 5524 of file xRooNode.cxx.
xRooNode xRooNode::pp | ( | ) | const |
List of prespecified parameters: non-floatable parameters.
Definition at line 5559 of file xRooNode.cxx.
|
overridevirtual |
Print TNamed name and title.
Reimplemented from TNamed.
Definition at line 2421 of file xRooNode.cxx.
Definition at line 7175 of file xRooNode.cxx.
Definition at line 1360 of file xRooNode.cxx.
Definition at line 3178 of file xRooNode.cxx.
xRooNode xRooNode::robs | ( | ) | const |
List of regular observables of this node.
Definition at line 5454 of file xRooNode.cxx.
Save this object in the file specified by filename.
otherwise the object is written to filename as a CINT/C++ script. The C++ code to rebuild this object is generated via SavePrimitive(). The "option" parameter is passed to SavePrimitive. By default it is an empty string. It can be used to specify the Draw option in the code generated by SavePrimitive.
The function is available via the object context menu.
Reimplemented from TObject.
Definition at line 11411 of file xRooNode.cxx.
|
staticprivate |
Definition at line 216 of file xRooNode.cxx.
bool xRooNode::SetBinContent | ( | int | bin, |
double | value, | ||
const char * | par = nullptr, | ||
double | parVal = 1 ) |
Definition at line 3904 of file xRooNode.cxx.
Definition at line 4161 of file xRooNode.cxx.
Definition at line 4189 of file xRooNode.cxx.
Definition at line 468 of file xRooNode.h.
Definition at line 3541 of file xRooNode.cxx.
bool ROOT::Experimental::XRooFit::xRooNode::SetContent | ( | double | value, |
const char * | par, | ||
double | parVal = 1 ) |
Definition at line 347 of file xRooNode.h.
|
inline |
Definition at line 356 of file xRooNode.h.
Definition at line 4175 of file xRooNode.cxx.
void xRooNode::SetFitResult | ( | const RooFitResult * | fr = nullptr | ) |
Definition at line 6515 of file xRooNode.cxx.
|
inline |
Definition at line 436 of file xRooNode.h.
Definition at line 6541 of file xRooNode.cxx.
Definition at line 2309 of file xRooNode.cxx.
|
overridevirtual |
Set the name of the TNamed.
WARNING: if the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.
Reimplemented from TNamed.
Definition at line 5116 of file xRooNode.cxx.
void xRooNode::SetRange | ( | const char * | range, |
double | low = std::numeric_limits<double>::quiet_NaN(), | ||
double | high = std::numeric_limits<double>::quiet_NaN() ) |
Definition at line 6820 of file xRooNode.cxx.
|
overridevirtual |
Set the title of the TNamed.
Reimplemented from TNamed.
Definition at line 5130 of file xRooNode.cxx.
Definition at line 4870 of file xRooNode.cxx.
bool xRooNode::SetXaxis | ( | const char * | name, |
const char * | title, | ||
int | nbins, | ||
double | low, | ||
double | high ) |
Definition at line 4863 of file xRooNode.cxx.
|
inline |
Definition at line 378 of file xRooNode.h.
|
inline |
Definition at line 374 of file xRooNode.h.
bool xRooNode::SetXaxis | ( | const RooAbsBinning & | binning | ) |
Definition at line 4877 of file xRooNode.cxx.
Definition at line 380 of file xRooNode.h.
Definition at line 379 of file xRooNode.h.
Definition at line 4931 of file xRooNode.cxx.
|
private |
Definition at line 2367 of file xRooNode.cxx.
|
private |
Definition at line 7808 of file xRooNode.cxx.
|
overridevirtual |
|
inline |
Definition at line 531 of file xRooNode.h.
std::shared_ptr< TStyle > xRooNode::style | ( | TObject * | initObject = nullptr, |
bool | autoCreate = true ) const |
Definition at line 4672 of file xRooNode.cxx.
Definition at line 4677 of file xRooNode.cxx.
xRooNode xRooNode::variations | ( | ) | const |
Definition at line 6094 of file xRooNode.cxx.
xRooNode xRooNode::vars | ( | ) | const |
List of variables (observables and parameters) of this node.
Definition at line 5576 of file xRooNode.cxx.
Definition at line 3226 of file xRooNode.cxx.
RooWorkspace * xRooNode::ws | ( | ) | const |
The RooWorkspace this node belong to, if any.
Definition at line 4368 of file xRooNode.cxx.
|
inlineprivate |
Definition at line 238 of file xRooNode.h.
|
inline |
Definition at line 240 of file xRooNode.h.
|
static |
Definition at line 58 of file xRooNode.h.
Definition at line 517 of file xRooNode.h.
int ROOT::Experimental::XRooFit::xRooNode::fBinNumber = -1 |
Definition at line 502 of file xRooNode.h.
std::vector<std::shared_ptr<xRooNode> > ROOT::Experimental::XRooFit::xRooNode::fBrowsables |
Definition at line 525 of file xRooNode.h.
Definition at line 526 of file xRooNode.h.
|
mutable |
Definition at line 500 of file xRooNode.h.
std::string ROOT::Experimental::XRooFit::xRooNode::fFolder |
Definition at line 504 of file xRooNode.h.
appears that if was fXaxis then dialog box for SetXaxis will take as current value
Definition at line 515 of file xRooNode.h.
std::shared_ptr<xRooNode> ROOT::Experimental::XRooFit::xRooNode::fParent |
Definition at line 503 of file xRooNode.h.
std::shared_ptr<xRooNode> ROOT::Experimental::XRooFit::xRooNode::fProvider |
Definition at line 518 of file xRooNode.h.
|
mutable |
Definition at line 509 of file xRooNode.h.
int ROOT::Experimental::XRooFit::xRooNode::fTimes = 1 |
Definition at line 501 of file xRooNode.h.
|
mutable |
only here so can have char* GetRange return so can return nullptr for no range set (required for RooCategory)
Definition at line 513 of file xRooNode.h.
|
static |
Definition at line 498 of file xRooNode.h.