20 auto h =
dynamic_cast<TH1F *
>(obj);
25 if (!
h->IsHighlight()) {
45 hz = (
TH1 *)
h->Clone(
"hz");
63 Canvas1->HighlightConnect(
"HighlightZoom(TVirtualPad*,TObject*,Int_t,Int_t)");
65 auto f1 =
new TF1(
"f1",
"x*gaus(0) + [3]*abs(sin(x)/x)", -50.0, 50.0);
67 auto h1 =
new TH1F(
"h1",
"Test random numbers", 200, -50.0, 50.0);
75 info->SetTextSize(0.04);
76 info->SetTextAlign(22);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TStyle * gStyle
virtual void SetParameters(const Double_t *params)
1-D histogram with a float per channel (see TH1 documentation)
TH1 is the base class of all histogram classes in ROOT.
virtual void FillRandom(TF1 *f1, Int_t ntimes=5000, TRandom *rng=nullptr)
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.
virtual Double_t GetMaximum(Double_t maxval=FLT_MAX) const
Return maximum value smaller than maxval of bins in the range, unless the value has been overridden b...
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void SetHighlight(Bool_t set=kTRUE)
Set highlight (enable/disable) mode for the histogram by default highlight mode is disable.
Mother of all ROOT objects.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
void SetGridColor(Color_t color=0)
Base class for several text objects.
TVirtualPad is an abstract base class for the Pad and Canvas classes.