23 auto h2 =
new TH2F(
"h2",
"", 50, -5.0, 5.0, 50, -5.0, 5.0);
27 info =
new TText(0.0, -4.0,
"please move the mouse over the frame");
35 Canvas->HighlightConnect(
"HighlightTitle(TVirtualPad*,TObject*,Int_t,Int_t)");
41 auto h2 = (
TH2F *)obj;
43 if (!h2->IsHighlight()) {
49 t.
Form(
"bin[%02d, %02d] (%5.2f, %5.2f) content %g", xhb, yhb,
50 h2->GetXaxis()->GetBinCenter(xhb), h2->GetYaxis()->GetBinCenter(yhb),
51 h2->GetBinContent(xhb, yhb));
52 h2->SetTitle(t.
Data());
R__EXTERN TRandom * gRandom
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
2-D histogram with a float per channel (see TH1 documentation)}
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Mother of all ROOT objects.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
const char * Data() const
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Base class for several text objects.
TVirtualPad is an abstract base class for the Pad and Canvas classes.