@@ -38,18 +38,18 @@ class TF3 : public TF2 {
3838 TF3 (const char *name, const char *formula, Double_t xmin=0 , Double_t xmax=1 , Double_t ymin=0 ,
3939 Double_t ymax=1 , Double_t zmin=0 , Double_t zmax=1 , Option_t * opt = nullptr );
4040 TF3 (const char *name, Double_t (*fcn)(Double_t *, Double_t *), Double_t xmin=0 , Double_t xmax=1 , Double_t ymin=0 ,
41- Double_t ymax=1 , Double_t zmin=0 , Double_t zmax=1 , Int_t npar=0 , Int_t ndim = 3 );
41+ Double_t ymax=1 , Double_t zmin=0 , Double_t zmax=1 , Int_t npar=0 , Int_t ndim = 3 , EAddToList addToGlobList = EAddToList:: kDefault );
4242 TF3 (const char *name, Double_t (*fcn)(const Double_t *, const Double_t *), Double_t xmin=0 , Double_t xmax=1 , Double_t ymin=0 ,
43- Double_t ymax=1 , Double_t zmin=0 , Double_t zmax=1 , Int_t npar=0 , Int_t ndim = 3 );
43+ Double_t ymax=1 , Double_t zmin=0 , Double_t zmax=1 , Int_t npar=0 , Int_t ndim = 3 , EAddToList addToGlobList = EAddToList:: kDefault );
4444
4545 // Constructor using a functor
46- TF3 (const char *name, ROOT ::Math::ParamFunctor f, Double_t xmin = 0 , Double_t xmax = 1 , Double_t ymin = 0 , Double_t ymax = 1 , Double_t zmin=0 , Double_t zmax=1 , Int_t npar = 0 , Int_t ndim = 3 );
46+ TF3 (const char *name, ROOT ::Math::ParamFunctor f, Double_t xmin = 0 , Double_t xmax = 1 , Double_t ymin = 0 , Double_t ymax = 1 , Double_t zmin=0 , Double_t zmax=1 , Int_t npar = 0 , Int_t ndim = 3 , EAddToList addToGlobList = EAddToList:: kDefault );
4747
4848 // / Template constructors from a pointer to any C++ class of type PtrObj with a specific member function of type MemFn.
4949 template <class PtrObj , typename MemFn>
5050 TF3 (const char *name, const PtrObj& p, MemFn memFn, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax, Int_t npar,
51- Int_t ndim = 3 ) :
52- TF2 (name,p,memFn,xmin,xmax,ymin,ymax,npar,ndim),
51+ Int_t ndim = 3 , EAddToList addToGlobList = EAddToList:: kDefault ) :
52+ TF2 (name,p,memFn,xmin,xmax,ymin,ymax,npar,ndim,addToGlobList ),
5353 fZmin (zmin), fZmax (zmax), fNpz (30 )
5454 { }
5555
@@ -64,8 +64,8 @@ class TF3 : public TF2 {
6464 // / Template constructors from any C++ callable object, defining the operator() (double * , double *) and returning a double.
6565 template <typename Func>
6666 TF3 (const char *name, Func f, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax, Int_t npar,
67- Int_t ndim = 3 ) :
68- TF2 (name,f,xmin,xmax,ymin,ymax,npar,ndim),
67+ Int_t ndim = 3 , EAddToList addToGlobList = EAddToList:: kDefault ) :
68+ TF2 (name,f,xmin,xmax,ymin,ymax,npar,ndim,addToGlobList ),
6969 fZmin (zmin), fZmax (zmax), fNpz (30 )
7070 { }
7171
0 commit comments