27 Error(
"exec2",
"gPad is null, you are not supposed to run this macro");
31 int px =
gPad->GetEventX();
32 int py =
gPad->GetEventY();
33 float uxmin =
gPad->GetUxmin();
34 float uxmax =
gPad->GetUxmax();
35 int pxmin =
gPad->XtoAbsPixel(uxmin);
36 int pxmax =
gPad->XtoAbsPixel(uxmax);
46 gVirtualX->DrawLine(pxmin, pyold, pxmax, pyold);
50 TH2 *
h =
dynamic_cast<TH2 *
>(select);
54 gVirtualX->DrawLine(pxmin, py, pxmax, py);
62 if(
c2)
delete c2->GetPrimitive(
"Projection");
63 else c2 =
new TCanvas(
"c2",
"Projection Canvas",710,10,700,500);
68 Int_t biny =
h->GetYaxis()->FindBin(
y);
69 TH1D *hp =
h->ProjectionX(
"",biny,biny);
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
bool Update(const std::shared_ptr< ROOT::Math::Minimizer > &min, const ROOT::Fit::FitConfig &fconfig, bool isValid, unsigned int ncalls=0)
Update the fit result with a new minimization status To be run only if same fit is performed with sam...
1-D histogram with a double per channel (see TH1 documentation)}
void SetTitle(const char *title) override
Change/set the title.
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.
void SetName(const char *name) override
Change the name of this histogram.
Service class for 2-D histogram classes.
Mother of all ROOT objects.
virtual UInt_t GetUniqueID() const
Return the unique object id.
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.
TObject * FindObject(const char *name) const override
Search if object named name is inside this pad or in pads inside this pad.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.