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

Abstract base class for objects that represent a discrete value that can be set from the outside, i.e.

that may appear on the left hand side of an assignment ("*lvalue*").

Each implementation must provide the functions setIndex()/setLabel() to allow direct modification of the value. RooAbsCategoryLValue may be derived, but its functional relation to other RooAbsArgs must be invertible.

Definition at line 26 of file RooAbsCategoryLValue.h.

Public Types

enum  { kSingleKey = (1ULL << (0)) , kOverwrite = (1ULL << (1)) , kWriteDelete = (1ULL << (2)) }
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
enum  CacheMode { Always = 0 , NotAdvised = 1 , Never = 2 }
enum  ConstOpCode { Activate = 0 , DeActivate = 1 , ConfigChange = 2 , ValueChange = 3 }
enum  ContentsOption {
  kName =1 , kClassName =2 , kValue =4 , kArgs =8 ,
  kExtras =16 , kAddress =32 , kTitle =64 , kCollectionHeader =128
}
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))
}
enum  OperMode { Auto = 0 , AClean = 1 , ADirty = 2 }
using RefCountList_t = RooSTLRefCountList<RooAbsArg>
using RefCountListLegacyIterator_t = TIteratorToSTLInterface<RefCountList_t::Container_t>
enum  StyleOption {
  kInline =1 , kSingleLine =2 , kStandard =3 , kVerbose =4 ,
  kTreeStructure =5
}
using value_type = int
 The type used to denote a specific category state.

Public Member Functions

 RooAbsCategoryLValue ()
 RooAbsCategoryLValue (const char *name, const char *title)
 Constructor.
 RooAbsCategoryLValue (const RooAbsCategoryLValue &other, const char *name=nullptr)
 Copy constructor.
void AbstractMethod (const char *method) const
 Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.
bool addOwnedComponents (const RooAbsCollection &comps)
 Take ownership of the contents of 'comps'.
bool addOwnedComponents (RooAbsCollection &&comps)
 Take ownership of the contents of 'comps'.
bool addOwnedComponents (RooArgList &&comps)
 Take ownership of the contents of 'comps'.
template<typename... Args_t>
bool addOwnedComponents (std::unique_ptr< Args_t >... comps)
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
virtual void applyWeightSquared (bool flag)
 Disables or enables the usage of squared weights.
void attachArgs (const RooAbsCollection &set)
 Bind this node to objects in set.
void attachDataSet (const RooAbsData &set)
 Replace server nodes with names matching the dataset variable names with those data set variables, making this PDF directly dependent on the dataset.
void attachDataStore (const RooAbsDataStore &set)
 Replace server nodes with names matching the dataset variable names with those data set variables, making this PDF directly dependent on the dataset.
const std::set< std::string > & attributes () const
std::map< std::string, value_type >::const_iterator begin () const
 Iterator for category state names. Points to pairs of index and name.
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
virtual bool canComputeBatchWithCuda () const
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 bool checkObservables (const RooArgSet *nset) const
 Overloadable function in which derived classes can implement consistency checks of the variables.
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
void Clear (Option_t *option="") override
 Set name and title to empty strings ("").
TObjectClone (const char *newname=nullptr) const override
 Make a clone of an object using the Streamer facility.
virtual TObjectclone (const char *newname=nullptr) const =0
virtual RooAbsArgcloneTree (const char *newname=nullptr) const
 Clone tree expression of objects.
Int_t Compare (const TObject *other) const override
 Utility function used by TCollection::Sort to compare contained TObjects We implement comparison by name, resulting in alphabetical sorting by object name.
virtual std::unique_ptr< RooAbsArgcompileForNormSet (RooArgSet const &normSet, RooFit::Detail::CompileContext &ctx) const
void Copy (TObject &named) const override
 Copy this to obj.
RooFit::OwningPtr< RooAbsArgcreateFundamental (const char *newname=nullptr) const override
 Create a RooCategory fundamental object with our properties.
Roo1DTablecreateTable (const char *label) const
 Create a table matching the shape of this category.
std::size_t dataToken () const
 Returns the token for retrieving results in the BatchMode. For internal use only.
Int_t defaultPrintContents (Option_t *opt) const override
 Define default contents to print.
virtual StyleOption defaultPrintStyle (Option_t *opt) const
virtual void Delete (Option_t *option="")
 Delete this object.
bool dependsOn (const RooAbsArg &server, const RooAbsArg *ignoreArg=nullptr, bool valueOnly=false) const
 Test whether we depend on (ie, are served by) the specified object.
bool dependsOn (const RooAbsCollection &serverList, const RooAbsArg *ignoreArg=nullptr, bool valueOnly=false) const
 Test whether we depend on (ie, are served by) any object in the specified collection.
bool dependsOn (TNamed const *namePtr, const RooAbsArg *ignoreArg=nullptr, bool valueOnly=false) const
 Test whether we depend on (ie, are served by) an object with a specific name.
bool dependsOnValue (const RooAbsArg &server, const RooAbsArg *ignoreArg=nullptr) const
 Check whether this object depends on values served from the object passed as server.
bool dependsOnValue (const RooAbsCollection &serverList, const RooAbsArg *ignoreArg=nullptr) const
 Check whether this object depends on values from an element in the serverList.
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
virtual TObjectDrawClone (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.
bool empty () const
 If there are no states defined.
std::map< std::string, value_type >::const_iterator end () const
 Iterator for category state names. Points to pairs of index and name.
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 void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
bool getAttribute (const Text_t *name) const
 Check if a named attribute is set. By default, all attributes are unset.
Int_t getBin (const char *=nullptr) const override
 Get the index of the plot bin for the current value of this category.
Int_t getBin (const RooAbsBinning *) const override
std::list< std::string > getBinningNames () const override
const RooAbsBinninggetBinningPtr (const char *) const override
double getBinWidth (Int_t, const char *=nullptr) const override
RooFit::OwningPtr< RooArgSetgetComponents () const
 Create a RooArgSet with all components (branch nodes) of the expression tree headed by this object.
virtual value_type getCurrentIndex () const
 Return index number of current state.
virtual const char * getCurrentLabel () const
 Return label string of current state.
unsigned int getCurrentOrdinalNumber () const
 Return ordinal number of the current state.
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
virtual const char * GetIconName () const
 Returns mime type name of object.
const char * GetName () const override
 Returns name of object.
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
bool getObservables (const RooAbsCollection *depList, RooArgSet &outputSet, bool valueOnly=true) const
 Create a list of leaf nodes in the arg tree starting with ourself as top node that match any of the names the args in the supplied argset.
RooFit::OwningPtr< RooArgSetgetObservables (const RooAbsData &data) const
 Return the observables of this pdf given the observables defined by data.
RooFit::OwningPtr< RooArgSetgetObservables (const RooAbsData *data) const
 Create a list of leaf nodes in the arg tree starting with ourself as top node that match any of the names of the variable list of the supplied data set (the dependents).
RooFit::OwningPtr< RooArgSetgetObservables (const RooArgSet &set, bool valueOnly=true) const
 Given a set of possible observables, return the observables that this PDF depends on.
RooFit::OwningPtr< RooArgSetgetObservables (const RooArgSet *depList, bool valueOnly=true) const
 Create a list of leaf nodes in the arg tree starting with ourself as top node that match any of the names the args in the supplied argset.
virtual Option_tGetOption () const
const std::map< std::string, value_type >::value_typegetOrdinal (unsigned int n) const
 Return name and index of the nth defined state.
RooFit::OwningPtr< RooArgSetgetParameters (const RooAbsData &data, bool stripDisconnected=true) const
 Return the parameters of this p.d.f when used in conjunction with dataset 'data'.
RooFit::OwningPtr< RooArgSetgetParameters (const RooAbsData *data, bool stripDisconnected=true) const
 Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of the names of the variable list of the supplied data set (the dependents).
RooFit::OwningPtr< RooArgSetgetParameters (const RooArgSet &observables, bool stripDisconnected=true) const
 Return the parameters of the p.d.f given the provided set of observables.
RooFit::OwningPtr< RooArgSetgetParameters (const RooArgSet *observables, bool stripDisconnected=true) const
 Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of the names the args in the supplied argset.
virtual bool getParameters (const RooArgSet *observables, RooArgSet &outputSet, bool stripDisconnected=true) const
 Fills a list with leaf nodes in the arg tree starting with ourself as top node that don't match any of the names the args in the supplied argset.
RooAbsProxygetProxy (Int_t index) const
 Return the nth proxy from the proxy list.
const Text_tgetStringAttribute (const Text_t *key) const
 Get string attribute mapped under key 'key'.
const char * GetTitle () const override
 Returns title of object.
bool getTransientAttribute (const Text_t *name) const
 Check if a named attribute is set.
virtual UInt_t GetUniqueID () const
 Return the unique object id.
RooFit::OwningPtr< RooArgSetgetVariables (bool stripDisconnected=true) const
 Return RooArgSet with all variables (tree leaf nodes of expression tree).
void graphVizTree (const char *fileName, const char *delimiter="\n", bool useTitle=false, bool useLatex=false)
 Create a GraphViz .dot file visualizing the expression tree headed by this RooAbsArg object.
void graphVizTree (std::ostream &os, const char *delimiter="\n", bool useTitle=false, bool useLatex=false)
 Write the GraphViz representation of the expression tree headed by this RooAbsArg object to the given ostream.
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
bool hasClients () const
bool hasDataToken () const
ULong_t Hash () const override
 Return hash value for this object.
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.
bool hasIndex (value_type index) const
 Check if a state with index index exists.
bool hasLabel (const std::string &label) const
 Check if a state with name label exists.
virtual bool hasRange (const char *) const
virtual bool importWorkspaceHook (RooWorkspace &ws)
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.
virtual bool inRange (const char *) const
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
void InvertBit (UInt_t f)
TClassIsA () const override
bool isCategory () const override
bool isConstant () const
 Check if the "Constant" attribute is set.
virtual bool isDerived () const
 Does value or shape of this arg depend on any other arg?
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).
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
bool isIdentical (const RooAbsArg &other, bool assumeSameType=false) const override
virtual bool isIntegrationSafeLValue (const RooArgSet *) const
bool isLValue () const override
 Is this argument an l-value, i.e., can it appear on the left-hand side of an assignment expression?
Bool_t IsOnHeap () const
virtual bool isReducerNode () const
bool isSignType (bool mustHaveZero=false) const
 Determine if category has 2 or 3 states with index values -1,0,1.
bool IsSortable () const override
Bool_t IsZombie () const
bool localNoDirtyInhibit () const
value_type lookupIndex (const std::string &stateName) const
 Find the index number corresponding to the state name.
const std::string & lookupName (value_type index) const
 Get the name corresponding to the given index.
void ls (Option_t *option="") const override
 List TNamed name and title.
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).
const TNamednamePtr () const
 De-duplicated pointer to this object's name.
virtual Bool_t Notify ()
 This method must be overridden to handle object notification (the base implementation is no-op).
Int_t numBins (const char *rangeName=nullptr) const override
 Return the number of fit bins ( = number of types ).
Int_t numProxies () const
 Return the number of registered proxies.
bool observableOverlaps (const RooAbsData *dset, const RooAbsArg &testArg) const
 Test if any of the dependents of the arg tree (as determined by getObservables) overlaps with those of the testArg.
bool observableOverlaps (const RooArgSet *depList, const RooAbsArg &testArg) const
 Test if any of the dependents of the arg tree (as determined by getObservables) overlaps with those of the testArg.
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
void operator delete (void *, size_t)
 Operator delete for sized deallocation.
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 *, size_t)
 Operator delete [] for sized deallocation.
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)
bool operator!= (const char *label)
bool operator!= (const RooAbsArg &other)
bool operator!= (value_type index)
RooAbsArgoperator= (const char *label)
 Assignment operator from string pointer.
RooAbsArgoperator= (const RooAbsCategory &other)
 Assignment from another RooAbsCategory.
RooAbsArgoperator= (int index)
 Assignment operator from integer index number.
bool operator== (const char *label) const
 Equality operator with a string (compares with state label string).
bool operator== (const RooAbsArg &other) const override
 Equality operator with another RooAbsArg.
bool operator== (value_type index) const
 Equality operator with a integer (compares with state index number).
bool overlaps (const RooAbsArg &testArg, bool valueOnly=false) const
 Test if any of the nodes of tree are shared with that of the given tree.
const RooArgSetownedComponents () const
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.
void Print (Option_t *options=nullptr) const override
 Print the object to the defaultPrintStream().
void printAddress (std::ostream &os) const override
 Print address of this RooAbsArg.
void printArgs (std::ostream &os) const override
 Print object arguments, ie its proxies.
void printClassName (std::ostream &os) const override
 Print object class name.
void printCompactTree (const char *indent="", const char *fileName=nullptr, const char *namePat=nullptr, RooAbsArg *client=nullptr)
 Print tree structure of expression tree on stdout, or to file if filename is specified.
void printCompactTree (std::ostream &os, const char *indent="", const char *namePat=nullptr, RooAbsArg *client=nullptr)
 Print tree structure of expression tree on given ostream.
virtual void printCompactTreeHook (std::ostream &os, const char *ind="")
 Hook function interface for object to insert additional information when printed in the context of a tree structure.
void printComponentTree (const char *indent="", const char *namePat=nullptr, Int_t nLevel=999)
 Print tree structure of expression tree on given ostream, only branch nodes are printed.
void printDirty (bool depth=true) const
 Print information about current value dirty state information.
virtual void printExtras (std::ostream &os) const
 Interface to print extras of object.
