28 Error(
"exec2",
"gPad is null, you are not supposed to run this macro");
39 int pyold =
gPad->GetUniqueID();
40 int px =
gPad->GetEventX();
41 int py =
gPad->GetEventY();
42 float uxmin =
gPad->GetUxmin();
43 float uxmax =
gPad->GetUxmax();
44 int pxmin =
gPad->XtoAbsPixel(uxmin);
45 int pxmax =
gPad->XtoAbsPixel(uxmax);
46 if(pyold)
gVirtualX->DrawLine(pxmin,pyold,pxmax,pyold);
48 gPad->SetUniqueID(py);
55 if(
c2)
delete c2->GetPrimitive(
"Projection");
61 Int_t biny =
h->GetYaxis()->FindBin(
y);
62 TH1D *hp =
h->ProjectionX(
"",biny,biny);
64 sprintf(title,
"Projection of biny=%d",biny);
void Error(const char *location, const char *msgfmt,...)
1-D histogram with a double per channel (see TH1 documentation)}
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
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 void SetName(const char *name)
Change the name of this histogram.
Service class for 2-Dim histogram classes.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual TVirtualPad * cd(Int_t subpadnumber=0)=0