13 #ifndef ROO2DMOMENTMORPHFUNCTION
14 #define ROO2DMOMENTMORPHFUNCTION
79 Bool_t onSameSide(
const double& p1x,
const double& p1y,
const double& p2x,
const double& p2y,
const double& ax,
const double& ay,
const double& bx,
const double& by)
const ;
80 Bool_t pointInSquare(
const double& px,
const double& py,
const double& ax,
const double& ay,
const double& bx,
const double& by,
const double& cx,
const double& cy,
const double& dx,
const double& dy)
const;
81 Bool_t pointInTriangle(
const double& px,
const double& py,
const double& ax,
const double& ay,
const double& bx,
const double& by,
const double& cx,
const double& cy)
const ;
83 Bool_t isAcceptableSquare(
const double& ax,
const double& ay,
const double& bx,
const double& by,
const double& cx,
const double& cy,
const double& dx,
const double& dy)
const;
86 bool operator() (
const std::pair<int,double>&
p1,
const std::pair<int,double>&
p2) {
87 return (p1.second<p2.second);
virtual ~Roo2DMomentMorphFunction()
Destructor.
Bool_t isAcceptableSquare(const double &ax, const double &ay, const double &bx, const double &by, const double &cx, const double &cy, const double &dx, const double &dy) const
Reject kinked shapes.
Bool_t findSquare(const double &x, const double &y) const
void calculateFractions(Bool_t verbose=kTRUE) const
void setMode(const Setting &setting)
virtual TObject * clone(const char *newname) const
#define ClassDef(name, id)
Double_t evaluate() const
static double p2(double t, double a, double b, double c)
Bool_t onSameSide(const double &p1x, const double &p1y, const double &p2x, const double &p2y, const double &ax, const double &ay, const double &bx, const double &by) const
Returns true if p1 and p2 are on same side of line b-a.
2-dimensional morph function between a list of function-numbers as a function of two input parameters...
static double p1(double t, double a, double b)
bool operator()(const std::pair< int, double > &p1, const std::pair< int, double > &p2)
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Mother of all ROOT objects.
Bool_t pointInSquare(const double &px, const double &py, const double &ax, const double &ay, const double &bx, const double &by, const double &cx, const double &cy, const double &dx, const double &dy) const
Bool_t pointInTriangle(const double &px, const double &py, const double &ax, const double &ay, const double &bx, const double &by, const double &cx, const double &cy) const
Roo2DMomentMorphFunction()
Double_t myCrossProduct(const double &ax, const double &ay, const double &bx, const double &by) const