virtual void printMetaArgs (std::ostream &) const
void printMultiline (std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
 Print info about this object to the specified stream.
void printName (std::ostream &os) const override
 Print object name.
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'.
void printTitle (std::ostream &os) const override
 Print object title.
void printTree (std::ostream &os, TString indent="") const override
 Print object tree structure.
void printValue (std::ostream &os) const override
 Print value (label name).
void randomize (const char *rangeName=nullptr) override
 Randomize current value.
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
bool readFromStream (std::istream &is, bool compact, bool verbose=false) override
 Read object contents from stream (dummy for now).
bool recursiveCheckObservables (const RooArgSet *nset) const
 Recursively call checkObservables on all nodes in the expression tree.
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
void removeStringAttribute (const Text_t *key)
 Delete a string attribute with a given key.
void ResetBit (UInt_t f)
void resetDataToken ()
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
void setAttribute (const Text_t *name, bool value=true)
 Set (default) or clear a named boolean attribute of this object.
void setBin (Int_t ibin, const char *rangeName=nullptr) override
 Set category to i-th fit bin, which is the i-th registered state.
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
void setConstant (bool value=true)
void setDataToken (std::size_t index)
 Sets the token for retrieving results in the BatchMode. For internal use only.
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
bool setIndex (const std::pair< std::string, value_type > &nameIdxPair, bool printError=true)
 Change category state to state specified by another category state.
virtual bool setIndex (value_type index, bool printError=true)=0
 Change category state by specifying the index code of the desired state.
virtual bool setLabel (const char *label, bool printError=true)=0
 Change category state by specifying a state name.
bool setLabel (const std::pair< std::string, value_type > &nameIdxPair, bool printError=true)
 Change category state to the state name of another category.
bool setLabel (const std::string &label, bool printError=true)
 Change category state by specifying a state name.
void setLocalNoDirtyInhibit (bool flag) const
void SetName (const char *name) override
 Set the name of the TNamed.
void SetNameTitle (const char *name, const char *title) override
 Set all the TNamed parameters (name and title).
bool setOrdinal (unsigned int index)
 Set our state to our nth defined type.
void setProhibitServerRedirect (bool flag)
void setStringAttribute (const Text_t *key, const Text_t *value)
 Associate string 'value' to this object under key 'key'.
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.
void setTransientAttribute (const Text_t *name, bool value=true)
 Set (default) or clear a named boolean attribute of this object.
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
void setWorkspace (RooWorkspace &ws)
std::size_t size () const
 Number of states defined.
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
void Streamer (TBuffer &) override
 Stream an object of class RooAbsArg.
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
const std::map< std::string, std::string > & stringAttributes () const
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
const std::set< std::string > & transientAttributes () 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.
double volume (const char *rangeName) const override
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
RooWorkspaceworkspace () const
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.
void writeToStream (std::ostream &os, bool compact) const override
 Write object contents to ostream.
Client-Server Interface

These functions allow RooFit to figure out who is serving values to whom.

const RefCountList_tclients () const
 List of all clients of this object.
const RefCountList_tvalueClients () const
 List of all value clients of this object. Value clients receive value updates.
const RefCountList_tshapeClients () const
 List of all shape clients of this object.
const RefCountList_tservers () const
 List of all servers of this object.
RooAbsArgfindServer (const char *name) const
 Return server of this with name name. Returns nullptr if not found.
RooAbsArgfindServer (const RooAbsArg &arg) const
 Return server of this that has the same name as arg. Returns nullptr if not found.
RooAbsArgfindServer (Int_t index) const
 Return i-th server from server list.
bool isValueServer (const RooAbsArg &arg) const
 Check if this is serving values to arg.
bool isValueServer (const char *name) const
 Check if this is serving values to an object with name name.
bool isShapeServer (const RooAbsArg &arg) const
 Check if this is serving shape to arg.
bool isShapeServer (const char *name) const
 Check if this is serving shape to an object with name name.
void leafNodeServerList (RooAbsCollection *list, const RooAbsArg *arg=nullptr, bool recurseNonDerived=false) const
 Fill supplied list with all leaf nodes of the arg tree, starting with ourself as top node.
void branchNodeServerList (RooAbsCollection *list, const RooAbsArg *arg=nullptr, bool recurseNonDerived=false) const
 Fill supplied list with all branch nodes of the arg tree starting with ourself as top node.
void treeNodeServerList (RooAbsCollection *list, const RooAbsArg *arg=nullptr, bool doBranch=true, bool doLeaf=true, bool valueOnly=false, bool recurseNonDerived=false) const
 Fill supplied list with nodes of the arg tree, following all server links, starting with ourself as top node.
virtual bool isFundamental () const
 Is this object a fundamental type that can be added to a dataset?
bool redirectServers (const RooAbsCollection &newServerList, bool mustReplaceAll=false, bool nameChange=false, bool isRecursionStep=false)
 Replace all direct servers of this object with the new servers in newServerList.
bool redirectServers (std::unordered_map< RooAbsArg *, RooAbsArg * > const &replacements)
 Replace some servers of this object.
bool recursiveRedirectServers (const RooAbsCollection &newSet, bool mustReplaceAll=false, bool nameChange=false, bool recurseInNewSet=true)
 Recursively replace all servers with the new servers in newSet.
virtual bool redirectServersHook (const RooAbsCollection &newServerList, bool mustReplaceAll, bool nameChange, bool isRecursiveStep)
 Function that is called at the end of redirectServers().
virtual void serverNameChangeHook (const RooAbsArg *, const RooAbsArg *)
void addServer (RooAbsArg &server, bool valueProp=true, bool shapeProp=false, std::size_t refCount=1)
 Register another RooAbsArg as a server to us, ie, declare that we depend on it.
void addServerList (RooAbsCollection &serverList, bool valueProp=true, bool shapeProp=false)
 Register a list of RooAbsArg as servers to us by calling addServer() for each arg in the list.
void replaceServer (RooAbsArg &oldServer, RooAbsArg &newServer, bool valueProp, bool shapeProp)
 Replace 'oldServer' with 'newServer', specifying whether the new server has value or shape server properties.
void changeServer (RooAbsArg &server, bool valueProp, bool shapeProp)
 Change dirty flag propagation mask for specified server.
void removeServer (RooAbsArg &server, bool force=false)
 Unregister another RooAbsArg as a server to us, ie, declare that we no longer depend on its value and shape.
RooAbsArgfindNewServer (const RooAbsCollection &newSet, bool nameChange) const
 Find the new server in the specified set that matches the old server.
Optimisation interface

These functions allow RooFit to optimise a computation graph, to keep track of cached values, and to invalidate caches.

virtual void optimizeCacheMode (const RooArgSet &observables)
 Activate cache mode optimization with given definition of observables.
virtual void optimizeCacheMode (const RooArgSet &observables, RooArgSet &optNodes, RooLinkedList &processedNodes)
 Activate cache mode optimization with given definition of observables.
bool findConstantNodes (const RooArgSet &observables, RooArgSet &cacheList)
 Find branch nodes with all-constant parameters, and add them to the list of nodes that can be cached with a dataset in a test statistic calculation.
bool findConstantNodes (const RooArgSet &observables, RooArgSet &cacheList, RooLinkedList &processedNodes)
 Find branch nodes with all-constant parameters, and add them to the list of nodes that can be cached with a dataset in a test statistic calculation.
virtual void constOptimizeTestStatistic (ConstOpCode opcode, bool doAlsoTrackingOpt=true)
 Interface function signaling a request to perform constant term optimization.
virtual CacheMode canNodeBeCached () const
virtual void setCacheAndTrackHints (RooArgSet &)
bool isShapeDirty () const
bool isValueDirty () const
bool isValueDirtyAndClear () const
bool isValueOrShapeDirtyAndClear () const
void registerCache (RooAbsCache &cache)
 Register RooAbsCache with this object.
void unRegisterCache (RooAbsCache &cache)
 Unregister a RooAbsCache. Called from the RooAbsCache destructor.
Int_t numCaches () const
 Return number of registered caches.
RooAbsCachegetCache (Int_t index) const
 Return registered cache object by index.
OperMode operMode () const
 Query the operation mode of this node.
void setOperMode (OperMode mode, bool recurseADirty=true)
 Set the operation mode of this node.
void setValueDirty ()
 Mark the element dirty. This forces a re-evaluation when a value is requested.
void setShapeDirty ()
 Notify that a shape-like property (e.g. binning) has changed.
const char * aggregateCacheUniqueSuffix () const
virtual const char * cacheUniqueSuffix () const
void wireAllCaches ()
RooExpensiveObjectCacheexpensiveObjectCache () const
virtual void setExpensiveObjectCache (RooExpensiveObjectCache &cache)

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 Longptr_t GetDtorOnly ()
 Return destructor only flag.
static Bool_t GetObjectStat ()
 Get status of object stat flag.
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 void setDirtyInhibit (bool flag)
 Control global dirty inhibit mode.
static void SetDtorOnly (void *obj)
 Set destructor only flag.
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
static void verboseDirty (bool flag)
 Activate verbose messaging related to dirty flag propagation.

Protected Types

enum  { kOnlyPrepStep = (1ULL << (3)) }

Protected Member Functions

void attachToStore (RooAbsDataStore &store)
 Attach this argument to the data store such that it reads data from there.
void attachToTree (TTree &t, Int_t bufSize=32000) override
 Attach the category index and label as branches to the given TTree.
void attachToVStore (RooVectorDataStore &vstore) override
 Attach the category index and label to as branches to the given vector store.
TString cleanBranchName () const
 Construct a mangled name from the actual name that is free of any math symbols that might be interpreted by TTree.
void clearShapeDirty () const
void clearTypes ()
 Delete all currently defined states.
void clearValueAndShapeDirty () const
void clearValueDirty () const
void copyCache (const RooAbsArg *source, bool valueOnly=false, bool setValDirty=true) override
 Copy the cached value from given source and raise dirty flag.
virtual const std::map< std::string, RooAbsCategory::value_type >::value_typedefineState (const std::string &label)
 Define a new state with given label.
virtual const std::map< std::string, RooAbsCategory::value_type >::value_typedefineState (const std::string &label, value_type index)
 Define new state with given name and index number.
void defineStateUnchecked (const std::string &label, value_type index)
 Internal version of defineState() that does not check if type already exists.
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
virtual value_type evaluate () const =0
 Evaluate the category state and return.
void fillTreeBranch (TTree &t) override
 Fill tree branches associated with current object with current value.
virtual void getParametersHook (const RooArgSet *, RooArgSet *, bool) const
void graphVizAddConnections (std::set< std::pair< RooAbsArg *, RooAbsArg * > > &)
 Utility function that inserts all point-to-point client-server connections between any two RooAbsArgs in the expression tree headed by this object in the linkSet argument.
bool inhibitDirty () const
virtual void ioStreamerPass2 ()
 Method called by workspace container to finalize schema evolution issues that cannot be handled in a single ioStreamer pass.
bool isValid () const override
 WVE (08/21/01) Probably obsolete now.
void MakeZombie ()
value_type nextAvailableStateIndex () const
virtual void operModeHook ()
virtual void optimizeDirtyHook (const RooArgSet *)
void printAttribList (std::ostream &os) const
 Print the attribute list.
virtual void recomputeShape ()=0
 If a category depends on the shape of others, i.e. its state numbers or names depend on the states of other categories, this function has to be implemented to recompute _stateNames and _insertionOrder.
void registerProxy (RooArgProxy &proxy)
 Register an RooArgProxy in the proxy list.
void registerProxy (RooListProxy &proxy)
 Register an RooListProxy in the proxy list.
void registerProxy (RooSetProxy &proxy)
 Register an RooSetProxy in the proxy list.
RooCatTyperetrieveLegacyState (value_type index) const
 Return the legacy RooCatType corresponding to index. If it doesn't exist, create one.
void SavePrimitiveNameTitle (std::ostream &out, const char *variable_name)
 Save object name and title into the output stream "out".
void setCachedValue (double value, bool notifyClients=true) final
 Overwrite the value stored in this object's cache.
void setProxyNormSet (const RooArgSet *nset)
 Forward a change in the cached normalization argset to all the registered proxies.
void setShapeDirty (const RooAbsArg *source)
 Notify that a shape-like property (e.g. binning) has changed.
void setTreeBranchStatus (TTree &t, bool active) override
 (De)activate associate tree branch
void setValueDirty (const RooAbsArg *source)
 Force element to re-evaluate itself when a value is requested.
std::map< std::string, value_type > & stateNames ()
 Access the map of state names to index numbers.
const std::map< std::string, value_type > & stateNames () const
 Access the map of state names to index numbers.
void syncCache (const RooArgSet *set=nullptr) override
 Explicitly synchronize RooAbsCategory internal cache.
void unRegisterProxy (RooArgProxy &proxy)
 Remove proxy from proxy list.
void unRegisterProxy (RooListProxy &proxy)
 Remove proxy from proxy list.
void unRegisterProxy (RooSetProxy &proxy)
 Remove proxy from proxy list.

Static Protected Member Functions

static const decltype(_stateNames) ::value_typeinvalidCategory ()
 A category state to signify an invalid category.
static void ioStreamerPass2Finalize ()
 Method called by workspace container to finalize schema evolution issues that cannot be handled in a single ioStreamer pass.
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
 Save object constructor in the output stream "out".
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
 Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0)
 Save array in the output stream "out" as vector.

Protected Attributes

std::set< std::string > _boolAttrib
std::set< std::string > _boolAttribTransient
 ! Transient boolean attributes (not copied in ctor)
std::vector< RooAbsCache * > _cacheList
 ! list of caches
RefCountList_t _clientList
RefCountList_t _clientListShape
RefCountList_t _clientListValue
value_type _currentIndex {std::numeric_limits<int>::min()}
 Current category state.
std::size_t _dataToken = std::numeric_limits<std::size_t>::max()
 !
bool _deleteWatch = false
 ! Delete watch flag
RooExpensiveObjectCache_eocache {nullptr}
 ! Pointer to global cache manager for expensive components.
bool _fast = false
std::vector< std::string > _insertionOrder
 Keeps track in which order state numbers have been inserted. Make sure this is updated in recomputeShape().
bool _isConstant = false
 ! Cached isConstant status
std::map< value_type, std::unique_ptr< RooCatType, std::function< void(RooCatType *)> > > _legacyStates
 ! Map holding pointers to RooCatType instances. Only for legacy interface. Don't use if possible.
bool _localNoInhibitDirty = false
 ! Prevent 'AlwaysDirty' mode for this node
RooWorkspace_myws = nullptr
 ! In which workspace do I live, if any
const TNamed_namePtr = nullptr
 ! De-duplicated name pointer, equal for all objects with the same name.
OperMode _operMode = Auto
RooArgSet_ownedComponents = nullptr
 ! Set of owned component
bool _prohibitServerRedirect = false
 ! Prohibit server redirects – Debugging tool
RooRefArray _proxyList
ProxyListCache _proxyListCache
 ! cache of the list of proxies. Avoids type casting.
RefCountList_t _serverList
bool _shapeDirty = true
std::map< std::string, value_type_stateNames
 Map state names to index numbers. Make sure state names are updated in recomputeShape().
std::map< std::string, std::string > _stringAttrib
bool _valueDirty = true
TString fName
TString fTitle

Static Protected Attributes

static bool _inhibitDirty
static Int_t _nameLength
static bool _verboseDirty

Private Member Functions

void addParameters (RooAbsCollection &params, const RooArgSet *nset=nullptr, bool stripDisconnected=true) const
 Add all parameters of the function and its daughters to params.
bool callRedirectServersHook (RooAbsCollection const &newSet, bool mustReplaceAll, bool nameChange, bool isRecursionStep)
 Private helper function for RooAbsArg::redirectServers().
RefCountListLegacyIterator_tmakeLegacyIterator (const RefCountList_t &list) const
void substituteServer (RooAbsArg *oldServer, RooAbsArg *newServer)
 Private helper function for RooAbsArg::redirectServers().

Static Private Member Functions

static void AddToTObjectTable (TObject *)
 Private helper function which will dispatch to TObjectTable::AddObj.

Private Attributes

TreeReadBuffer * _treeReadBuffer = nullptr
 ! A buffer for reading values from trees
UInt_t fBits
 bit field status word
UInt_t fUniqueID
 object unique identifier

Static Private Attributes

static Longptr_t fgDtorOnly = 0
 object for which to call dtor only (i.e. no delete)
static Bool_t fgObjectStat = kTRUE
 if true keep track of objects in TObjectTable

Friends

class RooSimGenContext
class RooSimSplitGenContext

Legacy interface

Previous versions of RooAbsCategory were based on RooCatType, a class containing a state and a label.

It has been replaced by integers, which use less space and allow for faster access. The following part of the interface should not be used if possible. Since RooCatType in essence is only an index and a state name, equivalent functionality can be achieved using begin() and end() to iterate through pairs of <index, stateName> and by using using lookupName() and lookupIndex().

const RooCatTypelookupType (value_type index, bool printError=false) const
 Find our type corresponding to the specified index, or return nullptr for no match.
const RooCatTypelookupType (const char *label, bool printError=false) const
 Find our type corresponding to the specified label, or return 0 for no match.
const RooCatTypelookupType (const RooCatType &type, bool printError=false) const
 Find our type that matches the specified type, or return 0 for no match.
TIteratortypeIterator () const
Int_t numTypes (const char *=nullptr) const
 Return number of types defined (in range named rangeName if rangeName!=nullptr).
Int_t getIndex () const
 Retrieve the current index. Use getCurrentIndex() for more clarity.
const char * getLabel () const
 Retrieve current label. Use getCurrentLabel() for more clarity.
virtual bool isValid (const RooCatType &value) const
 Check if given state is defined for this object.
const RooCatTypedefineType (const char *label)
const RooCatTypedefineType (const char *label, int index)
const RooCatTypedefineTypeUnchecked (const char *label, value_type index)

#include <RooAbsCategoryLValue.h>

Inheritance diagram for RooAbsCategoryLValue:
RooAbsCategory RooAbsLValue RooAbsArg TNamed RooPrintable TObject RooCategory RooSuperCategory

Member Typedef Documentation

◆ RefCountList_t

using RooAbsArg::RefCountList_t = RooSTLRefCountList<RooAbsArg>
inherited

Definition at line 78 of file RooAbsArg.h.

◆ RefCountListLegacyIterator_t

using RooAbsArg::RefCountListLegacyIterator_t = TIteratorToSTLInterface<RefCountList_t::Container_t>
inherited

Definition at line 79 of file RooAbsArg.h.

◆ value_type

using RooAbsCategory::value_type = int
inherited

The type used to denote a specific category state.

Definition at line 37 of file RooAbsCategory.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
kOnlyPrepStep 

Used to request that the class specific implementation of TObject::Write just prepare the objects to be ready to be written but do not actually write them into the TBuffer.

This is just for example by TBufferMerger to request that the TTree inside the file calls TTree::FlushBaskets (outside of the merging lock) and TBufferMerger will later ask for the write (inside the merging lock). To take advantage of this feature the class needs to overload TObject::Write and use this enum value accordingly. (See TTree::Write and TObject::Write) Do not use, this feature will be migrate to the Merge function (See TClass and TTree::Merge)

Definition at line 106 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kSingleKey 

write collection with single key

kOverwrite 

overwrite existing object with same name

kWriteDelete 

write object, then delete previous key with same name

Definition at line 99 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kIsOnHeap 

object is on heap

kNotDeleted 

object has not been deleted

kZombie 

object ctor failed

kInconsistent 

class overload Hash but does call RecursiveRemove in destructor

kBitMask 

Definition at line 89 of file TObject.h.

◆ CacheMode

enum RooAbsArg::CacheMode
inherited
Enumerator
Always 
NotAdvised 
Never 

Definition at line 317 of file RooAbsArg.h.

◆ ConstOpCode

enum RooAbsArg::ConstOpCode
inherited
Enumerator
Activate 
DeActivate 
ConfigChange 
ValueChange 

Definition at line 311 of file RooAbsArg.h.

◆ ContentsOption

Enumerator
kName 
kClassName 
kValue 
kArgs 
kExtras 
kAddress 
kTitle 
kCollectionHeader 

Definition at line 33 of file RooPrintable.h.

◆ EDeprecatedStatusBits

Enumerator
kObjInCanvas 

for backward compatibility only, use kMustCleanup

Definition at line 84 of file TObject.h.

◆ EStatusBits

enum TObject::EStatusBits
inherited
Enumerator
kCanDelete 

if object in a list can be deleted

kMustCleanup 

if object destructor must call RecursiveRemove()

kIsReferenced 

if object is referenced by a TRef or TRefArray

kHasUUID 

if object has a TUUID (its fUniqueID=UUIDNumber)

kCannotPick 

if object in a pad cannot be picked

kNoContextMenu 

if object does not want context menu

kInvalidObject 

if object ctor succeeded but object should not be used

Definition at line 70 of file TObject.h.

◆ OperMode

enum RooAbsArg::OperMode
inherited
Enumerator
Auto 
AClean 
ADirty 

Definition at line 322 of file RooAbsArg.h.

◆ StyleOption

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

Definition at line 34 of file RooPrintable.h.

Constructor & Destructor Documentation

◆ RooAbsCategoryLValue() [1/3]

RooAbsCategoryLValue::RooAbsCategoryLValue ( )
inline

Definition at line 29 of file RooAbsCategoryLValue.h.

◆ RooAbsCategoryLValue() [2/3]

RooAbsCategoryLValue::RooAbsCategoryLValue ( const char * name,
const char * title )

Constructor.

Definition at line 43 of file RooAbsCategoryLValue.cxx.

◆ RooAbsCategoryLValue() [3/3]

RooAbsCategoryLValue::RooAbsCategoryLValue ( const RooAbsCategoryLValue & other,
const char * name = nullptr )

Copy constructor.

Definition at line 55 of file RooAbsCategoryLValue.cxx.

Member Function Documentation

◆ AbstractMethod()

void TObject::AbstractMethod ( const char * method) const
inherited

Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.

In other word, this method acts as a "runtime purely virtual" warning instead of a "compiler purely virtual" error.

Warning
This interface is a legacy function that is no longer recommended to be used by new development code.
Note
The name "AbstractMethod" does not imply that it's an abstract method in the strict C++ sense.

Definition at line 1149 of file TObject.cxx.

◆ addOwnedComponents() [1/4]

bool RooAbsArg::addOwnedComponents ( const RooAbsCollection & comps)
inherited

Take ownership of the contents of 'comps'.

Definition at line 2010 of file RooAbsArg.cxx.

◆ addOwnedComponents() [2/4]

bool RooAbsArg::addOwnedComponents ( RooAbsCollection && comps)
inherited

Take ownership of the contents of 'comps'.

Different from the overload that takes the RooArgSet by const&, this version can also take an owning RooArgSet without error, because the ownership will not be ambiguous afterwards.

Definition at line 2022 of file RooAbsArg.cxx.

◆ addOwnedComponents() [3/4]

bool RooAbsArg::addOwnedComponents ( RooArgList && comps)
inherited

Take ownership of the contents of 'comps'.

Different from the overload that takes the RooArgSet by const&, this version can also take an owning RooArgSet without error, because the ownership will not be ambiguous afterwards.

Definition at line 2032 of file RooAbsArg.cxx.

◆ addOwnedComponents() [4/4]

template<typename... Args_t>
bool RooAbsArg::addOwnedComponents ( std::unique_ptr< Args_t >... comps)
inlineinherited

Definition at line 482 of file RooAbsArg.h.

◆ addParameters()

void RooAbsArg::addParameters ( RooAbsCollection & params,
const RooArgSet * nset = nullptr,
bool stripDisconnected = true ) const
privateinherited

Add all parameters of the function and its daughters to params.

