@@ -54,21 +54,39 @@ class TF2 : public TF1 {
5454 // Template constructors from a pointer to any C++ class of type PtrObj with a specific member function of type
5555 // MemFn.
5656 template <class PtrObj , typename MemFn>
57- TF2 (const char *name, const PtrObj& p, MemFn memFn, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Int_t npar, Int_t ndim = 2 , const char * c1 = 0 , const char * c2 = 0 ) :
58- TF1 (name,p,memFn,xmin,xmax,npar,ndim,c1,c2 ),
57+ TF2 (const char *name, const PtrObj& p, MemFn memFn, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Int_t npar, Int_t ndim = 2 ) :
58+ TF1 (name,p,memFn,xmin,xmax,npar,ndim),
5959 fYmin (ymin), fYmax (ymax), fNpy (30 ), fContour (0 )
6060 {
6161 fNpx = 30 ;
62- }
62+ }
63+ // / backward compatible ctor
64+ template <class PtrObj , typename MemFn>
65+ TF2 (const char *name, const PtrObj& p, MemFn memFn, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Int_t npar, const char * , const char *) :
66+ TF1 (name,p,memFn,xmin,xmax,npar,2 ),
67+ fYmin (ymin), fYmax (ymax), fNpy (30 ), fContour (0 )
68+ {
69+ fNpx = 30 ;
70+ }
71+
6372 // Template constructors from any C++ callable object, defining the operator() (double * , double *)
6473 // and returning a double.
6574 template <typename Func>
66- TF2 (const char *name, Func f, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Int_t npar,Int_t ndim = 2 , const char * tmp = 0 ) :
67- TF1 (name,f,xmin,xmax,npar,ndim,tmp ),
75+ TF2 (const char *name, Func f, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Int_t npar,Int_t ndim = 2 ) :
76+ TF1 (name,f,xmin,xmax,npar,ndim),
6877 fYmin (ymin), fYmax (ymax), fNpy (30 ), fContour (0 )
6978 {
7079 fNpx = 30 ;
71- }
80+ }
81+ // / backward compatible ctor
82+ template <typename Func>
83+ TF2 (const char *name, Func f, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Int_t npar,const char *) :
84+ TF1 (name,f,xmin,xmax,npar,2 ),
85+ fYmin (ymin), fYmax (ymax), fNpy (30 ), fContour (0 )
86+ {
87+ fNpx = 30 ;
88+ }
89+
7290
7391 TF2 (const TF2 &f2);
7492 TF2 &operator =(const TF2& rhs);
0 commit comments