Roofit pdf




















Create integral over observables in iset in range named rangeName with integrand normalized over observables in nset while using specified configuration for any numeric integration. Create integral over observables in iset in range named rangeName using specified configuration for any numeric integration. Utility function for createRunningIntegral. Utility function for plotOn that creates a projection of a function or p.

Create a RooProfileLL object that eliminates all nuisance parameters in the present function. Create an object that represents the running integral of the function over one or more observables listed in iset, i.

Utility function for createRunningIntegral that construct an object implementing the numeric scanning technique for calculating the running integral. Return function representing first, second or third order derivative of this function. Fill a RooDataHist with values sampled from this function at the bin centers.

Fill the ROOT histogram 'hist' with values sampled from this function at the bin centers. Return value of x in range xmin,xmax at which function equals yval. Fix the interpretation of the coefficient of any RooAddPdf component in the expression tree headed by this object to the given set of observables. Return a RooFunctor object bound to this RooAbsReal with given definition of observables and parameters.

Variant of getAnalyticalIntegral that is also passed the normalization set that should be applied to the integrand of which the integral is requested.

Return the numeric integration configuration used for this object. Advertise capability to determine maximum value of function for given set of observables. Get the label associated with the variable. Calculate error on self by linearly propagating errors on parameters using the covariance matrix from a fit result. Return this variable's title string. Evaluate object. Return value of object. Tests if the distribution is binned.

Unless overridden by derived classes, this always returns false. Log evaluation error message. Return maximum value for set of observables identified by code assigned in getMaxVal. Return function representing moment of p. Return function representing moment of function of given order.

Assign values, name and configs from another RooAbsReal. Equality operator when comparing to another RooAbsArg. Internal back-end function of plotOn with named arguments. Interface for returning an optional hint for initial sampling points when constructing a curve projected on observable obs.

Interface method for function objects to indicate their preferred order of observables for scanning their values into a multi-dimensional histogram or RooDataSet. Structure printing. Print object value. Read object contents from stream dummy for now More Overwrite the value stored in this object's cache.

Remove the specialized numeric integration configuration associated with this object. Set the given integrator configuration as default numeric integration configuration for this object. Set the label associated with this variable. Write object contents to stream dummy for now More Create an object with the specified name and descriptive title.

Copy constructor transfers all boolean and string properties of the original object. Take ownership of the contents of 'comps'. Bind this node to objects in set. Replace server nodes with names matching the dataset variable names with those data set variables, making this PDF directly dependent on the dataset. Overloadable function in which derived classes can implement consistency checks of the variables. Make a clone of an object using the Streamer facility.

Clone tree expression of objects. Utility function used by TCollection::Sort to compare contained TObjects We implement comparison by name, resulting in alphabetical sorting by object name. Define default contents to print.

Test whether we depend on ie, are served by the specified object. Test whether we depend on ie, are served by any object in the specified collection. Check whether this object depends on values served from the object passed as server. Check whether this object depends on values from an element in the serverList. Check if a named attribute is set. By default, all attributes are unset. Return ancestors in cloning chain of this RooAbsArg. Create a RooArgSet with all components branch nodes of the expression tree headed by this object.

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. Return the observables of this pdf given the observables defined by data. 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.

Given a set of possible observables, return the observables that this PDF depends on. Return the parameters of this p. 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. Return the parameters of the p. 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.

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. Return the nth proxy from the proxy list. Get string attribute mapped under key 'key'. Return RooArgSet with all variables tree leaf nodes of expresssion tree More Create a GraphViz. Write the GraphViz representation of the expression tree headed by this RooAbsArg object to the given ostream. Check if this object was created as a clone of 'other'.

Check if the "Constant" attribute is set. Does value or shape of this arg depend on any other arg? IsSortable const. De-duplicated pointer to this object's name. Return the number of registered proxies. Test if any of the dependents of the arg tree as determined by getObservables overlaps with those of the testArg. Assign all boolean and string properties of the original object. Test if any of the nodes of tree are shared with that of the given tree.

Print the object to the defaultPrintStream. Print class name of object. Print object arguments, ie its proxies. Print object class name. Print tree structure of expression tree on stdout, or to file if filename is specified. Print tree structure of expression tree on given ostream. Hook function interface for object to insert additional information when printed in the context of a tree structure. Print tree structure of expression tree on given ostream, only branch nodes are printed.

Print information about current value dirty state information. Implement multi-line detailed printing. Print object name. Print object title. Print object tree structure. Recursively call checkObservables on all nodes in the expression tree.

Set default or clear a named boolean attribute of this object. Set the name of the TNamed. Set all the TNamed parameters name and title. Associate string 'value' to this object under key 'key'. Retrieve a client iterator. List of all clients of this object. List of all value clients of this object. Value clients receive value updates. List of all shape clients of this object. List of all servers of this object. Return server of this with name name.

Returns nullptr if not found. Return server of this that has the same name as arg. Return i-th server from server list. Check if this is serving values to arg.

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

Fill supplied list with all leaf nodes of the arg tree, starting with ourself as top node. Fill supplied list with all branch nodes of the arg tree starting with ourself as top node. Fill supplied list with nodes of the arg tree, following all server links, starting with ourself as top node. Is this object a fundamental type that can be added to a dataset? Fundamental-type subclasses override this method to return kTRUE. Is this argument an l-value, i.

LValues are also special since they can potentially be analytically integrated and generated. Replace all direct servers of this object with the new servers in newServerList. Recursively replace all servers with the new servers in newSet. Register another RooAbsArg as a server to us, ie, declare that we depend on it. Register a list of RooAbsArg as servers to us by calling addServer for each arg in the list. Replace 'oldServer' with 'newServer'.

