12 #ifndef ROOSTATS_RooStatsUtils 13 #define ROOSTATS_RooStatsUtils 59 *paramsToChange=*desiredVals ;
69 set->remove(constSet);
106 if (randomizeConstants) {
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
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...
virtual void randomize(const char *rangeName=0)
Set a new value sampled from a uniform distribution over the fit range.
RooAbsPdf * MakeNuisancePdf(RooAbsPdf &pdf, const RooArgSet &observables, const char *name)
double normal_quantile_c(double z, double sigma)
Inverse ( ) of the cumulative distribution function of the upper tail of the normal (Gaussian) distri...
Double_t PValueToSignificance(Double_t pvalue)
returns one-sided significance corresponding to a p-value
void SetParameters(const RooArgSet *desiredVals, RooArgSet *paramsToChange)
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...
TTree * GetAsTTree(TString name, TString desc, const RooDataSet &data)
void FactorizePdf(const RooArgSet &observables, RooAbsPdf &pdf, RooArgList &obsTerms, RooArgList &constraints)
Double_t SignificanceToPValue(Double_t Z)
returns p-value corresponding to a 1-sided significance
RooRealVar represents a fundamental (non-derived) real valued object.
RooAbsPdf * MakeUnconstrainedPdf(RooAbsPdf &pdf, const RooArgSet &observables, const char *name=NULL)
void setConstant(Bool_t value=kTRUE)
void PrintListContent(const RooArgList &l, std::ostream &os=std::cout)
RooDataSet is a container class to hold unbinned data.
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)...
void RandomizeCollection(RooAbsCollection &set, Bool_t randomizeConstants=kTRUE)
void UseNLLOffset(bool on)
Namespace for the RooStats classes.
static constexpr double s
bool SetAllConstant(const RooAbsCollection &coll, bool constant=true)
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects...
void RemoveConstantParameters(RooArgSet *set)
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
RooLinkedListIter iterator(Bool_t dir=kIterForward) const
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
A TTree object has a header with a name and a title.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooLinkedListIter is the TIterator implementation for RooLinkedList.
Bool_t isConstant() const