46 void 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;
127 for(
int i=0; i<list->
GetSize(); ++i){
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file.
RooAbsData * data(const char *name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found...
R__EXTERN TSystem * gSystem
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
TObject * obj(const char *name) const
Return any type of object (RooAbsArg, RooAbsData or generic object) with given name) ...
Namespace for the RooStats classes.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
TList * GetListOfProfilePlots(RooAbsData &data, RooStats::ModelConfig *config)
virtual Int_t GetSize() const
void Print(Option_t *opts=0) const
Print contents of the workspace.
Int_t CeilNint(Double_t x)
The RooWorkspace is a persistable container for RooFit projects.