Hi rooters,
Is there a possibility to generalize the TCutG class so that it could
describe any funny closed line on a 2D plot?
For example if I have a function (which would be too long or impossible to
write as a selection string), and I want to cut a band around this
function, it would be easy to have the possibility to derive a class from
TCutG, and overwrite it's IsInside function:
class MyCut : public TCutG
{
public:
Int_t IsInside(Double_t x,Double_t y)
{
if(fabs(funny_function(x) - y) < 0.4) return 1;
return 0;
}
};
Is it possible to do something like this?
Thanks
Daniel
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:30 MET