Dear experts,
I experience the following problem, I am trying to use the TH2F constructor:
TH2F(const char* name, const char* title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, const Double_t* ybins)
via the following commands in root interactively:
root [0] const Float_t b_f[9]={0.,0.1,0.16,0.2,0.25,0.3,0.35,0.4,0.6};
root [1] TH2F*h=new TH2F("a","a",10,0,1,9,b_f)
but I fail with the following message:
Error: Can't call TH2F::TH2F("a","a",10,0,1,9,b_f) in current scope (tmpfile):1:
Possible candidates are...
(in TH2F)
/opt/products/root/5.18.00/lib/libHist.so -1:-1 0 public: TH2F TH2F::TH2F(void);
/opt/products/root/5.18.00/lib/libHist.so -1:-1 0 public: TH2F TH2F::TH2F(const char* name,const char* title,Int_t nbinsx,Double_t xlow,Double_t xup,Int_t nbinsy,Double_t ylow,Double_t yup);
/opt/products/root/5.18.00/lib/libHist.so -1:-1 0 public: TH2F TH2F::TH2F(const char* name,const char* title,Int_t nbinsx,const Double_t* xbins,Int_t nbinsy,Double_t ylow,Double_t yup);
/opt/products/root/5.18.00/lib/libHist.so -1:-1 0 public: TH2F TH2F::TH2F(const char* name,const char* title,Int_t nbinsx,Double_t xlow,Double_t xup,Int_t nbinsy,const Double_t* ybins);
/opt/products/root/5.18.00/lib/libHist.so -1:-1 0 public: TH2F TH2F::TH2F(const char* name,const char* title,Int_t nbinsx,const Double_t* xbins,Int_t nbinsy,const Double_t* ybins);
/opt/products/root/5.18.00/lib/libHist.so -1:-1 0 public: TH2F TH2F::TH2F(const char* name,const char* title,Int_t nbinsx,const Float_t* xbins,Int_t nbinsy,const Float_t* ybins);
/opt/products/root/5.18.00/lib/libHist.so -1:-1 0 public: TH2F TH2F::TH2F(const TMatrixFBase& m);
/opt/products/root/5.18.00/lib/libHist.so -1:-1 0 public: TH2F TH2F::TH2F(const TH2F& h2f);
(in TH2)
(in TH1)
*** Interpreter error recovered ***
and I really have no idea why!
root version is 5.18, any help or advice will he highly appreciated!!!