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);
64 sprintf(title,
"Projection of biny=%d",biny);
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
TH1D * ProjectionX(const char *name="_px", Int_t firstybin=0, Int_t lastybin=-1, Option_t *option="") const
Project a 2-D histogram into a 1-D histogram along X.
virtual TVirtualPad * cd(Int_t subpadnumber=0)=0
TVirtualPad is an abstract base class for the Pad and Canvas classes.
void Error(const char *location, const char *msgfmt,...)
Service class for 2-Dim histogram classes.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual TObject * GetPrimitive(const char *name) const
Get primitive.
1-D histogram with a double per channel (see TH1 documentation)}
virtual Int_t FindBin(Double_t x)
Find bin number corresponding to abscissa x.
virtual void SetName(const char *name)
Change the name of this histogram.
Mother of all ROOT objects.
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
virtual void Update()
Update canvas pad buffers.
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.