46void StandardProfileInspectorDemo(
const char* infile =
"",
47 const char* workspaceName =
"combined",
48 const char* modelConfigName =
"ModelConfig",
49 const char* dataName =
"obsData") {
55 const char* filename =
"";
56 if (!strcmp(infile,
"")) {
57 filename =
"results/example_combined_GaussExample_model.root";
62 cout <<
"HistFactory file cannot be generated on Windows - exit" << endl;
66 cout <<
"will run standard hist2workspace example"<<endl;
67 gROOT->ProcessLine(
".! prepareHistFactory .");
68 gROOT->ProcessLine(
".! hist2workspace config/example.xml");
69 cout <<
"\n\n---------------------"<<endl;
70 cout <<
"Done creating example input"<<endl;
71 cout <<
"---------------------\n\n"<<endl;
83 cout <<
"StandardRooStatsDemoMacro: Input file " << filename <<
" is not found" << endl;
95 cout <<
"workspace not found" << endl;
108 cout <<
"data or ModelConfig was not found" <<endl;
121 int nx = (int)
sqrt(
n) ;
127 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.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose, 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.
@(#)root/roostats:$Id$ Author: George Lewis, Kyle Cranmer
Int_t CeilNint(Double_t x)