Is there a way to restrain the TF2::Draw to a circular domain (in place of a rectangular one) ?
I haven’t seen such a feature that could be very usefull in some cases (e.g. the Mexican-Hat function 1-x^2-y^2+(x^2+y^2)^2) where the values is very large in the corners.
Thanks a lot, it gives very good results.
I just changed a bit the function to limit the value in the hidden region, since the z axis ranged is computed ignoring the TCutG:
TF2 f2 = new TF2(“TexMex”,"TMath::Min([0]-[1](x^2+y^2)+[2](x^2+y^2)^2,[3][0])",-range,range,-range,range);
f2->SetParameters(1,1.6,1,2);
Is there a more general method to restrict the domain? Specifically, could we define a function O* Restrict_Domain(TF2* restriction) that accepts a TF2* function (R(x,y)) where the desired restriction R(x,y) < 0 is specified, and returns an O* object representing the necessary domain restriction? Since a TCutG object is a closed polygon defining a region in an x,y plot, it seems O must be a different type than TCutG.