Parameters
[in]paramsCollection that stores all parameters. Add all new parameters to this.
[in]nsetNormalisation set (optional). If a value depends on this set, it's not a parameter.
[in]stripDisconnectedPassed on to getParametersHook().

Definition at line 544 of file RooAbsArg.cxx.

◆ addServer()

void RooAbsArg::addServer ( RooAbsArg & server,
bool valueProp = true,
bool shapeProp = false,
std::size_t refCount = 1 )
inherited

Register another RooAbsArg as a server to us, ie, declare that we depend on it.

Parameters
serverThe server to be registered.
valuePropIn addition to the basic client-server relationship, declare dependence on the server's value.
shapePropIn addition to the basic client-server relationship, declare dependence on the server's shape.
refCountOptionally add with higher reference count (if multiple components depend on it)

Definition at line 307 of file RooAbsArg.cxx.

◆ addServerList()

void RooAbsArg::addServerList ( RooAbsCollection & serverList,
bool valueProp = true,
bool shapeProp = false )
inherited

Register a list of RooAbsArg as servers to us by calling addServer() for each arg in the list.

Definition at line 344 of file RooAbsArg.cxx.

◆ AddToTObjectTable()

void TObject::AddToTObjectTable ( TObject * op)
staticprivateinherited

Private helper function which will dispatch to TObjectTable::AddObj.

Included here to avoid circular dependency between header files.

Definition at line 195 of file TObject.cxx.

◆ aggregateCacheUniqueSuffix()

const char * RooAbsArg::aggregateCacheUniqueSuffix ( ) const
inherited

Definition at line 2072 of file RooAbsArg.cxx.

◆ AppendPad()

void TObject::AppendPad ( Option_t * option = "")
virtualinherited

Append graphics object to current pad.

In case no current pad is set yet, create a default canvas with the name "c1".

Definition at line 204 of file TObject.cxx.

◆ applyWeightSquared()

void RooAbsArg::applyWeightSquared ( bool flag)
virtualinherited

Disables or enables the usage of squared weights.

Needs to be overloaded in the likelihood classes for which this is relevant.

Reimplemented in ROOT::Experimental::XRooFit::ProgressMonitor.

Definition at line 2244 of file RooAbsArg.cxx.

◆ attachArgs()

void RooAbsArg::attachArgs ( const RooAbsCollection & set)
inherited

Bind this node to objects in set.

Search the set for objects that have the same name as our servers, and attach ourselves to those. After this operation, this node is computing its values based on the new servers. This can be used to e.g. read values from

Definition at line 1490 of file RooAbsArg.cxx.

◆ attachDataSet()

void RooAbsArg::attachDataSet ( const RooAbsData & set)
inherited

Replace server nodes with names matching the dataset variable names with those data set variables, making this PDF directly dependent on the dataset.

Definition at line 1503 of file RooAbsArg.cxx.

◆ attachDataStore()

void RooAbsArg::attachDataStore ( const RooAbsDataStore & set)
inherited

Replace server nodes with names matching the dataset variable names with those data set variables, making this PDF directly dependent on the dataset.

Definition at line 1511 of file RooAbsArg.cxx.

◆ attachToStore()

void RooAbsArg::attachToStore ( RooAbsDataStore & store)
protectedinherited

Attach this argument to the data store such that it reads data from there.

Definition at line 2054 of file RooAbsArg.cxx.

◆ attachToTree()

void RooAbsCategory::attachToTree ( TTree & tree,
Int_t bufSize = 32000 )
overrideprotectedvirtualinherited

Attach the category index and label as branches to the given TTree.

The index field will be attached as integer with name <name>_idx. If a branch <name> exists, it attaches to this branch.

Implements RooAbsArg.

Definition at line 448 of file RooAbsCategory.cxx.

◆ attachToVStore()

void RooAbsCategory::attachToVStore ( RooVectorDataStore & vstore)
overrideprotectedvirtualinherited

Attach the category index and label to as branches to the given vector store.

Implements RooAbsArg.

Definition at line 435 of file RooAbsCategory.cxx.

◆ attributes()

const std::set< std::string > & RooAbsArg::attributes ( ) const
inlineinherited

Definition at line 258 of file RooAbsArg.h.

◆ begin()

std::map< std::string, value_type >::const_iterator RooAbsCategory::begin ( ) const
inlineinherited

Iterator for category state names. Points to pairs of index and name.

Definition at line 92 of file RooAbsCategory.h.

◆ branchNodeServerList()

void RooAbsArg::branchNodeServerList ( RooAbsCollection * list,
const RooAbsArg * arg = nullptr,
bool recurseNonDerived = false ) const
inherited

Fill supplied list with all branch nodes of the arg tree starting with ourself as top node.

A branch node is node that has one or more servers declared.

Definition at line 451 of file RooAbsArg.cxx.

◆ Browse()

◆ cacheUniqueSuffix()

virtual const char * RooAbsArg::cacheUniqueSuffix ( ) const
inlinevirtualinherited

Definition at line 434 of file RooAbsArg.h.

◆ callRedirectServersHook()

bool RooAbsArg::callRedirectServersHook ( RooAbsCollection const & newSet,
bool mustReplaceAll,
bool nameChange,
bool isRecursionStep )
privateinherited

Private helper function for RooAbsArg::redirectServers().

Definition at line 988 of file RooAbsArg.cxx.

◆ canComputeBatchWithCuda()

◆ canNodeBeCached()

virtual CacheMode RooAbsArg::canNodeBeCached ( ) const
inlinevirtualinherited

Reimplemented in RooAddPdf, RooLagrangianMorphFunc, RooProdPdf, RooProduct, RooRealSumFunc, and RooRealSumPdf.

Definition at line 346 of file RooAbsArg.h.

◆ changeServer()

void RooAbsArg::changeServer ( RooAbsArg & server,
bool valueProp,
bool shapeProp )
inherited

Change dirty flag propagation mask for specified server.

Definition at line 412 of file RooAbsArg.cxx.

◆ CheckedHash()

ULong_t TObject::CheckedHash ( )
inlineinherited

Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.

The intent is for this routine to be called instead of directly calling the function Hash during "insert" operations. See TObject::HasInconsistenTObjectHash();

(*) The setup is consistent when all classes in the class hierarchy that overload TObject::Hash do call ROOT::CallRecursiveRemoveIfNeeded in their destructor. i.e. it is safe to call the Hash virtual function during the RecursiveRemove operation.

Definition at line 332 of file TObject.h.

◆ checkObservables()

bool RooAbsArg::checkObservables ( const RooArgSet * nset) const
virtualinherited

Overloadable function in which derived classes can implement consistency checks of the variables.

If this function returns true, indicating an error, the fitter or generator will abort.

Reimplemented in RooAddModel, RooAddPdf, RooLagrangianMorphFunc, RooRealSumFunc, and RooRealSumPdf.

Definition at line 687 of file RooAbsArg.cxx.

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 123 of file RooAbsCategoryLValue.h.

◆ ClassName()

const char * TObject::ClassName ( ) const
virtualinherited

Returns name of class to which the object belongs.

Definition at line 227 of file TObject.cxx.

◆ cleanBranchName()

TString RooAbsArg::cleanBranchName ( ) const
protectedinherited

Construct a mangled name from the actual name that is free of any math symbols that might be interpreted by TTree.

Definition at line 1845 of file RooAbsArg.cxx.

◆ Clear()

void TNamed::Clear ( Option_t * option = "")
overridevirtualinherited

Set name and title to empty strings ("").

Reimplemented from TObject.

Reimplemented in TPrincipal, TProcessID, TStreamerInfo, TTask, TVirtualFitter, and TVirtualStreamerInfo.

Definition at line 63 of file TNamed.cxx.

◆ clearShapeDirty()

void RooAbsArg::clearShapeDirty ( ) const
inlineprotectedinherited

Definition at line 542 of file RooAbsArg.h.

◆ clearTypes()

void RooAbsCategory::clearTypes ( )
protectedinherited

Delete all currently defined states.

Definition at line 276 of file RooAbsCategory.cxx.

◆ clearValueAndShapeDirty()

void RooAbsArg::clearValueAndShapeDirty ( ) const
inlineprotectedinherited

Definition at line 535 of file RooAbsArg.h.

◆ clearValueDirty()

void RooAbsArg::clearValueDirty ( ) const
inlineprotectedinherited

Definition at line 541 of file RooAbsArg.h.

◆ clients()

const RefCountList_t & RooAbsArg::clients ( ) const
inlineinherited

List of all clients of this object.

Definition at line 137 of file RooAbsArg.h.

◆ Clone()

TObject * RooAbsArg::Clone ( const char * newname = nullptr) const
inlineoverridevirtualinherited

Make a clone of an object using the Streamer facility.

If the object derives from TNamed, this function is called by TNamed::Clone. TNamed::Clone uses the optional argument to set a new name to the newly created object.

If the object class has a DirectoryAutoAdd function, it will be called at the end of the function with the parameter gDirectory. This usually means that the object will be appended to the current ROOT directory.

Reimplemented from TObject.

Definition at line 88 of file RooAbsArg.h.

◆ clone()

virtual TObject * RooAbsArg::clone ( const char * newname = nullptr) const
pure virtualinherited

Implemented in ParamHistFunc, PdfWrapper, PiecewiseInterpolation, Roo2DKeysPdf, RooAddition, RooAddModel, RooAddPdf, RooArgusBG, RooBCPEffDecay, RooBCPGenDecay, RooBDecay, RooBernstein, RooBifurGauss, RooBinningCategory, RooBinSamplingPdf, RooBinWidthFunction, RooBMixDecay, RooBreitWigner, RooBukinPdf, RooCachedPdf, RooCachedReal, RooCategory, 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 >, RooChangeTracker, RooChebychev, RooChiSquarePdf, RooConstraintSum, RooConstVar, RooConvCoefVar, RooCrystalBall, RooDecay, RooDerivative, RooDstD0BG, RooEfficiency, RooEffProd, RooErrorVar, RooExponential, RooExtendedBinding, RooExtendedTerm, RooExtendPdf, RooFFTConvPdf, RooFirstMoment, RooFit::Detail::RooFixedProdPdf, RooFit::Detail::RooMomentMorphFraction, RooFit::Detail::RooNormalizedPdf, RooFit::TestStatistics::RooRealL, RooFormulaVar, RooFracRemainder, RooFunctor1DBinding, RooFunctor1DPdfBinding, RooFunctorBinding, RooFunctorPdfBinding, RooGamma, RooGaussExpTails, RooGaussian, RooGaussModel, RooGenericPdf, RooGExpModel, RooHistConstraint, RooHistFunc, RooHistPdf, RooHypatia2, RooIntegralMorph, RooJeffreysPrior, RooJohnson, RooKeysPdf, RooLagrangianMorphFunc, RooLandau, RooLegacyExpPoly, RooLegendre, RooLinearCombination, RooLinearVar, RooLognormal, RooMappedCategory, RooMoment, RooMomentMorph, RooMomentMorphFunc, RooMomentMorphFuncND, RooMultiBinomial, RooMultiCategory, RooMultiPdf, RooMultiReal, RooMultiVarGaussian, RooNDKeysPdf, RooNonCentralChiSquare, RooNonCPEigenDecay, RooNovosibirsk, RooNumCdf, RooNumConvolution, RooNumConvPdf, RooNumRunningInt, RooONNXFunc, RooParametricStepFunction, RooParamHistFunc, RooPoisson, RooPolyFunc, RooPolynomial, RooPolyVar, RooPowerSum, RooProdPdf, RooProduct, RooProfileLL, RooProjectedPdf, RooPullVar, RooRangeBoolean, RooRatio, RooRealIntegral, RooRealSumFunc, RooRealSumPdf, RooRealVar, RooRecursiveFraction, RooResolutionModel, RooSecondMoment, RooSimultaneous, RooSpHarmonic, RooSpline, RooStats::Heaviside, RooStats::HistFactory::FlexibleInterpVar, RooStats::HistFactory::LinInterpVar, RooStats::HistFactory::RooBarlowBeestonLL, RooStepFunction, RooStringVar, RooStudentT, RooSuperCategory, ROOT::Experimental::XRooFit::ProgressMonitor, RooTFnBinding, RooTFnPdfBinding, RooThresholdCategory, RooTruthModel, RooUnblindCPAsymVar, RooUnblindOffset, RooUnblindPrecision, RooUnblindUniform, RooUniform, RooVoigtian, RooWrapperPdf, and xRooProjectedPdf.

◆ cloneTree()

RooAbsArg * RooAbsArg::cloneTree ( const char * newname = nullptr) const
virtualinherited

Clone tree expression of objects.

All tree nodes will be owned by the head node return by cloneTree()

Definition at line 2040 of file RooAbsArg.cxx.

◆ Compare()

Int_t RooAbsArg::Compare ( const TObject * other) const
overridevirtualinherited

Utility function used by TCollection::Sort to compare contained TObjects We implement comparison by name, resulting in alphabetical sorting by object name.

Reimplemented from TObject.

Definition at line 1519 of file RooAbsArg.cxx.

◆ compileForNormSet()

std::unique_ptr< RooAbsArg > RooAbsArg::compileForNormSet ( RooArgSet const & normSet,
RooFit::Detail::CompileContext & ctx ) const
virtualinherited

◆ constOptimizeTestStatistic()

void RooAbsArg::constOptimizeTestStatistic ( ConstOpCode opcode,
bool doAlsoTrackingOpt = true )
virtualinherited

Interface function signaling a request to perform constant term optimization.

This default implementation takes no action other than to forward the calls to all servers

Reimplemented in ROOT::Experimental::XRooFit::ProgressMonitor.

Definition at line 1719 of file RooAbsArg.cxx.

◆ Copy()

void TNamed::Copy ( TObject & named) const
overridevirtualinherited

Copy this to obj.

Reimplemented from TObject.

Reimplemented in TPieSlice, TProfile2D, TProfile3D, TProfile, TStyle, TSystemDirectory, TSystemFile, TText, and TXTRU.

Definition at line 93 of file TNamed.cxx.

◆ copyCache()

void RooAbsCategoryLValue::copyCache ( const RooAbsArg * source,
bool valueOnly = false,
bool setValDirty = true )
overrideprotectedvirtual

Copy the cached value from given source and raise dirty flag.

It is the callers responsibility to ensure that the sources cache is clean(valid) before this function is called, e.g. by calling syncCache() on the source.

Reimplemented from RooAbsCategory.

Definition at line 122 of file RooAbsCategoryLValue.cxx.

◆ createFundamental()

RooFit::OwningPtr< RooAbsArg > RooAbsCategory::createFundamental ( const char * newname = nullptr) const
overridevirtualinherited

Create a RooCategory fundamental object with our properties.

Implements RooAbsArg.

Definition at line 641 of file RooAbsCategory.cxx.

◆ createTable()

Roo1DTable * RooAbsCategory::createTable ( const char * label) const
inherited

Create a table matching the shape of this category.

Definition at line 370 of file RooAbsCategory.cxx.

◆ dataToken()

std::size_t RooAbsArg::dataToken ( ) const
inlineinherited

Returns the token for retrieving results in the BatchMode. For internal use only.

Definition at line 635 of file RooAbsArg.h.

◆ DeclFileName()

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

Definition at line 123 of file RooAbsCategoryLValue.h.

◆ defaultPrintContents()

Int_t RooAbsArg::defaultPrintContents ( Option_t * opt) const
overridevirtualinherited

Define default contents to print.

Reimplemented from RooPrintable.

Reimplemented in RooRealVar.

Definition at line 1379 of file RooAbsArg.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.

◆ defineState() [1/2]

const std::map< std::string, RooAbsCategory::value_type >::value_type & RooAbsCategory::defineState ( const std::string & label)
protectedvirtualinherited

Define a new state with given label.

The next available integer is assigned as index value.

Definition at line 219 of file RooAbsCategory.cxx.

◆ defineState() [2/2]

const std::map< std::string, RooAbsCategory::value_type >::value_type & RooAbsCategory::defineState ( const std::string & label,
RooAbsCategory::value_type index )
protectedvirtualinherited

Define new state with given name and index number.

Definition at line 244 of file RooAbsCategory.cxx.

◆ defineStateUnchecked()

void RooAbsCategory::defineStateUnchecked ( const std::string & label,
RooAbsCategory::value_type index )
protectedinherited

Internal version of defineState() that does not check if type already exists.

Definition at line 228 of file RooAbsCategory.cxx.

◆ defineType() [1/2]

const RooCatType * RooAbsCategory::defineType ( const char * label)
protectedinherited
Deprecated
Use defineState(const std::string& label)

Definition at line 681 of file RooAbsCategory.cxx.

◆ defineType() [2/2]

const RooCatType * RooAbsCategory::defineType ( const char * label,
int index )
protectedinherited
Deprecated
Use defineState(const std::string& label, value_type index)

Definition at line 686 of file RooAbsCategory.cxx.

◆ defineTypeUnchecked()

const RooCatType * RooAbsCategory::defineTypeUnchecked ( const char * label,
value_type index )
protectedinherited
Deprecated
Use defineStateUnchecked(const std::string& label, value_type index)

Definition at line 691 of file RooAbsCategory.cxx.

◆ Delete()

void TObject::Delete ( Option_t * option = "")
virtualinherited

◆ dependsOn() [1/3]

bool RooAbsArg::dependsOn ( const RooAbsArg & server,
const RooAbsArg * ignoreArg = nullptr,
bool valueOnly = false ) const
inlineinherited

Test whether we depend on (ie, are served by) the specified object.

Note that RooAbsArg objects are considered equivalent if they have the same name.

Definition at line 122 of file RooAbsArg.h.

◆ dependsOn() [2/3]

bool RooAbsArg::dependsOn ( const RooAbsCollection & serverList,
const RooAbsArg * ignoreArg = nullptr,
bool valueOnly = false ) const
inherited

Test whether we depend on (ie, are served by) any object in the specified collection.

Uses the dependsOn(RooAbsArg&) member function.

Definition at line 717 of file RooAbsArg.cxx.

◆ dependsOn() [3/3]

bool RooAbsArg::dependsOn ( TNamed const * namePtr,
const RooAbsArg * ignoreArg = nullptr,
bool valueOnly = false ) const
inherited

Test whether we depend on (ie, are served by) an object with a specific name.

Definition at line 731 of file RooAbsArg.cxx.

◆ dependsOnValue() [1/2]

bool RooAbsArg::dependsOnValue ( const RooAbsArg & server,
const RooAbsArg * ignoreArg = nullptr ) const
inlineinherited

Check whether this object depends on values served from the object passed as server.

Parameters
serverTest if server serves values to this.
ignoreArgIgnore values served by this object.
Returns
True if values are served.

