![]() |
MaCh3 2.2.1
Reference Guide
|
CW: Reduced TSpline3 class. More...
#include <Splines/SplineStructs.h>
Public Member Functions | |
TSpline3_red () | |
Empty constructor. | |
TSpline3_red (TSpline3 *&spline, SplineInterpolation InterPolation=kTSpline3) | |
The constructor that takes a TSpline3 pointer and copies in to memory. | |
TSpline3_red (M3::float_t *X, M3::float_t *Y, M3::int_t N, M3::float_t **P) | |
constructor taking parameters | |
void | SetFunc (TSpline3 *&spline, SplineInterpolation InterPolation=kTSpline3) |
Set the function. | |
virtual | ~TSpline3_red () |
Empty destructor. | |
int | FindX (double x) |
Find the segment relevant to this variation in x See root/hist/hist/src/TSpline3FindX(double) or samplePDFND....::FindSplineSegment. | |
double | Eval (double var) override |
CW: Evaluate the weight from a variation. | |
M3::int_t | GetNp () override |
CW: Get the number of points. | |
void | GetKnot (int i, M3::float_t &xtmp, M3::float_t &ytmp) |
void | GetCoeff (int segment, M3::float_t &x, M3::float_t &y, M3::float_t &b, M3::float_t &c, M3::float_t &d) |
CW: Get the coefficient of a given segment. | |
TSpline3 * | ConstructTSpline3 () |
CW: Make a TSpline3 from the reduced splines. | |
void | Print () override |
Print detailed info. | |
![]() | |
TResponseFunction_red () | |
Empty constructor. | |
virtual | ~TResponseFunction_red () |
Empty destructor. | |
virtual double | Eval (const double var)=0 |
Evaluate a variation. | |
virtual void | Print ()=0 |
KS: Printer. | |
virtual M3::int_t | GetNp ()=0 |
DL: Get number of points. | |
Protected Attributes | |
M3::int_t | nPoints |
Number of points/knot in TSpline3. | |
M3::float_t ** | Par |
Always uses a third order polynomial, so hard-code the number of coefficients in implementation. | |
M3::float_t * | XPos |
Positions of each x for each knot. | |
M3::float_t * | YResp |
y-value for each knot | |
CW: Reduced TSpline3 class.
Definition at line 267 of file SplineStructs.h.
|
inline |
Empty constructor.
Definition at line 271 of file SplineStructs.h.
|
inline |
The constructor that takes a TSpline3 pointer and copies in to memory.
Definition at line 279 of file SplineStructs.h.
|
inline |
constructor taking parameters
Definition at line 287 of file SplineStructs.h.
|
inlinevirtual |
Empty destructor.
Definition at line 580 of file SplineStructs.h.
|
inline |
CW: Make a TSpline3 from the reduced splines.
Definition at line 661 of file SplineStructs.h.
|
inlineoverridevirtual |
CW: Evaluate the weight from a variation.
Implements TResponseFunction_red.
Definition at line 631 of file SplineStructs.h.
|
inline |
Find the segment relevant to this variation in x See root/hist/hist/src/TSpline3FindX(double) or samplePDFND....::FindSplineSegment.
Definition at line 597 of file SplineStructs.h.
|
inline |
|
inline |
Definition at line 646 of file SplineStructs.h.
|
inlineoverridevirtual |
CW: Get the number of points.
Implements TResponseFunction_red.
Definition at line 644 of file SplineStructs.h.
|
inlineoverridevirtual |
Print detailed info.
Implements TResponseFunction_red.
Definition at line 678 of file SplineStructs.h.
|
inline |
Set the function.
Definition at line 312 of file SplineStructs.h.
|
protected |
Number of points/knot in TSpline3.
Definition at line 689 of file SplineStructs.h.
|
protected |
Always uses a third order polynomial, so hard-code the number of coefficients in implementation.
Definition at line 691 of file SplineStructs.h.
|
protected |
Positions of each x for each knot.
Definition at line 693 of file SplineStructs.h.
|
protected |
y-value for each knot
Definition at line 695 of file SplineStructs.h.