29 c1->GetFrame()->SetFillColor(21);
30 c1->GetFrame()->SetBorderMode(-1);
31 c1->GetFrame()->SetBorderSize(5);
45 gROOT->ProcessLine(
Form(
".x %s../hist/fillrandom.C(0)",dir.
Data()));
61 file->GetObject(
"sqroot",sqroot);
63 Error(
"fit1.C",
"Cannot find object sqroot of type TF1\n");
72 file->GetObject(
"h1f",h1f);
74 Error(
"fit1.C",
"Cannot find object h1f of type TH1F\n");
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 SetFillColor(Color_t fcolor)
Set the fill area color.
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 Print(Option_t *option="") const override
This method must be overridden when a class wants to print itself.
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.
1-D histogram with a float per channel (see TH1 documentation)}
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="", Double_t xmin=0, Double_t xmax=0)
Fit histogram with function fname.
A Pave (see TPave) with text, lines or/and boxes inside.
const char * Data() const
TString & Append(const char *cs)
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.