Definition at line 113 of file RooAbsArg.h.

◆ dependsOnValue() [2/2]

bool RooAbsArg::dependsOnValue ( const RooAbsCollection & serverList,
const RooAbsArg * ignoreArg = nullptr ) const
inlineinherited

Check whether this object depends on values from an element in the serverList.

Parameters
serverListTest if one of the elements in this list serves values to this.
ignoreArgIgnore values served by this object.
Returns
True if values are served.

Definition at line 104 of file RooAbsArg.h.

◆ DistancetoPrimitive()

◆ DoError()

void TObject::DoError ( int level,
const char * location,
const char * fmt,
va_list va ) const
protectedvirtualinherited

Interface to ErrorHandler (protected).

Reimplemented in TThread, and TTreeViewer.

Definition at line 1059 of file TObject.cxx.

◆ Draw()

◆ DrawClass()

void TObject::DrawClass ( ) const
virtualinherited

Draw class inheritance tree of the class to which this object belongs.

If a class B inherits from a class A, description of B is drawn on the right side of description of A. Member functions overridden by B are shown in class A with a blue line crossing-out the corresponding member function. The following picture is the class inheritance tree of class TPaveLabel:

Reimplemented in TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 308 of file TObject.cxx.

◆ DrawClone()

TObject * TObject::DrawClone ( Option_t * option = "") const
virtualinherited

Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).

If pad was not selected - gPad will be used.

Note
For histograms, use the more specialised TH1::DrawCopy().

Reimplemented in TAxis, TCanvas, TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 319 of file TObject.cxx.

◆ Dump()

void TObject::Dump ( ) const
virtualinherited

Dump contents of object on stdout.

Using the information in the object dictionary (class TClass) each data member is interpreted. If a data member is a pointer, the pointer value is printed

The following output is the Dump of a TArrow object:

fAngle 0 Arrow opening angle (degrees)
fArrowSize 0.2 Arrow Size
fOption.*fData
fX1 0.1 X of 1st point
fY1 0.15 Y of 1st point
fX2 0.67 X of 2nd point
fY2 0.83 Y of 2nd point
fUniqueID 0 object unique identifier
fBits 50331648 bit field status word
fLineColor 1 line color
fLineStyle 1 line style
fLineWidth 1 line width
fFillColor 19 fill area color
fFillStyle 1001 fill area style
#define X(type, name)
UInt_t fUniqueID
object unique identifier
Definition TObject.h:46
UInt_t fBits
bit field status word
Definition TObject.h:47
TLine * line
TCanvas * style()
Definition style.C:1

Reimplemented in TClass, TCollection, TGFrame, TGPack, and TSystemFile.

Definition at line 367 of file TObject.cxx.

◆ empty()

bool RooAbsCategory::empty ( ) const
inlineinherited

If there are no states defined.

Definition at line 104 of file RooAbsCategory.h.

◆ end()

std::map< std::string, value_type >::const_iterator RooAbsCategory::end ( ) const
inlineinherited

Iterator for category state names. Points to pairs of index and name.

Definition at line 96 of file RooAbsCategory.h.

◆ Error()

void TObject::Error ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue error message.

Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.

Reimplemented in TFitResult.

Definition at line 1098 of file TObject.cxx.

◆ evaluate()

virtual value_type RooAbsCategory::evaluate ( ) const
protectedpure virtualinherited

Evaluate the category state and return.

The returned state index should correspond to a state name that has been defined via e.g. defineType().

Implemented in RooBinningCategory, RooCategory, RooMappedCategory, RooMultiCategory, RooSuperCategory, and RooThresholdCategory.

◆ Execute() [1/2]

