Message: GetX(y) & GetY(x) methods Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question GetX(y) & GetY(x) methods 

Forum: Analysis
Date: 20 Dec, 2016
From: Mohamed Hassan <Mohamed Hassan>

Hello,

I am using ROOT 5.34/03. I am trying to get the x value corresponding to a given y value from TH1 histograms (TH1*h1) and vice versa.

I have tried various things including h1->GetX(y,xmin,xmax) and h1->GetY(x,ymin,ymax) only the get error messages like the one below:

Error: Can't call TH1::GetY(2,0,40921300) in current scope plot.C:56:

Possible candidates are...

(in TH1)

How can I do that?

Mohamed Hassan

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: GetX(y) & GetY(x) methods   (Ivana Hrivnacova - 20 Jan, 2017)
 Add Message Add Message
to: "GetX(y) & GetY(x) methods"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]