46void StandardProfileInspectorDemo(
const char *infile =
"",
const char *workspaceName =
"combined",
47 const char *modelConfigName =
"ModelConfig",
const char *dataName =
"obsData")
54 const char *filename =
"";
55 if (!strcmp(infile,
"")) {
56 filename =
"results/example_combined_GaussExample_model.root";
61 cout <<
"HistFactory file cannot be generated on Windows - exit" << endl;
65 cout <<
"will run standard hist2workspace example" << endl;
66 gROOT->ProcessLine(
".! prepareHistFactory .");
67 gROOT->ProcessLine(
".! hist2workspace config/example.xml");
68 cout <<
"\n\n---------------------" << endl;
69 cout <<
"Done creating example input" << endl;
70 cout <<
"---------------------\n\n" << endl;
81 cout <<
"StandardRooStatsDemoMacro: Input file " << filename <<
" is not found" << endl;
92 cout <<
"workspace not found" << endl;
105 cout <<
"data or ModelConfig was not found" << endl;
124 for (
int i = 0; i < list->
GetSize(); ++i) {
R__EXTERN TSystem * gSystem
RooAbsData is the common abstract base class for binned and unbinned datasets.
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
Utility class to plot conditional MLE of nuisance parameters vs.
TList * GetListOfProfilePlots(RooAbsData &data, RooStats::ModelConfig *config)
This tool makes a plot of the conditional maximum likelihood estimate of the nuisance parameter vs th...
The RooWorkspace is a persistable container for RooFit projects.
RooAbsData * data(const char *name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found.
void Print(Option_t *opts=0) const
Print contents of the workspace.
TObject * obj(const char *name) const
Return any type of object (RooAbsArg, RooAbsData or generic object) with given name)
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Namespace for the RooStats classes.
Int_t CeilNint(Double_t x)