Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooStatsUtils.h File Reference
#include "Math/DistFuncMathCore.h"
#include "RooArgSet.h"
#include "RooRealVar.h"
#include "RooAbsCollection.h"
#include "RooStats/ModelConfig.h"
#include "RooProdPdf.h"
#include "RooDataSet.h"
#include "RooAbsCategoryLValue.h"
Include dependency graph for RooStatsUtils.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  RooStats::RooStatsConfig
 

Namespaces

namespace  RooStats
 Namespace for the RooStats classes.
 

Functions

double RooStats::AsimovSignificance (double s, double b, double sigma_b=0.0)
 Compute the Asimov Median significance for a Poisson process with s = expected number of signal events, b = expected number of background events and optionally sigma_b = expected uncertainty of background events.
 
void RooStats::FactorizePdf (const RooArgSet &observables, RooAbsPdf &pdf, RooArgList &obsTerms, RooArgList &constraints)
 
void RooStats::FactorizePdf (RooStats::ModelConfig &model, RooAbsPdf &pdf, RooArgList &obsTerms, RooArgList &constraints)
 
TTreeRooStats::GetAsTTree (TString name, TString desc, const RooDataSet &data)
 Create a TTree with the given name and description. All RooRealVars in the RooDataSet are represented as branches that contain values of type double.
 
RooStatsConfigRooStats::GetGlobalRooStatsConfig ()
 Retrieve the config object which can be used to set flags for things like offsetting the likelihood or using the error wall for the minimiser.
 
bool RooStats::IsNLLOffset ()
 function returning if the flag to check if the flag to use NLLOffset is set
 
RooAbsPdfRooStats::MakeNuisancePdf (const RooStats::ModelConfig &model, const char *name)
 
RooAbsPdfRooStats::MakeNuisancePdf (RooAbsPdf &pdf, const RooArgSet &observables, const char *name)
 extract constraint terms from pdf
 
RooWorkspaceRooStats::MakeReducedWorkspace (RooWorkspace *oldWS, const char *newName, bool copySnapshots, const char *mcname, const char *newmcname, bool copyData=true)
 function that clones a workspace, copying all needed components and discarding all others
 
RooAbsPdfRooStats::MakeUnconstrainedPdf (const RooStats::ModelConfig &model, const char *name=nullptr)
 
RooAbsPdfRooStats::MakeUnconstrainedPdf (RooAbsPdf &pdf, const RooArgSet &observables, const char *name=nullptr)
 remove constraints from pdf and return the unconstrained pdf
 
void RooStats::PrintListContent (const RooArgList &l, std::ostream &os=std::cout)
 useful function to print in one line the content of a set with their values
 
double RooStats::PValueToSignificance (double pvalue)
 returns one-sided significance corresponding to a p-value
 
void RooStats::RandomizeCollection (RooAbsCollection &set, bool randomizeConstants=true)
 assuming all values in set are RooRealVars, randomize their values
 
void RooStats::RemoveConstantParameters (RooArgList &set)
 
void RooStats::RemoveConstantParameters (RooArgSet *set)
 
bool RooStats::SetAllConstant (const RooAbsCollection &coll, bool constant=true)
 utility function to set all variable constant in a collection (from G.
 
void RooStats::SetParameters (const RooArgSet *desiredVals, RooArgSet *paramsToChange)
 
double RooStats::SignificanceToPValue (double Z)
 returns p-value corresponding to a 1-sided significance
 
void RooStats::UseNLLOffset (bool on)
 function to set a global flag in RooStats to use NLL offset when performing nll computations Note that not all ROoStats tools implement this capabilities