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 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
void setMode(const Setting &setting)
Double_t evaluate() const
#define ClassDef(name, id)
static double p2(double t, double a, double b, double c)
Double_t myCrossProduct(const double &ax, const double &ay, const double &bx, const double &by) const
2-dimensional morph function between a list of function-numbers as a function of two input parameters...
Bool_t findSquare(const double &x, const double &y) const
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.
virtual TObject * clone(const char *newname) const
static double p1(double t, double a, double b)
bool operator()(const std::pair< int, double > &p1, const std::pair< int, double > &p2)
void calculateFractions(Bool_t verbose=kTRUE) const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
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.
Mother of all ROOT objects.
RooRealProxy is the concrete proxy for RooAbsReal objects A RooRealProxy is the general mechanism to ...
Roo2DMomentMorphFunction()
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