@@ -663,6 +663,27 @@ Double_t TF2::GetSave(const Double_t *xx)
663663 return z;
664664}
665665
666+ // //////////////////////////////////////////////////////////////////////////////
667+ // / Create the basic function objects
668+
669+ void TF2::InitStandardFunctions ()
670+ {
671+ TF2 *f2;
672+ R__LOCKGUARD (gROOTMutex );
673+ if (!gROOT ->GetListOfFunctions ()->FindObject (" xygaus" )) {
674+ f2 = new TF2 (" xygaus" , " xygaus" , -1 , 1 , -1 , 1 );
675+ f2->SetParameters (1 , 0 , 1 , 0 , 1 );
676+ f2 = new TF2 (" bigaus" , " bigaus" , -1 , 1 , -1 , 1 );
677+ f2->SetParameters (1 , 0 , 1 , 0 , 1 , 0 );
678+ f2 = new TF2 (" xyexpo" , " xyexpo" , -1 , 1 , -1 , 1 );
679+ f2->SetParameters (1 , 0 , 1 , 1 , 0 , 1 );
680+ f2 = new TF2 (" xylandau" , " xylandau" , -1 , 1 , -1 , 1 );
681+ f2->SetParameters (1 , 0 , 1 , 1 , 0 , 1 );
682+ f2 = new TF2 (" xylandaun" , " xylandaun" , -1 , 1 , -1 , 1 );
683+ f2->SetParameters (1 , 0 , 1 , 1 , 0 , 1 );
684+ }
685+ }
686+
666687// //////////////////////////////////////////////////////////////////////////////
667688// / Return Integral of a 2d function in range [ax,bx],[ay,by]
668689// / with desired relative accuracy (defined by eps)
0 commit comments