void TObject::Execute ( const char * method,
const char * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with the given parameter string, e.g.

"3.14,1,\"text\"".

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 378 of file TObject.cxx.

◆ Execute() [2/2]

void TObject::Execute ( TMethod * method,
TObjArray * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with parameters stored in the TObjArray.

The TObjArray should contain an argv vector like:

argv[0] ... argv[n] = the list of TObjString parameters
Collectable string class.
Definition TObjString.h:28
const Int_t n
Definition legend1.C:16

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 398 of file TObject.cxx.

◆ ExecuteEvent()

◆ expensiveObjectCache()

RooExpensiveObjectCache & RooAbsArg::expensiveObjectCache ( ) const
inherited

Definition at line 2063 of file RooAbsArg.cxx.

◆ Fatal()

void TObject::Fatal ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue fatal error message.

Use "location" to specify the method where the fatal error occurred. Accepts standard printf formatting arguments.

Definition at line 1126 of file TObject.cxx.

◆ FillBuffer()

void TNamed::FillBuffer ( char *& buffer)
virtualinherited

Encode TNamed into output buffer.

Reimplemented in TDirectoryFile, TFile, TKey, TKeySQL, TKeyXML, TSQLFile, and TXMLFile.

Definition at line 103 of file TNamed.cxx.

◆ fillTreeBranch()

void RooAbsCategory::fillTreeBranch ( TTree & t)
overrideprotectedvirtualinherited

Fill tree branches associated with current object with current value.

Implements RooAbsArg.

Definition at line 516 of file RooAbsCategory.cxx.

◆ findConstantNodes() [1/2]

bool RooAbsArg::findConstantNodes ( const RooArgSet & observables,
RooArgSet & cacheList )
inherited

Find branch nodes with all-constant parameters, and add them to the list of nodes that can be cached with a dataset in a test statistic calculation.

Definition at line 1633 of file RooAbsArg.cxx.

◆ findConstantNodes() [2/2]

bool RooAbsArg::findConstantNodes ( const RooArgSet & observables,
RooArgSet & cacheList,
RooLinkedList & processedNodes )
inherited

Find branch nodes with all-constant parameters, and add them to the list of nodes that can be cached with a dataset in a test statistic calculation.

Definition at line 1649 of file RooAbsArg.cxx.

◆ findNewServer()

RooAbsArg * RooAbsArg::findNewServer ( const RooAbsCollection & newSet,
bool nameChange ) const
inherited

Find the new server in the specified set that matches the old server.

Parameters
[in]newSetSearch this set by name for a new server.
[in]nameChangeIf true, search for an item with the bool attribute "ORIGNAME:<oldName>" set. Use <object>.setAttribute("ORIGNAME:<oldName>") to set this attribute.
Returns
Pointer to the new server or nullptr if there's no unique match.

Definition at line 1053 of file RooAbsArg.cxx.

◆ FindObject() [1/2]

TObject * TObject::FindObject ( const char * name) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object by name inside this object.

Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 425 of file TObject.cxx.

◆ FindObject() [2/2]

TObject * TObject::FindObject ( const TObject * obj) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object inside this object.

Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 435 of file TObject.cxx.

◆ findServer() [1/3]

RooAbsArg * RooAbsArg::findServer ( const char * name) const
inlineinherited

Return server of this with name name. Returns nullptr if not found.

Definition at line 147 of file RooAbsArg.h.

◆ findServer() [2/3]

RooAbsArg * RooAbsArg::findServer ( const RooAbsArg & arg) const
inlineinherited

Return server of this that has the same name as arg. Returns nullptr if not found.

Definition at line 153 of file RooAbsArg.h.

◆ findServer() [3/3]

RooAbsArg * RooAbsArg::findServer ( Int_t index) const
inlineinherited

Return i-th server from server list.

Definition at line 155 of file RooAbsArg.h.

◆ getAttribute()

bool RooAbsArg::getAttribute ( const Text_t * name) const
inherited

Check if a named attribute is set. By default, all attributes are unset.

Definition at line 243 of file RooAbsArg.cxx.

◆ getBin() [1/2]

Int_t RooAbsCategoryLValue::getBin ( const char * = nullptr) const
inlineoverridevirtual

Get the index of the plot bin for the current value of this category.

Implements RooAbsLValue.

Definition at line 81 of file RooAbsCategoryLValue.h.

◆ getBin() [2/2]

Int_t RooAbsCategoryLValue::getBin ( const RooAbsBinning * ) const
inlineoverridevirtual

Implements RooAbsLValue.

Definition at line 97 of file RooAbsCategoryLValue.h.

◆ getBinningNames()

std::list< std::string > RooAbsCategoryLValue::getBinningNames ( ) const
inlineoverridevirtual

Implements RooAbsLValue.

Definition at line 96 of file RooAbsCategoryLValue.h.

◆ getBinningPtr()

const RooAbsBinning * RooAbsCategoryLValue::getBinningPtr ( const char * ) const
inlineoverridevirtual

Implements RooAbsLValue.

Definition at line 95 of file RooAbsCategoryLValue.h.

◆ getBinWidth()

double RooAbsCategoryLValue::getBinWidth ( Int_t ,
const char * = nullptr ) const
inlineoverridevirtual

Implements RooAbsLValue.

Definition at line 85 of file RooAbsCategoryLValue.h.

◆ getCache()

RooAbsCache * RooAbsArg::getCache ( Int_t index) const
inherited

Return registered cache object by index.

Definition at line 1902 of file RooAbsArg.cxx.

◆ getComponents()

RooFit::OwningPtr< RooArgSet > RooAbsArg::getComponents ( ) const
inherited

Create a RooArgSet with all components (branch nodes) of the expression tree headed by this object.

Definition at line 675 of file RooAbsArg.cxx.

◆ getCurrentIndex()

RooAbsCategory::value_type RooAbsCategory::getCurrentIndex ( ) const
virtualinherited

Return index number of current state.

Reimplemented in RooCategory.

Definition at line 120 of file RooAbsCategory.cxx.

◆ getCurrentLabel()

const char * RooAbsCategory::getCurrentLabel ( ) const
virtualinherited

Return label string of current state.

Reimplemented in RooMultiCategory.

Definition at line 136 of file RooAbsCategory.cxx.

◆ getCurrentOrdinalNumber()

unsigned int RooAbsCategory::getCurrentOrdinalNumber ( ) const
inherited

Return ordinal number of the current state.

Definition at line 617 of file RooAbsCategory.cxx.

◆ GetDrawOption()

Option_t * TObject::GetDrawOption ( ) const
virtualinherited

Get option used by the graphics system to draw this object.

Note that before calling object.GetDrawOption(), you must have called object.Draw(..) before in the current pad.

Reimplemented in TBrowser, TFitEditor, TGedFrame, TGFileBrowser, TRootBrowser, and TRootBrowserLite.

Definition at line 445 of file TObject.cxx.

◆ GetDtorOnly()

Longptr_t TObject::GetDtorOnly ( )
staticinherited

Return destructor only flag.

Definition at line 1196 of file TObject.cxx.

◆ GetIconName()

const char * TObject::GetIconName ( ) const
virtualinherited

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 in ROOT::Experimental::XRooFit::xRooNode, TASImage, TBranch, TBranchElement, TGeoVolume, TGMainFrame, TKey, TMethodBrowsable, TSystemFile, and TVirtualBranchBrowsable.

Definition at line 472 of file TObject.cxx.

◆ getIndex()

Int_t RooAbsCategory::getIndex ( ) const
inlineinherited

Retrieve the current index. Use getCurrentIndex() for more clarity.

Definition at line 134 of file RooAbsCategory.h.

◆ getLabel()

const char * RooAbsCategory::getLabel ( ) const
inlineinherited

Retrieve current label. Use getCurrentLabel() for more clarity.

Definition at line 136 of file RooAbsCategory.h.

◆ GetName()

const char * TNamed::GetName ( ) const
inlineoverridevirtualinherited

Returns name of object.

This default method returns the class name. Classes that give objects a name should override this method.

Reimplemented from TObject.

Definition at line 49 of file TNamed.h.

◆ GetObjectInfo()

char * TObject::GetObjectInfo ( Int_t px,
Int_t py ) const
virtualinherited

Returns string containing info about the object at position (px,py).

This method is typically overridden by classes of which the objects can report peculiarities for different positions. Returned string will be re-used (lock in MT environment).

Reimplemented in TASImage, TAxis3D, TColorWheel, TF1, TF2, TFileDrawMap, TGeoNode, TGeoTrack, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph, TH1, THistPainter, TNode, TPaletteAxis, TParallelCoordVar, and TVirtualHistPainter.

Definition at line 491 of file TObject.cxx.

◆ GetObjectStat()

Bool_t TObject::GetObjectStat ( )
staticinherited

Get status of object stat flag.

Definition at line 1181 of file TObject.cxx.

◆ getObservables() [1/5]

bool RooAbsArg::getObservables ( const RooAbsCollection * dataList,
RooArgSet & outputSet,
bool valueOnly = true ) const
inherited

Create a list of leaf nodes in the arg tree starting with ourself as top node that match any of the names the args in the supplied argset.

Returns true only if something went wrong. The complement of this function is getParameters().

Parameters
[in]dataListSet of leaf nodes to match.
[out]outputSetOutput set.
[in]valueOnlyIf this parameter is true, we only match leaves that depend on the value of any arg in dataList.

Definition at line 644 of file RooAbsArg.cxx.

◆ getObservables() [2/5]

RooFit::OwningPtr< RooArgSet > RooAbsArg::getObservables ( const RooAbsData & data) const
inherited

Return the observables of this pdf given the observables defined by data.

Definition at line 602 of file RooAbsArg.cxx.

◆ getObservables() [3/5]

RooFit::OwningPtr< RooArgSet > RooAbsArg::getObservables ( const RooAbsData * set) const
inherited

Create a list of leaf nodes in the arg tree starting with ourself as top node that match any of the names of the variable list of the supplied data set (the dependents).

The caller of this function is responsible for deleting the returned argset. The complement of this function is getParameters().

Definition at line 613 of file RooAbsArg.cxx.

◆ getObservables() [4/5]

RooFit::OwningPtr< RooArgSet > RooAbsArg::getObservables ( const RooArgSet & set,
bool valueOnly = true ) const
inherited

Given a set of possible observables, return the observables that this PDF depends on.

Definition at line 596 of file RooAbsArg.cxx.

◆ getObservables() [5/5]

RooFit::OwningPtr< RooArgSet > RooAbsArg::getObservables ( const RooArgSet * dataList,
bool valueOnly = true ) const
inherited

Create a list of leaf nodes in the arg tree starting with ourself as top node that match any of the names the args in the supplied argset.

The caller of this function is responsible for deleting the returned argset. The complement of this function is getParameters().

Definition at line 627 of file RooAbsArg.cxx.

◆ GetOption()

virtual Option_t * TObject::GetOption ( ) const
inlinevirtualinherited

◆ getOrdinal()

const std::map< std::string, RooAbsCategory::value_type >::value_type & RooAbsCategory::getOrdinal ( unsigned int n) const
inherited

Return name and index of the nth defined state.

When states are defined using defineType() or operator[], the order of insertion is tracked, to mimic the behaviour before modernising the category classes. When directly manipulating the map with state names using states(), the order of insertion is not known, so alphabetical ordering as usual for std::map is used. The latter is faster.

Parameters
[in]nNumber of state to be retrieved.
Returns
A pair with name and index.

Definition at line 597 of file RooAbsCategory.cxx.

◆ getParameters() [1/5]

RooFit::OwningPtr< RooArgSet > RooAbsArg::getParameters ( const RooAbsData & data,
bool stripDisconnected = true ) const
inherited

Return the parameters of this p.d.f when used in conjunction with dataset 'data'.

Definition at line 515 of file RooAbsArg.cxx.

◆ getParameters() [2/5]

RooFit::OwningPtr< RooArgSet > RooAbsArg::getParameters ( const RooAbsData * set,
bool stripDisconnected = true ) const
inherited

Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of the names of the variable list of the supplied data set (the dependents).

The caller of this function is responsible for deleting the returned argset. The complement of this function is getObservables()

Definition at line 509 of file RooAbsArg.cxx.

◆ getParameters() [3/5]

RooFit::OwningPtr< RooArgSet > RooAbsArg::getParameters ( const RooArgSet & observables,
bool stripDisconnected = true ) const
inherited

Return the parameters of the p.d.f given the provided set of observables.

Definition at line 521 of file RooAbsArg.cxx.

◆ getParameters() [4/5]

RooFit::OwningPtr< RooArgSet > RooAbsArg::getParameters ( const RooArgSet * observables,
bool stripDisconnected = true ) const
inherited

Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of the names the args in the supplied argset.

The caller of this function is responsible for deleting the returned argset. The complement of this function is getObservables().

Definition at line 532 of file RooAbsArg.cxx.

◆ getParameters() [5/5]

bool RooAbsArg::getParameters ( const RooArgSet * observables,
RooArgSet & outputSet,
bool stripDisconnected = true ) const
virtualinherited

Fills a list with leaf nodes in the arg tree starting with ourself as top node that don't match any of the names the args in the supplied argset.

Returns true only if something went wrong. The complement of this function is getObservables().

Parameters
[in]observablesSet of leaves to ignore because they are observables and not parameters.
[out]outputSetOutput set.
[in]stripDisconnectedAllow pdf to strip parameters from list before adding it.

Reimplemented in RooStats::HistFactory::RooBarlowBeestonLL, and ROOT::Experimental::XRooFit::ProgressMonitor.

Definition at line 583 of file RooAbsArg.cxx.

◆ getParametersHook()

virtual void RooAbsArg::getParametersHook ( const RooArgSet * ,
RooArgSet * ,
bool  ) const
inlineprotectedvirtualinherited

Reimplemented in RooMultiPdf, and RooMultiReal.

Definition at line 533 of file RooAbsArg.h.

◆ getProxy()

RooAbsProxy * RooAbsArg::getProxy ( Int_t index) const
inherited

Return the nth proxy from the proxy list.

Definition at line 1271 of file RooAbsArg.cxx.

◆ getStringAttribute()

const Text_t * RooAbsArg::getStringAttribute ( const Text_t * key) const
inherited

Get string attribute mapped under key 'key'.

Returns null pointer if no attribute exists under that key

Definition at line 269 of file RooAbsArg.cxx.

◆ GetTitle()

const char * TNamed::GetTitle ( ) const
inlineoverridevirtualinherited

Returns title of object.

This default method returns the class title (i.e. description). Classes that give objects a title should override this method.

Reimplemented from TObject.

Definition at line 50 of file TNamed.h.

◆ getTransientAttribute()

bool RooAbsArg::getTransientAttribute ( const Text_t * name) const
inherited

Check if a named attribute is set.

By default, all attributes are unset.

Definition at line 295 of file RooAbsArg.cxx.

◆ GetUniqueID()

UInt_t TObject::GetUniqueID ( ) const
virtualinherited

Return the unique object id.

Definition at line 480 of file TObject.cxx.

◆ getVariables()

RooFit::OwningPtr< RooArgSet > RooAbsArg::getVariables ( bool stripDisconnected = true) const
inherited

Return RooArgSet with all variables (tree leaf nodes of expression tree).

Definition at line 1909 of file RooAbsArg.cxx.

◆ graphVizAddConnections()

void RooAbsArg::graphVizAddConnections ( std::set< std::pair< RooAbsArg *, RooAbsArg * > > & linkSet)
protectedinherited

Utility function that inserts all point-to-point client-server connections between any two RooAbsArgs in the expression tree headed by this object in the linkSet argument.

Definition at line 2000 of file RooAbsArg.cxx.

◆ graphVizTree() [1/2]

void RooAbsArg::graphVizTree ( const char * fileName,
const char * delimiter = "\n",
bool useTitle = false,
bool useLatex = false )
inherited

Create a GraphViz .dot file visualizing the expression tree headed by this RooAbsArg object.

Use the GraphViz tool suite to make e.g. a gif or ps file from the .dot file. If a node derives from RooAbsReal, its current (unnormalised) value is printed as well.

Based on concept developed by Kyle Cranmer.

Definition at line 1922 of file RooAbsArg.cxx.

◆ graphVizTree() [2/2]

void RooAbsArg::graphVizTree ( std::ostream & os,
const char * delimiter = "\n",
bool useTitle = false,
bool useLatex = false )
inherited

Write the GraphViz representation of the expression tree headed by this RooAbsArg object to the given ostream.

If a node derives from RooAbsReal, its current (unnormalised) value is printed as well.

Based on concept developed by Kyle Cranmer.

Definition at line 1940 of file RooAbsArg.cxx.

◆ HandleTimer()

Bool_t TObject::HandleTimer ( TTimer * timer)
virtualinherited

Execute action in response of a timer timing out.

This method must be overridden if an object has to react to timers.

Reimplemented in TGCommandPlugin, TGDNDManager, TGFileContainer, TGHtml, TGLEventHandler, TGPopupMenu, TGraphTime, TGScrollBar, TGShutter, TGTextEdit, TGTextEditor, TGTextEntry, TGTextView, TGToolTip, TGuiBldDragManager, TGWindow, and TTreeViewer.

Definition at line 516 of file TObject.cxx.

◆ hasClients()

bool RooAbsArg::hasClients ( ) const
inlineinherited

Definition at line 128 of file RooAbsArg.h.

◆ hasDataToken()

bool RooAbsArg::hasDataToken ( ) const
inlineinherited

Definition at line 636 of file RooAbsArg.h.

◆ Hash()

ULong_t TNamed::Hash ( ) const
inlineoverridevirtualinherited

Return hash value for this object.

Note: If this routine is overloaded in a derived class, this derived class should also add

void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
Definition TROOT.h:406

Otherwise, when RecursiveRemove is called (by ~TObject or example) for this type of object, the transversal of THashList and THashTable containers will will have to be done without call Hash (and hence be linear rather than logarithmic complexity). You will also see warnings like

Error in <ROOT::Internal::TCheckHashRecursiveRemoveConsistency::CheckRecursiveRemove>: The class SomeName overrides
TObject::Hash but does not call TROOT::RecursiveRemove in its destructor.
ULong_t Hash() const override
Return hash value for this object.
Definition TNamed.h:51
Mother of all ROOT objects.
Definition TObject.h:42
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Definition TObject.cxx:1098
void RecursiveRemove(TObject *obj) override
Recursively remove this object from the list of Cleanups.
Definition TROOT.cxx:2651

Reimplemented from TObject.

Definition at line 51 of file TNamed.h.

◆ HasInconsistentHash()

Bool_t TObject::HasInconsistentHash ( ) const
inlineinherited

Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.

missing call to RecursiveRemove in destructor).

Note: Since the consistency is only tested for during inserts, this routine will return true for object that have never been inserted whether or not they have a consistent setup. This has no negative side-effect as searching for the object with the right or wrong Hash will always yield a not-found answer (Since anyway no hash can be guaranteed unique, there is always a check)

Definition at line 366 of file TObject.h.

◆ hasIndex()

bool RooAbsCategory::hasIndex ( RooAbsCategory::value_type index) const
inherited

Check if a state with index index exists.

Definition at line 194 of file RooAbsCategory.cxx.

◆ hasLabel()

bool RooAbsCategory::hasLabel ( const std::string & label) const
inlineinherited

Check if a state with name label exists.

Definition at line 61 of file RooAbsCategory.h.

◆ hasRange()

virtual bool RooAbsArg::hasRange ( const char * ) const
inlinevirtualinherited

Reimplemented in RooAbsRealLValue, RooCategory, and RooSuperCategory.

Definition at line 305 of file RooAbsArg.h.

◆ importWorkspaceHook()

virtual bool RooAbsArg::importWorkspaceHook ( RooWorkspace & ws)
inlinevirtualinherited

Reimplemented in RooHistFunc, and RooHistPdf.

Definition at line 507 of file RooAbsArg.h.

◆ Info()

void TObject::Info ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue info message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1072 of file TObject.cxx.

◆ InheritsFrom() [1/2]

Bool_t TObject::InheritsFrom ( const char * classname) const
virtualinherited

Returns kTRUE if object inherits from class "classname".

Reimplemented in TClass.

Definition at line 549 of file TObject.cxx.

◆ InheritsFrom() [2/2]

Bool_t TObject::InheritsFrom ( const TClass * cl) const
virtualinherited

Returns kTRUE if object inherits from TClass cl.

Reimplemented in TClass.

Definition at line 557 of file TObject.cxx.

◆ inhibitDirty()

bool RooAbsArg::inhibitDirty ( ) const
protectedinherited

Definition at line 100 of file RooAbsArg.cxx.

◆ inRange()

virtual bool RooAbsArg::inRange ( const char * ) const
inlinevirtualinherited

Reimplemented in RooAbsRealLValue, RooCategory, and RooSuperCategory.

Definition at line 300 of file RooAbsArg.h.

◆ Inspect()

void TObject::Inspect ( ) const
virtualinherited

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 in ROOT::Experimental::XRooFit::xRooNode, TGFrame, TInspectorObject, and TSystemFile.

Definition at line 570 of file TObject.cxx.

◆ invalidCategory()

decltype(RooAbsCategory::_stateNames) const::value_type & RooAbsCategory::invalidCategory ( )
staticprotectedinherited

A category state to signify an invalid category.

The category name is empty, the index is the minimal int.

Definition at line 69 of file RooAbsCategory.cxx.

◆ InvertBit()

void TObject::InvertBit ( UInt_t f)
inlineinherited

Definition at line 206 of file TObject.h.

◆ ioStreamerPass2()

void RooAbsArg::ioStreamerPass2 ( )
protectedvirtualinherited

Method called by workspace container to finalize schema evolution issues that cannot be handled in a single ioStreamer pass.

A second pass is typically needed when evolving data member of RooAbsArg-derived classes that are container classes with references to other members, which may not yet be 'live' in the first ioStreamer() evolution pass.

Classes may overload this function, but must call the base method in the overloaded call to ensure base evolution is handled properly

Reimplemented in RooHistFunc, and RooProduct.

Definition at line 2145 of file RooAbsArg.cxx.

◆ ioStreamerPass2Finalize()

void RooAbsArg::ioStreamerPass2Finalize ( )
staticprotectedinherited

Method called by workspace container to finalize schema evolution issues that cannot be handled in a single ioStreamer pass.

This static finalize method is called after ioStreamerPass2() is called on each directly listed object in the workspace. It's purpose is to complete schema evolution of any objects in the workspace that are not directly listed as content elements (e.g. analytical convolution tokens )

Definition at line 2169 of file RooAbsArg.cxx.

◆ IsA()

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

Reimplemented from RooAbsCategory.

Reimplemented in RooCategory, and RooSuperCategory.

Definition at line 123 of file RooAbsCategoryLValue.h.

◆ isCategory()

bool RooAbsCategory::isCategory ( ) const
inlineoverridevirtualinherited

Reimplemented from RooAbsArg.

Definition at line 108 of file RooAbsCategory.h.

◆ isConstant()

bool RooAbsArg::isConstant ( ) const
inlineinherited

Check if the "Constant" attribute is set.

Definition at line 283 of file RooAbsArg.h.

◆ isDerived()

virtual bool RooAbsArg::isDerived ( ) const
inlinevirtualinherited

Does value or shape of this arg depend on any other arg?

Reimplemented in RooCategory, RooConstVar, and RooRealVar.

Definition at line 97 of file RooAbsArg.h.

◆ IsDestructed()

Bool_t TObject::IsDestructed ( ) const
inlineinherited

IsDestructed.

Note
This function must be non-virtual as it can be used on destructed (but not yet modified) memory. This is used for example in TClonesArray to record the element that have been destructed but not deleted and thus are ready for re-use (by operator new with placement).
Returns
true if this object's destructor has been run.

Definition at line 186 of file TObject.h.

◆ IsEqual()

Bool_t TObject::IsEqual ( const TObject * obj) const
virtualinherited

Default equal comparison (objects are equal if they have the same address in memory).

More complicated classes might want to override this function.

Reimplemented in TGObject, TObjString, TPair, and TQCommand.

Definition at line 589 of file TObject.cxx.

◆ IsFolder()

◆ isFundamental()

virtual bool RooAbsArg::isFundamental ( ) const
inlinevirtualinherited

Is this object a fundamental type that can be added to a dataset?

Fundamental-type subclasses override this method to return true. Note that this test is subtlely different from the dynamic isDerived() test, e.g. a constant is not derived but is also not fundamental.

Reimplemented in RooCategory, RooErrorVar, RooRealVar, and RooStringVar.

Definition at line 175 of file RooAbsArg.h.

◆ isIdentical()

bool RooAbsCategory::isIdentical ( const RooAbsArg & other,
bool assumeSameType = false ) const
overridevirtualinherited

Implements RooAbsArg.

Definition at line 181 of file RooAbsCategory.cxx.

◆ isIntegrationSafeLValue()

virtual bool RooAbsCategory::isIntegrationSafeLValue ( const RooArgSet * ) const
inlinevirtualinherited

Definition at line 84 of file RooAbsCategory.h.

◆ isLValue()

bool RooAbsCategoryLValue::isLValue ( ) const
inlineoverridevirtual

Is this argument an l-value, i.e., can it appear on the left-hand side of an assignment expression?

LValues are also special since they can potentially be analytically integrated and generated.

Reimplemented from RooAbsArg.

Definition at line 105 of file RooAbsCategoryLValue.h.

◆ IsOnHeap()

Bool_t TObject::IsOnHeap ( ) const
inlineinherited

Definition at line 160 of file TObject.h.

◆ isReducerNode()

virtual bool RooAbsArg::isReducerNode ( ) const
inlinevirtualinherited

Definition at line 514 of file RooAbsArg.h.

◆ isShapeDirty()

bool RooAbsArg::isShapeDirty ( ) const
inlineinherited

Definition at line 350 of file RooAbsArg.h.

◆ isShapeServer() [1/2]

bool RooAbsArg::isShapeServer ( const char * name) const
inlineinherited

Check if this is serving shape to an object with name name.

Definition at line 163 of file RooAbsArg.h.

◆ isShapeServer() [2/2]

bool RooAbsArg::isShapeServer ( const RooAbsArg & arg) const
inlineinherited

Check if this is serving shape to arg.

Definition at line 161 of file RooAbsArg.h.

◆ isSignType()

bool RooAbsCategory::isSignType ( bool mustHaveZero = false) const
inherited

Determine if category has 2 or 3 states with index values -1,0,1.

Definition at line 659 of file RooAbsCategory.cxx.

◆ IsSortable()

bool RooAbsArg::IsSortable ( ) const
inlineoverridevirtualinherited

Reimplemented from TObject.

Definition at line 290 of file RooAbsArg.h.

◆ isValid() [1/2]

bool RooAbsCategory::isValid ( ) const
inlineoverrideprotectedvirtualinherited

WVE (08/21/01) Probably obsolete now.

Reimplemented from RooAbsArg.

Definition at line 193 of file RooAbsCategory.h.

◆ isValid() [2/2]

bool RooAbsCategory::isValid ( const RooCatType & value) const
protectedvirtualinherited

Check if given state is defined for this object.

Definition at line 360 of file RooAbsCategory.cxx.

◆ isValueDirty()

bool RooAbsArg::isValueDirty ( ) const
inlineinherited

Definition at line 356 of file RooAbsArg.h.

◆ isValueDirtyAndClear()

bool RooAbsArg::isValueDirtyAndClear ( ) const
inlineinherited

Definition at line 372 of file RooAbsArg.h.

◆ isValueOrShapeDirtyAndClear()

bool RooAbsArg::isValueOrShapeDirtyAndClear ( ) const
inlineinherited

Definition at line 390 of file RooAbsArg.h.

◆ isValueServer() [1/2]

bool RooAbsArg::isValueServer ( const char * name) const
inlineinherited

Check if this is serving values to an object with name name.

Definition at line 159 of file RooAbsArg.h.

◆ isValueServer() [2/2]

bool RooAbsArg::isValueServer ( const RooAbsArg & arg) const
inlineinherited

Check if this is serving values to arg.

Definition at line 157 of file RooAbsArg.h.

◆ IsZombie()

Bool_t TObject::IsZombie ( ) const
inlineinherited

Definition at line 161 of file TObject.h.

◆ leafNodeServerList()

void RooAbsArg::leafNodeServerList ( RooAbsCollection * list,
const RooAbsArg * arg = nullptr,
bool recurseNonDerived = false ) const
inherited

Fill supplied list with all leaf nodes of the arg tree, starting with ourself as top node.

A leaf node is node that has no servers declared.

Definition at line 443 of file RooAbsArg.cxx.

◆ localNoDirtyInhibit()

bool RooAbsArg::localNoDirtyInhibit ( ) const
inlineinherited

Definition at line 632 of file RooAbsArg.h.

◆ lookupIndex()

RooAbsCategory::value_type RooAbsCategory::lookupIndex ( const std::string & stateName) const
inherited

Find the index number corresponding to the state name.

See: hasLabel() for checking if a given label has been defined.

Returns
Index of the category or std::numeric_limits<int>::min() on failure.

Definition at line 289 of file RooAbsCategory.cxx.

◆ lookupName()

const std::string & RooAbsCategory::lookupName ( value_type index) const
inherited

Get the name corresponding to the given index.

Look up the name corresponding to the given index.

Returns
Name or empty string if index is invalid.

Definition at line 207 of file RooAbsCategory.cxx.

◆ lookupType() [1/3]

const RooCatType * RooAbsCategory::lookupType ( const char * label,
bool printError = false ) const
inherited

Find our type corresponding to the specified label, or return 0 for no match.

Deprecated
RooCatType is not used, any more. This function will create one and let it leak. Use lookupIndex() (preferred) or lookupName() instead.

Definition at line 335 of file RooAbsCategory.cxx.

◆ lookupType() [2/3]

const RooCatType * RooAbsCategory::lookupType ( const RooCatType & other,
bool printError = false ) const
inherited

Find our type that matches the specified type, or return 0 for no match.

Deprecated
RooCatType is not used, any more. This function will create one and let it leak. Use lookupIndex() (preferred) or lookupName() instead.

Definition at line 302 of file RooAbsCategory.cxx.

◆ lookupType() [3/3]

const RooCatType * RooAbsCategory::lookupType ( RooAbsCategory::value_type index,
bool printError = false ) const
inherited

Find our type corresponding to the specified index, or return nullptr for no match.

Deprecated
RooCatType is not used, any more. This function will create one and let it leak. Use lookupIndex() (preferred) or lookupName() instead.

Definition at line 313 of file RooAbsCategory.cxx.

◆ ls()

void TNamed::ls ( Option_t * option = "") const
overridevirtualinherited

List TNamed name and title.

Reimplemented from TObject.

Reimplemented in ROOT::Experimental::XRooFit::xRooBrowser, TNode, TROOT, TStreamerBase, TStreamerElement, TStreamerInfo, TStreamerSTL, TTask, TText, and TVirtualStreamerInfo.

Definition at line 112 of file TNamed.cxx.

◆ makeLegacyIterator()

RooAbsArg::RefCountListLegacyIterator_t * RooAbsArg::makeLegacyIterator ( const RefCountList_t & list) const
privateinherited

Definition at line 2185 of file RooAbsArg.cxx.

◆ MakeZombie()

void TObject::MakeZombie ( )
inlineprotectedinherited

Definition at line 55 of file TObject.h.

◆ MayNotUse()

void TObject::MayNotUse ( const char * method) const
inherited

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).

Definition at line 1160 of file TObject.cxx.

◆ 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.

◆ namePtr()

const TNamed * RooAbsArg::namePtr ( ) const
inlineinherited

De-duplicated pointer to this object's name.

This can be used for fast name comparisons. like if (namePtr() == other.namePtr()).

Note
TNamed::GetName() will return a pointer that's different for each object, but namePtr() always points to a unique instance.

Definition at line 502 of file RooAbsArg.h.

◆ nextAvailableStateIndex()

RooAbsCategory::value_type RooAbsCategory::nextAvailableStateIndex ( ) const
protectedinherited

Definition at line 708 of file RooAbsCategory.cxx.

◆ Notify()

Bool_t TObject::Notify ( )
virtualinherited

This method must be overridden to handle object notification (the base implementation is no-op).

Different objects in ROOT use the Notify method for different purposes, in coordination with other objects that call this method at the appropriate time.

For example, TLeaf uses it to load class information; TBranchRef to load contents of referenced branches TBranchRef; most notably, based on Notify, TChain implements a callback mechanism to inform interested parties when it switches to a new sub-tree.

Reimplemented in h1analysis, h1analysisTreeReader, TARInterruptHandler, TASInputHandler, TASInterruptHandler, TASLogHandler, TASSigPipeHandler, TBlinkTimer, TBranchElement, TBranchRef, TBreakLineCom, TBrowserTimer, TCollection, TDelCharCom, TDelTextCom, TFileHandler, TGContainerKeyboardTimer, TGContainerScrollTimer, TGInputHandler, TGLRedrawTimer, TGTextEditHist, TGuiBldDragManagerRepeatTimer, TIdleTimer, TInsCharCom, TInsTextCom, TInterruptHandler, TLeafObject, TMessageHandler, TNotifyLink< Type >, TNotifyLink< RNoCleanupNotifierHelper >, TNotifyLink< ROOT::Detail::TBranchProxy >, TNotifyLink< TTreeReader >, TPopupDelayTimer, TProcessEventTimer, TRefTable, TRepeatTimer, TSBRepeatTimer, TSelector, TSelectorDraw, TSelectorEntries, TSignalHandler, TSingleShotCleaner, TSocketHandler, TStdExceptionHandler, TSysEvtHandler, TTermInputHandler, TThreadTimer, TTimeOutTimer, TTimer, TTipDelayTimer, TTree, TTreeFormula, TTreeFormulaManager, TTreeReader, TViewTimer, and TViewUpdateTimer.

