12#ifndef ROOSTATS_RooStatsUtils
13#define ROOSTATS_RooStatsUtils
59 *paramsToChange=*desiredVals ;
89 if (
v && (
v->isConstant() != constant)) {
91 v->setConstant(constant);
106 if (randomizeConstants) {
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
Bool_t isConstant() const
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
RooLinkedListIter iterator(Bool_t dir=kIterForward) const
virtual Bool_t remove(const RooAbsArg &var, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE)
Remove the specified argument from our list.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual void randomize(const char *rangeName=0)
Set a new value sampled from a uniform distribution over the fit range.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
virtual Bool_t add(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling add() for each element in the source coll...
RooDataSet is a container class to hold unbinned data.
RooLinkedListIter is the TIterator implementation for RooLinkedList.
RooRealVar represents a fundamental (non-derived) real valued object.
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
A TTree object has a header with a name and a title.
double normal_cdf_c(double x, double sigma=1, double x0=0)
Complement of the cumulative distribution function of the normal (Gaussian) distribution (upper tail)...
double normal_quantile_c(double z, double sigma)
Inverse ( ) of the cumulative distribution function of the upper tail of the normal (Gaussian) distri...
@(#)root/roostats:$Id$ Author: George Lewis, Kyle Cranmer
Double_t AsimovSignificance(Double_t s, Double_t b, Double_t sigma_b=0.0)
Compute the Asimov Median significance for a Poisson process with s = expected number of signal event...
bool SetAllConstant(const RooAbsCollection &coll, bool constant=true)
TTree * GetAsTTree(TString name, TString desc, const RooDataSet &data)
void SetParameters(const RooArgSet *desiredVals, RooArgSet *paramsToChange)
void RemoveConstantParameters(RooArgSet *set)
RooAbsPdf * MakeUnconstrainedPdf(RooAbsPdf &pdf, const RooArgSet &observables, const char *name=NULL)
RooAbsPdf * MakeNuisancePdf(RooAbsPdf &pdf, const RooArgSet &observables, const char *name)
void FactorizePdf(const RooArgSet &observables, RooAbsPdf &pdf, RooArgList &obsTerms, RooArgList &constraints)
void RandomizeCollection(RooAbsCollection &set, Bool_t randomizeConstants=kTRUE)
Double_t PValueToSignificance(Double_t pvalue)
returns one-sided significance corresponding to a p-value
void UseNLLOffset(bool on)
Double_t SignificanceToPValue(Double_t Z)
returns p-value corresponding to a 1-sided significance
void PrintListContent(const RooArgList &l, std::ostream &os=std::cout)
static constexpr double s