Change dirty flag propagation mask for specified server. Unregister another RooAbsArg as a server to us, ie, declare that we no longer depend on its value and shape. Find the new server in the specified set that matches the old server. Activate cache mode optimization with given definition of observables. 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. Interface function signaling a request to perform constant term optimization.

Register RooAbsCache with this object. Unregister a RooAbsCache. Called from the RooAbsCache destructor. Return number of registered caches. Return registered cache object by index. Query the operation mode of this node.

Set the operation mode of this node. Mark the element dirty. This forces a re-evaluation when a value is requested. Notify that a shape-like property e. Public Member Functions inherited from TNamed. TNamed copy ctor. TNamed destructor. Set name and title to empty strings "". Compare two TNamed objects. Copy this to obj. Encode TNamed into output buffer. GetName const. Returns name of object.

GetTitle const. Returns title of object. Hash const. Return hash value for this object. List TNamed name and title. TNamed assignment operator. Print TNamed name and title.

Set the title of the TNamed. Sizeof const. Return size of the TNamed part of the TObject. Public Member Functions inherited from TObject. TObject constructor. TObject copy ctor. TObject destructor. Use this method to implement an "abstract" method that you don't want to leave purely abstract. Append graphics object to current pad.

Browse object. May be overridden for another default action. ClassName const. Returns name of class to which the object belongs. Compare abstract method. Delete this object. Computes distance from point px,py to the object. Default Draw method for all objects. DrawClass const. Draw class inheritance tree of the class to which this object belongs. Dump const. Dump contents of object on stdout. Issue error message. Execute method on this object with the given parameter string, e.

Execute method on this object with parameters stored in the TObjArray. Execute action corresponding to an event at px,py. Issue fatal error message. Must be redefined in derived classes. GetDrawOption const. Get option used by the graphics system to draw this object.

GetIconName const. Returns mime type name of object. Returns string containing info about the object at position px,py. GetOption const. GetUniqueID const. Return the unique object id. Execute action in response of a timer timing out. HasInconsistentHash const. Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove i.

Issue info message. Returns kTRUE if object inherits from class "classname". Inspect const. Dump contents of this object in a graphics canvas. Default equal comparison objects are equal if they have the same address in memory. IsFolder const. Returns kTRUE in case object contains browsable objects like containers or lists of other objects. IsOnHeap const. IsZombie const. The ls function lists the contents of a class on stdout. 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.

This method must be overridden to handle object notification. Use this method to declare a method obsolete. Operator delete. Operator delete []. TObject assignment operator. This method must be overridden if a class wants to paint itself. Pop on object drawn in a pad to the top of the display list. This method must be overridden when a class wants to print itself. Read contents of object with specified name from the current directory.

Recursively remove this object from a list. Save this object in the file specified by filename. Set or unset the user status bits as specified in f.

Set drawing option for object. Set the unique object id. Issue system error message. Issue warning message. Write this object to the current directory. Public Member Functions inherited from RooPrintable. Default choice of contents to be printed name and value More Interface for printing of object arguments. Interface to print extras of object. Interface for detailed printing of object. Print name of object.

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'. Print title of object. Interface for tree structure printing of object. Interface to print value of object. Static Public Member Functions. Clear the stack of evaluation error messages. Returns the default numeric integration configuration for all RooAbsReals.

Return current evaluation error logging mode. Return the number of logged evaluation errors since the last clearing. Print all outstanding logged evaluation error on the given ostream. They contain in-depth information about RooFit. Experiments of this nature result in data sets obeying Poisson or binomial statistics. The natural modeling language for such distributions are probability density functions PDF F x;p that describe the probability density of the distribution of the observables x in terms of function in parameter p.

The defining properties of PDFs, unit normalization with respect to all observables and positive definiteness, also provide important benefits for the design of a structured modeling language: PDFs are easily added with intuitive interpretation of fraction coefficients.

They allow construction of higher dimensional PDFs out of lower dimensional building block with an intuitive language to introduce and describe correlations between observables.

And they also allow the universal implementation of toy Monte Carlo sampling techniques, and are of course an prerequisite for the use of un-binned maximum likelihood parameter estimation technique. A feature of this design philosophy is that all RooFit models always consist of multiple objects. However, our detectors are usually far from perfect so there will be some resolution effect.

Lets assume the resolution of our measurement of the invariant mass is 10 GeV and call it "sigma". For example, suppose we wanted to make a function out of the variables which represented the relative resolution as a function of the hypothetical mass MH. Notice how there is a list of the variables we passed the servers or "actual vars".

We can now plot the function. RooFit has a special plotting object RooPlot which keeps track of the objects and their normalisations which we want to draw. We can construct the PDF,. Its evaluation will depend on their values. The main difference between PDFs and Functions in RooFit is that PDFs are automatically normalised to unitiy , hence they represent a probability density, you don't need to normalise yourself. Lets plot it for the different values of m.

PDFs can be used to generate Monte Carlo data. One of the benefits of RooFit is that to do so only uses a single line of code! As before, we have to tell RooFit which variables to generate in e.

In this case, each of our events will be a single value of "mass" m. The arguments for the function are the set of observables, follwed by the number of events,. Of course we're not in the business of generating MC events, but collecting real data! Next we will look at using real data in RooFit.

A dataset is essentially just a collection of points in N-dimensional N-observables space. There are two basic implementations in RooFit,.

Lets create an empty dataset where the only observable, the mass. Points can be added to the dataset one by one Inside the file, there is something called a RooWorkspace. This is just the RooFit way of keeping a persistent link between the objects for a model. Let's take a look at it. It contains a RooDataSet and one variable. Let's have a look at the data.

The RooWorkspace has several accessor functions, we will use the RooWorkspace::data one.



0コメント

  • 1000 / 1000