Definition at line 618 of file TObject.cxx.

◆ numBins()

Int_t RooAbsCategoryLValue::numBins ( const char * rangeName = nullptr) const
overridevirtual

Return the number of fit bins ( = number of types ).

Implements RooAbsLValue.

Definition at line 188 of file RooAbsCategoryLValue.cxx.

◆ numCaches()

Int_t RooAbsArg::numCaches ( ) const
inherited

Return number of registered caches.

Definition at line 1895 of file RooAbsArg.cxx.

◆ numProxies()

Int_t RooAbsArg::numProxies ( ) const
inherited

Return the number of registered proxies.

Definition at line 1281 of file RooAbsArg.cxx.

◆ numTypes()

Int_t RooAbsCategory::numTypes ( const char * = nullptr) const
inlineinherited

Return number of types defined (in range named rangeName if rangeName!=nullptr).

Definition at line 130 of file RooAbsCategory.h.

◆ observableOverlaps() [1/2]

bool RooAbsArg::observableOverlaps ( const RooAbsData * dset,
const RooAbsArg & testArg ) const
inherited

Test if any of the dependents of the arg tree (as determined by getObservables) overlaps with those of the testArg.

Definition at line 775 of file RooAbsArg.cxx.

◆ observableOverlaps() [2/2]

bool RooAbsArg::observableOverlaps ( const RooArgSet * depList,
const RooAbsArg & testArg ) const
inherited

Test if any of the dependents of the arg tree (as determined by getObservables) overlaps with those of the testArg.

Definition at line 783 of file RooAbsArg.cxx.

◆ Obsolete()

void TObject::Obsolete ( const char * method,
const char * asOfVers,
const char * removedFromVers ) const
inherited

Use this method to declare a method obsolete.

Specify as of which version the method is obsolete and as from which version it will be removed.

Definition at line 1169 of file TObject.cxx.

◆ operator delete() [1/3]

void TObject::operator delete ( void * ptr,
size_t size )
inherited

Operator delete for sized deallocation.

Definition at line 1234 of file TObject.cxx.

◆ operator delete() [2/3]

void TObject::operator delete ( void * ptr)
inherited

Operator delete.

Definition at line 1212 of file TObject.cxx.

◆ operator delete() [3/3]

void TObject::operator delete ( void * ptr,
void * vp )
inherited

Only called by placement new when throwing an exception.

Definition at line 1266 of file TObject.cxx.

◆ operator delete[]() [1/3]

void TObject::operator delete[] ( void * ptr,
size_t size )
inherited

Operator delete [] for sized deallocation.

Definition at line 1245 of file TObject.cxx.

◆ operator delete[]() [2/3]

void TObject::operator delete[] ( void * ptr)
inherited

Operator delete [].

Definition at line 1223 of file TObject.cxx.

◆ operator delete[]() [3/3]

void TObject::operator delete[] ( void * ptr,
void * vp )
inherited

Only called by placement new[] when throwing an exception.

Definition at line 1274 of file TObject.cxx.

◆ operator new() [1/2]

void * TObject::operator new ( size_t sz)
inlineinherited

Definition at line 189 of file TObject.h.

◆ operator new() [2/2]

void * TObject::operator new ( size_t sz,
void * vp )
inlineinherited

Definition at line 191 of file TObject.h.

◆ operator new[]() [1/2]

void * TObject::operator new[] ( size_t sz)
inlineinherited

Definition at line 190 of file TObject.h.

◆ operator new[]() [2/2]

void * TObject::operator new[] ( size_t sz,
void * vp )
inlineinherited

Definition at line 192 of file TObject.h.

◆ operator!=() [1/3]

bool RooAbsCategory::operator!= ( const char * label)
inlineinherited

Definition at line 55 of file RooAbsCategory.h.

◆ operator!=() [2/3]

bool RooAbsCategory::operator!= ( const RooAbsArg & other)
inlineinherited

Definition at line 57 of file RooAbsCategory.h.

◆ operator!=() [3/3]

bool RooAbsCategory::operator!= ( value_type index)
inlineinherited

Definition at line 53 of file RooAbsCategory.h.

◆ operator=() [1/3]

RooAbsArg & RooAbsCategoryLValue::operator= ( const char * label)

Assignment operator from string pointer.

Definition at line 76 of file RooAbsCategoryLValue.cxx.

◆ operator=() [2/3]

RooAbsArg & RooAbsCategoryLValue::operator= ( const RooAbsCategory & other)

Assignment from another RooAbsCategory.

This will use the state name of the other object to set the corresponding state. This is less efficient then directly assigning the state index.

Definition at line 88 of file RooAbsCategoryLValue.cxx.

◆ operator=() [3/3]

RooAbsArg & RooAbsCategoryLValue::operator= ( int index)

Assignment operator from integer index number.

Definition at line 65 of file RooAbsCategoryLValue.cxx.

◆ operator==() [1/3]

bool RooAbsCategory::operator== ( const char * label) const
inherited

Equality operator with a string (compares with state label string).

Definition at line 161 of file RooAbsCategory.cxx.

◆ operator==() [2/3]

bool RooAbsCategory::operator== ( const RooAbsArg & other) const
overridevirtualinherited

Equality operator with another RooAbsArg.

Only functional is also a RooAbsCategory, will return true if index is the same

Implements RooAbsArg.

Definition at line 172 of file RooAbsCategory.cxx.

◆ operator==() [3/3]

bool RooAbsCategory::operator== ( RooAbsCategory::value_type index) const
inherited

Equality operator with a integer (compares with state index number).

Definition at line 151 of file RooAbsCategory.cxx.

◆ operMode()

OperMode RooAbsArg::operMode ( ) const
inlineinherited

Query the operation mode of this node.

Definition at line 419 of file RooAbsArg.h.

◆ operModeHook()

virtual void RooAbsArg::operModeHook ( )
inlineprotectedvirtualinherited

Reimplemented in RooCachedReal.

Definition at line 526 of file RooAbsArg.h.

◆ optimizeCacheMode() [1/2]

void RooAbsArg::optimizeCacheMode ( const RooArgSet & observables)
virtualinherited

Activate cache mode optimization with given definition of observables.

The cache operation mode of all objects in the expression tree will modified such that all nodes that depend directly or indirectly on any of the listed observables will be set to ADirty, as they are expected to change every time. This save change tracking overhead for nodes that are a priori known to change every time

Definition at line 1556 of file RooAbsArg.cxx.

◆ optimizeCacheMode() [2/2]

void RooAbsArg::optimizeCacheMode ( const RooArgSet & observables,
RooArgSet & optimizedNodes,
RooLinkedList & processedNodes )
virtualinherited

Activate cache mode optimization with given definition of observables.

The cache operation mode of all objects in the expression tree will modified such that all nodes that depend directly or indirectly on any of the listed observables will be set to ADirty, as they are expected to change every time. This save change tracking overhead for nodes that are a priori known to change every time

Definition at line 1574 of file RooAbsArg.cxx.

◆ optimizeDirtyHook()

virtual void RooAbsArg::optimizeDirtyHook ( const RooArgSet * )
inlineprotectedvirtualinherited

Definition at line 528 of file RooAbsArg.h.

◆ overlaps()

bool RooAbsArg::overlaps ( const RooAbsArg & testArg,
bool valueOnly = false ) const
inherited

Test if any of the nodes of tree are shared with that of the given tree.

Definition at line 764 of file RooAbsArg.cxx.

◆ ownedComponents()

const RooArgSet * RooAbsArg::ownedComponents ( ) const
inlineinherited

Definition at line 486 of file RooAbsArg.h.

◆ Paint()

void TObject::Paint ( Option_t * option = "")
virtualinherited

This method must be overridden if a class wants to paint itself.

The difference between Paint() and Draw() is that when a object draws itself it is added to the display list of the pad in which it is drawn (and automatically redrawn whenever the pad is redrawn). While paint just draws the object without adding it to the pad display list.

Reimplemented in ROOT::Experimental::RTreeMapPainter, ROOT::RGeoPainter, TAnnotation, TArrow, TASImage, TASPaletteEditor::LimitLine, TASPaletteEditor::PaintPalette, TAxis3D, TBits, TBox, TButton, TCanvas, TClassTree, TCollection, TColorWheel, TCrown, TDiamond, TDirectory, TEfficiency, TEllipse, TEveArrow, TEveCaloViz, TEveDigitSet, TEveGeoShape, TEveGeoTopNode, TEvePlot3D, TEvePointSet, TEveProjectionAxes, TEveScene, TEveShape, TEveStraightLineSet, TEveText, TEveTriangleSet, TExec, TF1, TF2, TF3, TFile, TFileDrawMap, TFrame, TGaxis, TGenerator, TGeoBoolNode, TGeoIntersection, TGeoNode, TGeoOverlap, TGeoPainter, TGeoPhysicalNode, TGeoShape, TGeoSubtraction, TGeoTrack, TGeoUnion, TGeoVGShape, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph2D, TGraph2DPainter, TGraph, TGraphEdge, TGraphNode, TGraphPolargram, TGraphTime, TH1, THistPainter, THStack, TLatex, TLegend, TLine, TMacro, TMarker3DBox, TMarker, TMathText, TMultiGraph, TNode, TNodeDiv, TPad, TPaletteAxis, TParallelCoord, TParallelCoordRange, TParallelCoordVar, TParticle, TPave, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPie, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TPrimary, TRatioPlot, TScatter2D, TScatter, TShape, TSpectrum2Painter, TSpider, TSpline, TSQLFile, TStyle, TText, TTreePerfStats, TVirtualGeoPainter, TVirtualGeoTrack, TVirtualHistPainter, TVirtualPad, TWbox, and TXMLFile.

Definition at line 631 of file TObject.cxx.

◆ Pop()

void TObject::Pop ( )
virtualinherited

Pop on object drawn in a pad to the top of the display list.

I.e. it will be drawn last and on top of all other primitives.

Reimplemented in TFrame, TPad, and TVirtualPad.

Definition at line 640 of file TObject.cxx.

◆ Print()

void RooAbsArg::Print ( Option_t * options = nullptr) const
inlineoverridevirtualinherited

Print the object to the defaultPrintStream().

Parameters
[in]optionsV print verbose. T print a tree structure with all children.

Reimplemented from TObject.

Definition at line 238 of file RooAbsArg.h.

◆ printAddress()

void RooAbsArg::printAddress ( std::ostream & os) const
overridevirtualinherited

Print address of this RooAbsArg.

Reimplemented from RooPrintable.

Definition at line 1350 of file RooAbsArg.cxx.

◆ printArgs()

◆ printAttribList()

void RooAbsArg::printAttribList ( std::ostream & os) const
protectedinherited

Print the attribute list.

Definition at line 1471 of file RooAbsArg.cxx.

◆ printClassName()

void RooAbsArg::printClassName ( std::ostream & os) const
overridevirtualinherited

Print object class name.

Reimplemented from RooPrintable.

Definition at line 1344 of file RooAbsArg.cxx.

◆ printCompactTree() [1/2]

void RooAbsArg::printCompactTree ( const char * indent = "",
const char * filename = nullptr,
const char * namePat = nullptr,
RooAbsArg * client = nullptr )
inherited

Print tree structure of expression tree on stdout, or to file if filename is specified.

If namePat is not "*", only nodes with names matching the pattern will be printed. The client argument is used in recursive calls to properly display the value or shape nature of the client-server links. It should be zero in calls initiated by users.

Definition at line 1756 of file RooAbsArg.cxx.

◆ printCompactTree() [2/2]

void RooAbsArg::printCompactTree ( std::ostream & os,
const char * indent = "",
const char * namePat = nullptr,
RooAbsArg * client = nullptr )
inherited

Print tree structure of expression tree on given ostream.

If namePat is not "*", only nodes with names matching the pattern will be printed. The client argument is used in recursive calls to properly display the value or shape nature of the client-server links. It should be zero in calls initiated by users.

Definition at line 1771 of file RooAbsArg.cxx.

◆ printCompactTreeHook()

void RooAbsArg::printCompactTreeHook ( std::ostream & os,
const char * ind = "" )
virtualinherited

Hook function interface for object to insert additional information when printed in the context of a tree structure.

This default implementation prints nothing

Reimplemented in RooNumConvolution.

Definition at line 1872 of file RooAbsArg.cxx.

◆ printComponentTree()

void RooAbsArg::printComponentTree ( const char * indent = "",
const char * namePat = nullptr,
Int_t nLevel = 999 )
inherited

Print tree structure of expression tree on given ostream, only branch nodes are printed.

Lead nodes (variables) will not be shown

If namePat is not "*", only nodes with names matching the pattern will be printed.

Definition at line 1818 of file RooAbsArg.cxx.

◆ printDirty()

void RooAbsArg::printDirty ( bool depth = true) const
inherited

Print information about current value dirty state information.

If depth flag is true, information is recursively printed for all nodes in this arg tree.

Definition at line 1528 of file RooAbsArg.cxx.

◆ 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.

◆ printMetaArgs()

virtual void RooAbsArg::printMetaArgs ( std::ostream & ) const
inlinevirtualinherited

◆ printMultiline()

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

Print info about this object to the specified stream.

In addition to the info from RooAbsArg::printStream() we add:

Shape : label, index, defined types 

Reimplemented from RooAbsArg.

Reimplemented in RooBinningCategory, RooMappedCategory, RooMultiCategory, RooSuperCategory, and RooThresholdCategory.

Definition at line 413 of file RooAbsCategory.cxx.

◆ printName()

void RooAbsArg::printName ( std::ostream & os) const
overridevirtualinherited

Print object name.

Reimplemented from RooPrintable.

Definition at line 1330 of file RooAbsArg.cxx.

◆ 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 RooAbsArg::printTitle ( std::ostream & os) const
overridevirtualinherited

Print object title.

Reimplemented from RooPrintable.

Definition at line 1337 of file RooAbsArg.cxx.

◆ printTree()

void RooAbsArg::printTree ( std::ostream & os,
TString indent = "" ) const
overridevirtualinherited

Print object tree structure.

Reimplemented from RooPrintable.

Definition at line 1448 of file RooAbsArg.cxx.

◆ printValue()

void RooAbsCategory::printValue ( std::ostream & os) const
overridevirtualinherited

Print value (label name).

Reimplemented from RooPrintable.

Definition at line 400 of file RooAbsCategory.cxx.

◆ randomize()

void RooAbsCategoryLValue::randomize ( const char * rangeName = nullptr)
overridevirtual

Randomize current value.

If the result is not in the range, the randomisation is repeated.

Implements RooAbsLValue.

Definition at line 135 of file RooAbsCategoryLValue.cxx.

◆ Read()

Int_t TObject::Read ( const char * name)
virtualinherited

Read contents of object with specified name from the current directory.

First the key with the given name is searched in the current directory, next the key buffer is deserialized into the object. The object must have been created before via the default constructor. See TObject::Write().

Reimplemented in TBuffer, TKey, TKeySQL, and TKeyXML.

Definition at line 673 of file TObject.cxx.

◆ readFromStream()

bool RooAbsCategory::readFromStream ( std::istream & is,
bool compact,
bool verbose = false )
overridevirtualinherited

Read object contents from stream (dummy for now).

Implements RooAbsArg.

Reimplemented in RooCategory, RooMappedCategory, and RooMultiCategory.

Definition at line 380 of file RooAbsCategory.cxx.

◆ recomputeShape()

virtual void RooAbsCategory::recomputeShape ( )
protectedpure virtualinherited

If a category depends on the shape of others, i.e. its state numbers or names depend on the states of other categories, this function has to be implemented to recompute _stateNames and _insertionOrder.

If one of these two changes, setShapeDirty() has to be called to propagate this information to possible users of this category.

Implemented in RooBinningCategory, RooCategory, RooMappedCategory, RooMultiCategory, RooSuperCategory, and RooThresholdCategory.

◆ recursiveCheckObservables()

bool RooAbsArg::recursiveCheckObservables ( const RooArgSet * nset) const
inherited

Recursively call checkObservables on all nodes in the expression tree.

Definition at line 694 of file RooAbsArg.cxx.

◆ recursiveRedirectServers()

bool RooAbsArg::recursiveRedirectServers ( const RooAbsCollection & newSet,
bool mustReplaceAll = false,
bool nameChange = false,
bool recurseInNewSet = true )
inherited

Recursively replace all servers with the new servers in newSet.

This substitutes objects that we receive values from (also indirectly through other objects) with new objects that have the same name.

Copied from redirectServers:

This substitutes objects that we receive values from with new objects that have the same name. See: recursiveRedirectServers() Use recursive version if servers that are only indirectly serving this object should be replaced as well. See: redirectServers() If only the direct servers of an object need to be replaced.

Note that changing the types of objects is generally allowed, but can be wrong if the interface of an object changes. For example, one can reparametrise a model by substituting a variable with a function:

\[ f(x\, |\, a) = a \cdot x \rightarrow f(x\, |\, b) = (2.1 \cdot b) \cdot x \]

If an object, however, expects a PDF, and this is substituted with a function that isn't normalised, wrong results might be obtained or it might even crash the program. The types of the objects being substituted are not checked.

Parameters
[in]newSetOrigSet of new servers that should be used instead of the current servers.
[in]mustReplaceAllA warning is printed and error status is returned if not all servers could be substituted successfully.
[in]nameChangeIf false, an object named "x" is only replaced with an object also named "x" in newSetOrig. If the object in newSet is called differently, set nameChange to true and use setAttribute() on the x object:
objectToReplaceX.setAttribute("ORIGNAME:x")
Now, the renamed object will be selected based on the attribute "ORIGNAME:<name>".
[in]isRecursionStepInternal switch used when called from recursiveRedirectServers().
newSetRoo collection
recurseInNewSetbe recursive

Definition at line 1138 of file RooAbsArg.cxx.

◆ RecursiveRemove()

◆ redirectServers() [1/2]

bool RooAbsArg::redirectServers ( const RooAbsCollection & newSetOrig,
bool mustReplaceAll = false,
bool nameChange = false,
bool isRecursionStep = false )
inherited

Replace all direct servers of this object with the new servers in newServerList.

This substitutes objects that we receive values from with new objects that have the same name. See: recursiveRedirectServers() Use recursive version if servers that are only indirectly serving this object should be replaced as well. See: redirectServers() If only the direct servers of an object need to be replaced.

