21 Error(
"exec1",
"gPad is null, you are not supposed to run this macro");
25 int event =
gPad->GetEvent();
26 if (event != 11)
return;
27 int px =
gPad->GetEventX();
34 Int_t binx =
h->GetXaxis()->FindBin(
x);
35 printf(
"event=%d, hist:%s, bin=%d, content=%f\n",event,
h->GetName(),binx,
h->GetBinContent(binx));
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
TH1 is the base class of all histogram classes in ROOT.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".