29 c1->GetFrame()->SetFillColor(21);
30 c1->GetFrame()->SetBorderMode(-1);
31 c1->GetFrame()->SetBorderSize(5);
40 TFile *file =
nullptr;
45 gROOT->ProcessLine(
Form(
".x %s../hist/fillrandom.C(0)",
dir.Data()));
63 Error(
"fit1.C",
"Cannot find object sqroot of type TF1\n");
74 Error(
"fit1.C",
"Cannot find object h1f of type TH1F\n");
77 h1f->SetFillColor(45);
R__EXTERN TBenchmark * gBenchmark
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
virtual void Start(const char *name)
Starts Benchmark with the specified name.
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
void GetObject(const char *namecycle, T *&ptr)
Get an object with proper type checking.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
void ls(Option_t *option="") const override
List file contents.
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.
1-D histogram with a float per channel (see TH1 documentation)
A Pave (see TPave) with text, lines or/and boxes inside.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.