Note that changing the types of objects is generally allowed, but can be wrong if the interface of an object changes. For example, one can reparametrise a model by substituting a variable with a function:

\[ f(x\, |\, a) = a \cdot x \rightarrow f(x\, |\, b) = (2.1 \cdot b) \cdot x \]

If an object, however, expects a PDF, and this is substituted with a function that isn't normalised, wrong results might be obtained or it might even crash the program. The types of the objects being substituted are not checked.

Parameters
[in]newSetOrigSet of new servers that should be used instead of the current servers.
[in]mustReplaceAllA warning is printed and error status is returned if not all servers could be substituted successfully.
[in]nameChangeIf false, an object named "x" is only replaced with an object also named "x" in newSetOrig. If the object in newSet is called differently, set nameChange to true and use setAttribute() on the x object:
objectToReplaceX.setAttribute("ORIGNAME:x")
Now, the renamed object will be selected based on the attribute "ORIGNAME:<name>".
[in]isRecursionStepInternal switch used when called from recursiveRedirectServers().

Definition at line 885 of file RooAbsArg.cxx.

◆ redirectServers() [2/2]

bool RooAbsArg::redirectServers ( std::unordered_map< RooAbsArg *, RooAbsArg * > const & replacements)
inherited

Replace some servers of this object.

If there are proxies that correspond to the replaced servers, these proxies are adjusted as well.

Parameters
[in]replacementsMap that specifies which args replace which servers.

Definition at line 1003 of file RooAbsArg.cxx.

◆ redirectServersHook()

bool RooAbsArg::redirectServersHook ( const RooAbsCollection & newServerList,
bool mustReplaceAll,
bool nameChange,
bool isRecursiveStep )
virtualinherited

Function that is called at the end of redirectServers().

Can be overloaded to inject some class-dependent behavior after server redirection, e.g. resetting of caches. The return value is meant to be an error flag, so in case something goes wrong the function should return true. If you overload this function, don't forget to also call the function of the base class.

See: redirectServers() For a detailed explanation of the function parameters.

Reimplemented in RooAbsPdf, RooAbsReal, RooAddPdf, RooDerivative, RooFormulaVar, RooGenericPdf, RooNumConvolution, RooProdPdf, RooProfileLL, RooProjectedPdf, RooRealIntegral, and RooResolutionModel.

Definition at line 1160 of file RooAbsArg.cxx.

◆ registerCache()

void RooAbsArg::registerCache ( RooAbsCache & cache)
inherited

Register RooAbsCache with this object.

This function is called by RooAbsCache constructors for objects that are a datamember of this RooAbsArg. By registering itself the RooAbsArg is aware of all its cache data members and will forward server change and cache mode change calls to the cache objects, which in turn can forward them their contents

Definition at line 1881 of file RooAbsArg.cxx.

◆ registerProxy() [1/3]

void RooAbsArg::registerProxy ( RooArgProxy & proxy)
protectedinherited

Register an RooArgProxy in the proxy list.

This function is called by owned proxies upon creation. After registration, this arg will forward pointer changes from serverRedirects and updates in cached normalization sets to the proxies immediately after they occur. The proxied argument is also added as value and/or shape server

Definition at line 1173 of file RooAbsArg.cxx.

◆ registerProxy() [2/3]

void RooAbsArg::registerProxy ( RooListProxy & proxy)
protectedinherited

Register an RooListProxy in the proxy list.

This function is called by owned proxies upon creation. After registration, this arg will forward pointer changes from serverRedirects and updates in cached normalization sets to the proxies immediately after they occur.

Definition at line 1240 of file RooAbsArg.cxx.

◆ registerProxy() [3/3]

void RooAbsArg::registerProxy ( RooSetProxy & proxy)
protectedinherited

Register an RooSetProxy in the proxy list.

This function is called by owned proxies upon creation. After registration, this arg will forward pointer changes from serverRedirects and updates in cached normalization sets to the proxies immediately after they occur.

Definition at line 1211 of file RooAbsArg.cxx.

◆ removeServer()

void RooAbsArg::removeServer ( RooAbsArg & server,
bool force = false )
inherited

Unregister another RooAbsArg as a server to us, ie, declare that we no longer depend on its value and shape.

Definition at line 356 of file RooAbsArg.cxx.

◆ removeStringAttribute()

void RooAbsArg::removeStringAttribute ( const Text_t * key)
inherited

Delete a string attribute with a given key.

Definition at line 261 of file RooAbsArg.cxx.

◆ replaceServer()

void RooAbsArg::replaceServer ( RooAbsArg & oldServer,
RooAbsArg & newServer,
bool propValue,
bool propShape )
inherited

Replace 'oldServer' with 'newServer', specifying whether the new server has value or shape server properties.

Warning
This function should not be used! This method is quite unsafe for many reasons. For once, the new server will be put at the end of the server list, no matter the position of the original server. This might mess up code that expects the servers to be in a certain order. Furthermore, the proxy objects corresponding to the server are not updated, leaving the object in an invalid state where the servers are out of sync with the proxies. This can have very bad consequences. Finally, by having to manually specify the value and shape server properties, it is very easy to get them wrong.

If you want to safely replace a server, you should use RooAbsArg::redirectServers(), which replaces the server in-place at the same position of the server list, keeps the same value and shape server properties, and also updates the corresponding proxies.

Definition at line 397 of file RooAbsArg.cxx.

◆ ResetBit()

void TObject::ResetBit ( UInt_t f)
inlineinherited

Definition at line 203 of file TObject.h.

◆ resetDataToken()

void RooAbsArg::resetDataToken ( )
inlineinherited

Definition at line 638 of file RooAbsArg.h.

◆ retrieveLegacyState()

RooCatType * RooAbsCategory::retrieveLegacyState ( value_type index) const
protectedinherited

Return the legacy RooCatType corresponding to index. If it doesn't exist, create one.

Definition at line 697 of file RooAbsCategory.cxx.

◆ SaveAs()

void TObject::SaveAs ( const char * filename = "",
Option_t * option = "" ) const
virtualinherited

Save this object in the file specified by filename.

  • if "filename" contains ".root" the object is saved in filename as root binary file.
  • if "filename" contains ".xml" the object is saved in filename as a xml ascii file.
  • if "filename" contains ".cc" the object is saved in filename as C code independent from ROOT. The code is generated via SavePrimitive(). Specific code should be implemented in each object to handle this option. Like in TF1::SavePrimitive().
  • 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 in ROOT::Experimental::XRooFit::xRooNode, TClassTree, TFolder, TGeoVolume, TGObject, TGraph, TH1, TPad, TPaveClass, TSpline3, TSpline5, TSpline, TTreePerfStats, and TVirtualPad.

Definition at line 708 of file TObject.cxx.

◆ SavePrimitive()

void TObject::SavePrimitive ( std::ostream & out,
Option_t * option = "" )
virtualinherited

Save a primitive as a C++ statement(s) on output stream "out".

Reimplemented in TAnnotation, TArc, TArrow, TASImage, TAxis3D, TBox, TButton, TCanvas, TChain, TCrown, TCurlyArc, TCurlyLine, TCutG, TDiamond, TEfficiency, TEllipse, TExec, TF12, TF1, TF2, TF3, TFrame, TGaxis, TGButton, TGButtonGroup, TGCanvas, TGCheckButton, TGColorSelect, TGColumnLayout, TGComboBox, TGCompositeFrame, TGContainer, TGDockableFrame, TGDoubleHSlider, TGDoubleVSlider, TGedMarkerSelect, TGedPatternSelect, TGeoArb8, TGeoBBox, TGeoBoolNode, TGeoCombiTrans, TGeoCompositeShape, TGeoCone, TGeoConeSeg, TGeoCtub, TGeoDecayChannel, TGeoElementRN, TGeoEltu, TGeoGtra, TGeoHalfSpace, TGeoHMatrix, TGeoHype, TGeoIdentity, TGeoIntersection, TGeoMaterial, TGeoMedium, TGeoMixture, TGeoPara, TGeoParaboloid, TGeoPatternCylPhi, TGeoPatternCylR, TGeoPatternParaX, TGeoPatternParaY, TGeoPatternParaZ, TGeoPatternSphPhi, TGeoPatternSphR, TGeoPatternSphTheta, TGeoPatternTrapZ, TGeoPatternX, TGeoPatternY, TGeoPatternZ, TGeoPcon, TGeoPgon, TGeoRotation, TGeoScaledShape, TGeoShapeAssembly, TGeoSphere, TGeoSubtraction, TGeoTessellated, TGeoTorus, TGeoTranslation, TGeoTrap, TGeoTrd1, TGeoTrd2, TGeoTube, TGeoTubeSeg, TGeoUnion, TGeoVolume, TGeoXtru, TGFileContainer, TGFont, TGFrame, TGFSComboBox, TGGC, TGGroupFrame, TGHButtonGroup, TGHorizontal3DLine, TGHorizontalFrame, TGHorizontalLayout, TGHProgressBar, TGHScrollBar, TGHSlider, TGHSplitter, TGHtml, TGIcon, TGLabel, TGLayoutHints, TGLineStyleComboBox, TGLineWidthComboBox, TGListBox, TGListDetailsLayout, TGListLayout, TGListTree, TGListView, TGLVContainer, TGMainFrame, TGMatrixLayout, TGMdiFrame, TGMdiMainFrame, TGMdiMenuBar, TGMenuBar, TGMenuTitle, TGNumberEntry, TGNumberEntryField, TGPictureButton, TGPopupMenu, TGProgressBar, TGRadioButton, TGraph2D, TGraph2DAsymmErrors, TGraph2DErrors, TGraph, TGraphAsymmErrors, TGraphBentErrors, TGraphEdge, TGraphErrors, TGraphMultiErrors, TGraphNode, TGraphPolar, TGraphPolargram, TGraphStruct, TGroupButton, TGRowLayout, TGShapedFrame, TGShutter, TGShutterItem, TGSplitFrame, TGStatusBar, TGTab, TGTabLayout, TGTableLayout, TGTableLayoutHints, TGTextButton, TGTextEdit, TGTextEntry, TGTextLBEntry, TGTextView, TGTileLayout, TGToolBar, TGTransientFrame, TGTripleHSlider, TGTripleVSlider, TGVButtonGroup, TGVertical3DLine, TGVerticalFrame, TGVerticalLayout, TGVFileSplitter, TGVProgressBar, TGVScrollBar, TGVSlider, TGVSplitter, TGXYLayout, TGXYLayoutHints, TH1, TH2Poly, THelix, THStack, TLatex, TLegend, TLine, TMacro, TMarker3DBox, TMarker, TMathText, TMultiGraph, TPad, TPaletteAxis, TParallelCoord, TParallelCoordVar, TPave, TPaveClass, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPie, TPieSlice, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TProfile2D, TProfile3D, TProfile, TRootContainer, TRootEmbeddedCanvas, TScatter2D, TScatter, TSlider, TSliderBox, TSpline3, TSpline5, TStyle, TText, TTreePerfStats, and TWbox.

Definition at line 858 of file TObject.cxx.

◆ SavePrimitiveConstructor()

void TObject::SavePrimitiveConstructor ( std::ostream & out,
TClass * cl,
const char * variable_name,
const char * constructor_agrs = "",
Bool_t empty_line = kTRUE )
staticprotectedinherited

Save object constructor in the output stream "out".

Can be used as first statement when implementing SavePrimitive() method for the object

Definition at line 777 of file TObject.cxx.

◆ SavePrimitiveDraw()

void TObject::SavePrimitiveDraw ( std::ostream & out,
const char * variable_name,
Option_t * option = nullptr )
staticprotectedinherited

Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.

Definition at line 845 of file TObject.cxx.

◆ SavePrimitiveNameTitle()

void TNamed::SavePrimitiveNameTitle ( std::ostream & out,
const char * variable_name )
protectedinherited

Save object name and title into the output stream "out".

Definition at line 135 of file TNamed.cxx.

◆ SavePrimitiveVector()

TString TObject::SavePrimitiveVector ( std::ostream & out,
const char * prefix,
Int_t len,
Double_t * arr,
Int_t flag = 0 )
staticprotectedinherited

Save array in the output stream "out" as vector.

Create unique variable name based on prefix value Returns name of vector which can be used in constructor or in other places of C++ code If flag === kTRUE, just add empty line If flag === 111, check if array is empty and return nullptr or <vectorname>.data()

Definition at line 796 of file TObject.cxx.

◆ serverNameChangeHook()

virtual void RooAbsArg::serverNameChangeHook ( const RooAbsArg * ,
const RooAbsArg *  )
inlinevirtualinherited

Definition at line 197 of file RooAbsArg.h.

◆ servers()

const RefCountList_t & RooAbsArg::servers ( ) const
inlineinherited

List of all servers of this object.

Definition at line 145 of file RooAbsArg.h.

◆ setAttribute()

void RooAbsArg::setAttribute ( const Text_t * name,
bool value = true )
inherited

Set (default) or clear a named boolean attribute of this object.

Definition at line 224 of file RooAbsArg.cxx.

◆ setBin()

void RooAbsCategoryLValue::setBin ( Int_t ibin,
const char * rangeName = nullptr )
overridevirtual

Set category to i-th fit bin, which is the i-th registered state.

Implements RooAbsLValue.

Definition at line 162 of file RooAbsCategoryLValue.cxx.

◆ SetBit() [1/2]

void TObject::SetBit ( UInt_t f)
inlineinherited

Definition at line 202 of file TObject.h.

◆ SetBit() [2/2]

void TObject::SetBit ( UInt_t f,
Bool_t set )
inherited

Set or unset the user status bits as specified in f.

Definition at line 888 of file TObject.cxx.

◆ setCacheAndTrackHints()

virtual void RooAbsArg::setCacheAndTrackHints ( RooArgSet & )
inlinevirtualinherited

◆ setCachedValue()

void RooAbsCategory::setCachedValue ( double value,
bool notifyClients = true )
finalprotectedvirtualinherited

Overwrite the value stored in this object's cache.

This can be used to fake a computation that resulted in value.

Parameters
[in]valueValue to write. The argument is reinterpreted as a category state. If such a state does not exist, this will create undefined behaviour.
[in]notifyClientsIf true, notify users of this object that its value changed. This is the default.

Reimplemented from RooAbsArg.

Definition at line 579 of file RooAbsCategory.cxx.

◆ setConstant()

void RooAbsCategoryLValue::setConstant ( bool value = true)
inline

Definition at line 100 of file RooAbsCategoryLValue.h.

◆ setDataToken()

void RooAbsArg::setDataToken ( std::size_t index)
inherited

Sets the token for retrieving results in the BatchMode. For internal use only.

Definition at line 2261 of file RooAbsArg.cxx.

◆ setDirtyInhibit()

void RooAbsArg::setDirtyInhibit ( bool flag)
staticinherited

Control global dirty inhibit mode.

When set to true no value or shape dirty flags are propagated and cache is always considered to be dirty.

Definition at line 210 of file RooAbsArg.cxx.

◆ SetDrawOption()

void TObject::SetDrawOption ( Option_t * option = "")
virtualinherited

Set drawing option for object.

This option only affects the drawing style and is stored in the option field of the TObjOptLink supporting a TPad's primitive list (TList). Note that it does not make sense to call object.SetDrawOption(option) before having called object.Draw().

Reimplemented in RooPlot, TAxis, TBrowser, TGedFrame, TGFrame, TPad, TPaveStats, TRootBrowserLite, TSystemDirectory, and TSystemFile.

Definition at line 871 of file TObject.cxx.

◆ SetDtorOnly()

void TObject::SetDtorOnly ( void * obj)
staticinherited

Set destructor only flag.

Definition at line 1204 of file TObject.cxx.

◆ setExpensiveObjectCache()

virtual void RooAbsArg::setExpensiveObjectCache ( RooExpensiveObjectCache & cache)
inlinevirtualinherited

Reimplemented in RooRealVar.

Definition at line 439 of file RooAbsArg.h.

◆ setIndex() [1/2]

bool RooAbsCategoryLValue::setIndex ( const std::pair< std::string, value_type > & nameIdxPair,
bool printError = true )
inline

Change category state to state specified by another category state.

If printError is set, a message will be printed if the specified index does not represent a valid state.

Note
The state name of the other category is ignored.
Returns
bool to signal an error.

Definition at line 48 of file RooAbsCategoryLValue.h.

◆ setIndex() [2/2]

virtual bool RooAbsCategoryLValue::setIndex ( value_type index,
bool printError = true )
pure virtual

Change category state by specifying the index code of the desired state.

If printError is set, a message will be printed if the specified index does not represent a valid state.

Returns
bool to signal an error.

Implemented in RooCategory, and RooSuperCategory.

◆ setLabel() [1/3]

virtual bool RooAbsCategoryLValue::setLabel ( const char * label,
bool printError = true )
pure virtual

Change category state by specifying a state name.

If printError is set, a message will be printed if the specified state name does not represent a valid state.

Returns
bool to signal an error.

Implemented in RooCategory, and RooSuperCategory.

◆ setLabel() [2/3]

bool RooAbsCategoryLValue::setLabel ( const std::pair< std::string, value_type > & nameIdxPair,
bool printError = true )
inline

Change category state to the state name of another category.

If printError is set, a message will be printed if the specified state name does not represent a valid state.

Note
The state index of the other category is ignored.
Returns
bool to signal an error.

Definition at line 69 of file RooAbsCategoryLValue.h.

◆ setLabel() [3/3]

bool RooAbsCategoryLValue::setLabel ( const std::string & label,
bool printError = true )
inline

Change category state by specifying a state name.

If printError is set, a message will be printed if the specified state name does not represent a valid state.

Returns
bool to signal an error.

Definition at line 60 of file RooAbsCategoryLValue.h.

◆ setLocalNoDirtyInhibit()

void RooAbsArg::setLocalNoDirtyInhibit ( bool flag) const
inlineinherited

Definition at line 631 of file RooAbsArg.h.

◆ SetName()

void RooAbsArg::SetName ( const char * name)
overridevirtualinherited

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 2097 of file RooAbsArg.cxx.

◆ SetNameTitle()

void RooAbsArg::SetNameTitle ( const char * name,
const char * title )
overridevirtualinherited

Set all the TNamed parameters (name and title).

WARNING: if the name is changed and 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 2109 of file RooAbsArg.cxx.

◆ SetObjectStat()

void TObject::SetObjectStat ( Bool_t stat)
staticinherited

Turn on/off tracking of objects in the TObjectTable.

Definition at line 1188 of file TObject.cxx.

◆ setOperMode()

void RooAbsArg::setOperMode ( OperMode mode,
bool recurseADirty = true )
inherited

Set the operation mode of this node.

Change cache operation mode to given mode.

