@@ -1205,15 +1205,17 @@ void TFormula::HandleParametrizedFunctions(TString &formula)
12051205
12061206 // replace old names xygaus -> gaus[x,y]
12071207 formula.ReplaceAll (" xyzgaus" ," gaus[x,y,z]" );
1208+ formula.ReplaceAll (" xygausn" ," gausn[x,y]" );
12081209 formula.ReplaceAll (" xygaus" ," gaus[x,y]" );
12091210 formula.ReplaceAll (" xgaus" ," gaus[x]" );
12101211 formula.ReplaceAll (" ygaus" ," gaus[y]" );
12111212 formula.ReplaceAll (" zgaus" ," gaus[z]" );
1213+ formula.ReplaceAll (" xyexpo" ," expo[x,y]" );
12121214 formula.ReplaceAll (" xexpo" ," expo[x]" );
12131215 formula.ReplaceAll (" yexpo" ," expo[y]" );
12141216 formula.ReplaceAll (" zexpo" ," expo[z]" );
1217+ formula.ReplaceAll (" xylandaun" ," landaun[x,y]" );
12151218 formula.ReplaceAll (" xylandau" ," landau[x,y]" );
1216- formula.ReplaceAll (" xyexpo" ," expo[x,y]" );
12171219 // at the moment pre-defined functions have no more than 3 dimensions
12181220 const char * defaultVariableNames[] = { " x" ," y" ," z" };
12191221
@@ -2543,8 +2545,10 @@ void TFormula::FillParametrizedFunctions(map<pair<TString, Int_t>, pair<TString,
25432545 make_pair (make_pair (" gaus" , 2 ), make_pair (" [0]*exp(-0.5*(({V0}-[1])/[2])^2 - 0.5*(({V1}-[3])/[4])^2)" , " " )));
25442546 functions.insert (
25452547 make_pair (make_pair (" landau" , 2 ),
2546- make_pair (" [0]*TMath::Landau({V0},[1],[2],false)*TMath::Landau({V1},[3],[4],false)" , " " )));
2547- functions.insert (make_pair (make_pair (" expo" , 2 ), make_pair (" exp([0]+[1]*{V0})" , " exp([0]+[1]*{V0}+[2]*{V1})" )));
2548+ make_pair (" [0]*TMath::Landau({V0},[1],[2],false)*TMath::Landau({V1},[3],[4],false)" , " TMath::Landau({V0},[0],[1],true)*TMath::Landau({V1},[2],[3],true)" )));
2549+ functions.insert (
2550+ make_pair (make_pair (" expo" , 2 ),
2551+ make_pair (" exp([0]+[1]*{V0}+[2]*{V1})" , " " )));
25482552 // 3-dimensional function
25492553 functions.insert (
25502554 make_pair (make_pair (" gaus" , 3 ), make_pair (" [0]*exp(-0.5*(({V0}-[1])/[2])^2 - 0.5*(({V1}-[3])/[4])^2 - 0.5*(({V2}-[5])/[6])^2)" , " " )));
0 commit comments