40 using namespace RooFit;
41 using namespace RooStats;
44 const char* workspaceName =
"combined",
45 const char* modelConfigName =
"ModelConfig",
46 const char* dataName =
"obsData") {
55 filename =
"results/example_combined_GaussExample_model.root";
60 cout <<
"HistFactory file cannot be generated on Windows - exit" << endl;
64 cout <<
"will run standard hist2workspace example"<<endl;
65 gROOT->ProcessLine(
".! prepareHistFactory .");
66 gROOT->ProcessLine(
".! hist2workspace config/example.xml");
67 cout <<
"\n\n---------------------"<<endl;
68 cout <<
"Done creating example input"<<endl;
69 cout <<
"---------------------\n\n"<<endl;
81 cout <<
"StandardRooStatsDemoMacro: Input file " << filename <<
" is not found" << endl;
93 cout <<
"workspace not found" << endl;
106 cout <<
"data or ModelConfig was not found" <<endl;
116 TCanvas*
c1 =
new TCanvas(
"c1",
"ProfileInspectorDemo",800,200);
125 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...
void StandardProfileInspectorDemo(const char *infile="", const char *workspaceName="combined", const char *modelConfigName="ModelConfig", const char *dataName="obsData")
RooAbsData * data(const char *name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found...
static const char * filename()
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file.
R__EXTERN TSystem * gSystem
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual Int_t GetSize() const
TObject * obj(const char *name) const
Return any type of object (RooAbsArg, RooAbsData or generic object) with given name) ...
void Print(Option_t *opts=0) const
Print contents of the workspace.
TList * GetListOfProfilePlots(RooAbsData &data, RooStats::ModelConfig *config)
Int_t CeilNint(Double_t x)
The RooWorkspace is a persistable container for RooFit projects.