If recurseAdirty is true, then a mode change to AlwaysDirty will automatically be propagated recursively to all client nodes

Definition at line 1730 of file RooAbsArg.cxx.

◆ setOrdinal()

bool RooAbsCategoryLValue::setOrdinal ( unsigned int index)

Set our state to our nth defined type.

Returns
true in case of an error.

Definition at line 109 of file RooAbsCategoryLValue.cxx.

◆ setProhibitServerRedirect()

void RooAbsArg::setProhibitServerRedirect ( bool flag)
inlineinherited

Definition at line 488 of file RooAbsArg.h.

◆ setProxyNormSet()

void RooAbsArg::setProxyNormSet ( const RooArgSet * nset)
protectedinherited

Forward a change in the cached normalization argset to all the registered proxies.

Definition at line 1289 of file RooAbsArg.cxx.

◆ setShapeDirty() [1/2]

void RooAbsArg::setShapeDirty ( )
inlineinherited

Notify that a shape-like property (e.g. binning) has changed.

Definition at line 431 of file RooAbsArg.h.

◆ setShapeDirty() [2/2]

void RooAbsArg::setShapeDirty ( const RooAbsArg * source)
protectedinherited

Notify that a shape-like property (e.g. binning) has changed.

Mark this object as having changed its shape, and propagate this status change to all of our clients.

Definition at line 831 of file RooAbsArg.cxx.

◆ setStringAttribute()

void RooAbsArg::setStringAttribute ( const Text_t * key,
const Text_t * value )
inherited

Associate string 'value' to this object under key 'key'.

Definition at line 250 of file RooAbsArg.cxx.

◆ SetTitle()

void TNamed::SetTitle ( const char * title = "")
virtualinherited

◆ setTransientAttribute()

void RooAbsArg::setTransientAttribute ( const Text_t * name,
bool value = true )
inherited

Set (default) or clear a named boolean attribute of this object.

Definition at line 277 of file RooAbsArg.cxx.

◆ setTreeBranchStatus()

void RooAbsCategory::setTreeBranchStatus ( TTree & t,
bool active )
overrideprotectedvirtualinherited

(De)activate associate tree branch

Implements RooAbsArg.

Definition at line 533 of file RooAbsCategory.cxx.

◆ SetUniqueID()

void TObject::SetUniqueID ( UInt_t uid)
virtualinherited

Set the unique object id.

Definition at line 899 of file TObject.cxx.

◆ setValueDirty() [1/2]

void RooAbsArg::setValueDirty ( )
inlineinherited

Mark the element dirty. This forces a re-evaluation when a value is requested.

Definition at line 425 of file RooAbsArg.h.

◆ setValueDirty() [2/2]

void RooAbsArg::setValueDirty ( const RooAbsArg * source)
protectedinherited

Force element to re-evaluate itself when a value is requested.

Mark this object as having changed its value, and propagate this status change to all of our clients.

If the object is not in automatic dirty state propagation mode, this call has no effect.

Definition at line 792 of file RooAbsArg.cxx.

◆ setWorkspace()

void RooAbsArg::setWorkspace ( RooWorkspace & ws)
inlineinherited

Definition at line 490 of file RooAbsArg.h.

◆ shapeClients()

const RefCountList_t & RooAbsArg::shapeClients ( ) const
inlineinherited

List of all shape clients of this object.

Shape clients receive property information such as changes of a value range.

Definition at line 142 of file RooAbsArg.h.

◆ size()

std::size_t RooAbsCategory::size ( ) const
inlineinherited

Number of states defined.

Definition at line 100 of file RooAbsCategory.h.

◆ Sizeof()

Int_t TNamed::Sizeof ( ) const
virtualinherited

Return size of the TNamed part of the TObject.

Reimplemented in TDirectory, TDirectoryFile, TFile, TKey, TSQLFile, and TXMLFile.

Definition at line 182 of file TNamed.cxx.

◆ stateNames() [1/2]

std::map< std::string, value_type > & RooAbsCategory::stateNames ( )
inlineprotectedinherited

Access the map of state names to index numbers.

Triggers a recomputation if the shape is dirty.

Definition at line 169 of file RooAbsCategory.h.

◆ stateNames() [2/2]

const std::map< std::string, value_type > & RooAbsCategory::stateNames ( ) const
inlineprotectedinherited

Access the map of state names to index numbers.

Triggers a recomputation if the shape is dirty.

Definition at line 159 of file RooAbsCategory.h.

◆ Streamer()

void RooAbsCategoryLValue::Streamer ( TBuffer & R__b)
overridevirtual

Stream an object of class RooAbsArg.

Reimplemented from RooAbsCategory.

Reimplemented in RooCategory, and RooSuperCategory.

◆ StreamerNVirtual()

void RooAbsCategoryLValue::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 123 of file RooAbsCategoryLValue.h.

◆ stringAttributes()

const std::map< std::string, std::string > & RooAbsArg::stringAttributes ( ) const
inlineinherited

Definition at line 267 of file RooAbsArg.h.

◆ substituteServer()

void RooAbsArg::substituteServer ( RooAbsArg * oldServer,
RooAbsArg * newServer )
privateinherited

Private helper function for RooAbsArg::redirectServers().

Definition at line 970 of file RooAbsArg.cxx.

◆ syncCache()

void RooAbsCategory::syncCache ( const RooArgSet * set = nullptr)
overrideprotectedvirtualinherited

Explicitly synchronize RooAbsCategory internal cache.

Implements RooAbsArg.

Definition at line 546 of file RooAbsCategory.cxx.

◆ SysError()

void TObject::SysError ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue system error message.

Use "location" to specify the method where the system error occurred. Accepts standard printf formatting arguments.

Definition at line 1112 of file TObject.cxx.

◆ TestBit()

Bool_t TObject::TestBit ( UInt_t f) const
inlineinherited

Definition at line 204 of file TObject.h.

◆ TestBits()

Int_t TObject::TestBits ( UInt_t f) const
inlineinherited

Definition at line 205 of file TObject.h.

◆ transientAttributes()

const std::set< std::string > & RooAbsArg::transientAttributes ( ) const
inlineinherited

Definition at line 276 of file RooAbsArg.h.

◆ treeNodeServerList()

void RooAbsArg::treeNodeServerList ( RooAbsCollection * list,
const RooAbsArg * arg = nullptr,
bool doBranch = true,
bool doLeaf = true,
bool valueOnly = false,
bool recurseFundamental = false ) const
inherited

Fill supplied list with nodes of the arg tree, following all server links, starting with ourself as top node.

Parameters
[in]listOutput list
[in]argStart searching at this element of the tree.
[in]doBranchAdd branch nodes to the list.
[in]doLeafAdd leaf nodes to the list.
[in]valueOnlyOnly check if an element is a value server (no shape server).
[in]recurseFundamental

Definition at line 465 of file RooAbsArg.cxx.

◆ typeIterator()

TIterator * RooAbsCategory::typeIterator ( ) const
inherited
Deprecated
Use begin() and end() instead.
Note
Using this iterator creates useless RooCatType instances, which will leak unless deleted by the user.

Definition at line 677 of file RooAbsCategory.cxx.

◆ unRegisterCache()

void RooAbsArg::unRegisterCache ( RooAbsCache & cache)
inherited

Unregister a RooAbsCache. Called from the RooAbsCache destructor.

Definition at line 1888 of file RooAbsArg.cxx.

◆ unRegisterProxy() [1/3]

void RooAbsArg::unRegisterProxy ( RooArgProxy & proxy)
protectedinherited

Remove proxy from proxy list.

This functions is called by owned proxies upon their destruction.

Definition at line 1199 of file RooAbsArg.cxx.

◆ unRegisterProxy() [2/3]

void RooAbsArg::unRegisterProxy ( RooListProxy & proxy)
protectedinherited

Remove proxy from proxy list.

This functions is called by owned proxies upon their destruction.

Definition at line 1262 of file RooAbsArg.cxx.

◆ unRegisterProxy() [3/3]

void RooAbsArg::unRegisterProxy ( RooSetProxy & proxy)
protectedinherited

Remove proxy from proxy list.

This functions is called by owned proxies upon their destruction.

Definition at line 1228 of file RooAbsArg.cxx.

◆ UseCurrentStyle()

void TObject::UseCurrentStyle ( )
virtualinherited

Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.

Reimplemented in TAxis3D, TCanvas, TFrame, TGraph, TH1, TPad, TPaveStats, TPaveText, and TTree.

Definition at line 909 of file TObject.cxx.

◆ valueClients()

const RefCountList_t & RooAbsArg::valueClients ( ) const
inlineinherited

List of all value clients of this object. Value clients receive value updates.

Definition at line 139 of file RooAbsArg.h.

◆ verboseDirty()

void RooAbsArg::verboseDirty ( bool flag)
staticinherited

Activate verbose messaging related to dirty flag propagation.

Definition at line 217 of file RooAbsArg.cxx.

◆ volume()

double RooAbsCategoryLValue::volume ( const char * rangeName) const
inlineoverridevirtual

Implements RooAbsLValue.

Definition at line 89 of file RooAbsCategoryLValue.h.

◆ Warning()

void TObject::Warning ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue warning message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1084 of file TObject.cxx.

◆ wireAllCaches()

void RooAbsArg::wireAllCaches ( )
inherited

Definition at line 2086 of file RooAbsArg.cxx.

◆ workspace()

RooWorkspace * RooAbsArg::workspace ( ) const
inlineinherited

Definition at line 491 of file RooAbsArg.h.

◆ Write() [1/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 )
virtualinherited

Write this object to the current directory.

For more see the const version of this method.

Reimplemented in ROOT::TBufferMergerFile, TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 989 of file TObject.cxx.

◆ Write() [2/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 ) const
virtualinherited

Write this object to the current directory.

The data structure corresponding to this object is serialized. The corresponding buffer is written to the current directory with an associated key with name "name".

Writing an object to a file involves the following steps:

  • Creation of a support TKey object in the current directory. The TKey object creates a TBuffer object.
  • The TBuffer object is filled via the class::Streamer function.
  • If the file is compressed (default) a second buffer is created to hold the compressed buffer.
  • Reservation of the corresponding space in the file by looking in the TFree list of free blocks of the file.
  • The buffer is written to the file.

Bufsize can be given to force a given buffer size to write this object. By default, the buffersize will be taken from the average buffer size of all objects written to the current file so far.

If a name is specified, it will be the name of the key. If name is not given, the name of the key will be the name as returned by GetName().

The option can be a combination of: kSingleKey, kOverwrite or kWriteDelete Using the kOverwrite option a previous key with the same name is overwritten. The previous key is deleted before writing the new object. Using the kWriteDelete option a previous key with the same name is deleted only after the new object has been written. This option is safer than kOverwrite but it is slower. NOTE: Neither kOverwrite nor kWriteDelete reduces the size of a TFile– the space is simply freed up to be overwritten; in the case of a TTree, it is more complicated. If one opens a TTree, appends some entries, then writes it out, the behaviour is effectively the same. If, however, one creates a new TTree and writes it out in this way, only the metadata is replaced, effectively making the old data invisible without deleting it. TTree::Delete() can be used to mark all disk space occupied by a TTree as free before overwriting its metadata this way. The kSingleKey option is only used by TCollection::Write() to write a container with a single key instead of each object in the container with its own key.

An object is read from the file into memory via TKey::Read() or via TObject::Read().

The function returns the total number of bytes written to the file. It returns 0 if the object cannot be written.

Reimplemented in TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 964 of file TObject.cxx.

◆ writeToStream()

void RooAbsCategory::writeToStream ( std::ostream & os,
bool compact ) const
overridevirtualinherited

Write object contents to ostream.

Implements RooAbsArg.

Reimplemented in RooCategory, RooMappedCategory, RooMultiCategory, and RooThresholdCategory.

Definition at line 390 of file RooAbsCategory.cxx.

◆ RooSimGenContext

friend class RooSimGenContext
friend

Definition at line 112 of file RooAbsCategoryLValue.h.

◆ RooSimSplitGenContext

friend class RooSimSplitGenContext
friend

Definition at line 113 of file RooAbsCategoryLValue.h.

Member Data Documentation

◆ _boolAttrib

std::set<std::string> RooAbsArg::_boolAttrib
protectedinherited

Definition at line 588 of file RooAbsArg.h.

◆ _boolAttribTransient

std::set<std::string> RooAbsArg::_boolAttribTransient
protectedinherited

! Transient boolean attributes (not copied in ctor)

Definition at line 590 of file RooAbsArg.h.

◆ _cacheList

std::vector<RooAbsCache *> RooAbsArg::_cacheList
protectedinherited

! list of caches

Definition at line 571 of file RooAbsArg.h.

◆ _clientList

RefCountList_t RooAbsArg::_clientList
protectedinherited

Definition at line 565 of file RooAbsArg.h.

◆ _clientListShape

RefCountList_t RooAbsArg::_clientListShape
protectedinherited

Definition at line 566 of file RooAbsArg.h.

◆ _clientListValue

RefCountList_t RooAbsArg::_clientListValue
protectedinherited

Definition at line 567 of file RooAbsArg.h.

◆ _currentIndex

value_type RooAbsCategory::_currentIndex {std::numeric_limits<int>::min()}
mutableprotectedinherited

Current category state.

Definition at line 217 of file RooAbsCategory.h.

◆ _dataToken

std::size_t RooAbsArg::_dataToken = std::numeric_limits<std::size_t>::max()
protectedinherited

!

Set by the RooFitDriver for this arg to ! retrieve its result in the run context

Definition at line 661 of file RooAbsArg.h.

◆ _deleteWatch

bool RooAbsArg::_deleteWatch = false
protectedinherited

! Delete watch flag

Definition at line 626 of file RooAbsArg.h.

◆ _eocache

RooExpensiveObjectCache* RooAbsArg::_eocache {nullptr}
mutableprotectedinherited

! Pointer to global cache manager for expensive components.

Definition at line 652 of file RooAbsArg.h.

◆ _fast

bool RooAbsArg::_fast = false
mutableprotectedinherited

Definition at line 645 of file RooAbsArg.h.

◆ _inhibitDirty

bool RooAbsArg::_inhibitDirty
staticprotectedinherited

Definition at line 625 of file RooAbsArg.h.

◆ _insertionOrder

std::vector<std::string> RooAbsCategory::_insertionOrder
protectedinherited

Keeps track in which order state numbers have been inserted. Make sure this is updated in recomputeShape().

Definition at line 219 of file RooAbsCategory.h.

◆ _isConstant

bool RooAbsArg::_isConstant = false
protectedinherited

! Cached isConstant status

Definition at line 655 of file RooAbsArg.h.

◆ _legacyStates

std::map<value_type, std::unique_ptr<RooCatType, std::function<void(RooCatType*)> > > RooAbsCategory::_legacyStates
mutableprotectedinherited

! Map holding pointers to RooCatType instances. Only for legacy interface. Don't use if possible.

Definition at line 220 of file RooAbsCategory.h.

◆ _localNoInhibitDirty

bool RooAbsArg::_localNoInhibitDirty = false
mutableprotectedinherited

! Prevent 'AlwaysDirty' mode for this node

Definition at line 657 of file RooAbsArg.h.

◆ _myws

RooWorkspace* RooAbsArg::_myws = nullptr
mutableprotectedinherited

! In which workspace do I live, if any

Definition at line 659 of file RooAbsArg.h.

◆ _nameLength

Int_t RooPrintable::_nameLength
staticprotectedinherited

Definition at line 57 of file RooPrintable.h.

◆ _namePtr

const TNamed* RooAbsArg::_namePtr = nullptr
mutableprotectedinherited

! De-duplicated name pointer, equal for all objects with the same name.

Definition at line 654 of file RooAbsArg.h.

◆ _operMode

OperMode RooAbsArg::_operMode = Auto
mutableprotectedinherited

Definition at line 644 of file RooAbsArg.h.

◆ _ownedComponents

RooArgSet* RooAbsArg::_ownedComponents = nullptr
protectedinherited

! Set of owned component

Definition at line 648 of file RooAbsArg.h.

◆ _prohibitServerRedirect

bool RooAbsArg::_prohibitServerRedirect = false
mutableprotectedinherited

! Prohibit server redirects – Debugging tool

Definition at line 650 of file RooAbsArg.h.

◆ _proxyList

RooRefArray RooAbsArg::_proxyList
protectedinherited

Definition at line 569 of file RooAbsArg.h.

◆ _proxyListCache

ProxyListCache RooAbsArg::_proxyListCache
protectedinherited

! cache of the list of proxies. Avoids type casting.

Definition at line 621 of file RooAbsArg.h.

◆ _serverList

RefCountList_t RooAbsArg::_serverList
protectedinherited

Definition at line 564 of file RooAbsArg.h.

◆ _shapeDirty

bool RooAbsArg::_shapeDirty = true
mutableprotectedinherited

Definition at line 642 of file RooAbsArg.h.

◆ _stateNames

std::map<std::string, value_type> RooAbsCategory::_stateNames
protectedinherited

Map state names to index numbers. Make sure state names are updated in recomputeShape().

Definition at line 218 of file RooAbsCategory.h.

◆ _stringAttrib

std::map<std::string, std::string> RooAbsArg::_stringAttrib
protectedinherited

Definition at line 589 of file RooAbsArg.h.

◆ _treeReadBuffer

TreeReadBuffer* RooAbsCategory::_treeReadBuffer = nullptr
privateinherited

! A buffer for reading values from trees

Definition at line 225 of file RooAbsCategory.h.

◆ _valueDirty

bool RooAbsArg::_valueDirty = true
mutableprotectedinherited

Definition at line 641 of file RooAbsArg.h.

◆ _verboseDirty

bool RooAbsArg::_verboseDirty
staticprotectedinherited

Definition at line 624 of file RooAbsArg.h.

◆ fBits

UInt_t TObject::fBits
privateinherited

bit field status word

Definition at line 47 of file TObject.h.

◆ fgDtorOnly

Longptr_t TObject::fgDtorOnly = 0
staticprivateinherited

object for which to call dtor only (i.e. no delete)

Definition at line 49 of file TObject.h.

◆ fgObjectStat

Bool_t TObject::fgObjectStat = kTRUE
staticprivateinherited

if true keep track of objects in TObjectTable

Definition at line 50 of file TObject.h.

◆ fName

TString TNamed::fName
protectedinherited

Definition at line 32 of file TNamed.h.

◆ fTitle

TString TNamed::fTitle
protectedinherited

Definition at line 33 of file TNamed.h.

◆ fUniqueID

UInt_t TObject::fUniqueID
privateinherited

object unique identifier

Definition at line 46 of file TObject.h.


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