![]() |
MaCh3
2.4.2
Reference Guide
|
EW: As SplineBase is an abstract base class we have to do some gymnastics to get it to get it into python. More...
Public Member Functions | |
| void | Evaluate () override |
| CW: This Eval should be used when using two separate x,{y,a,b,c,d} arrays to store the weights; probably the best one here! Same thing but pass parameter spline segments instead of variations. More... | |
| std::string | GetName () const override |
| Get class name. More... | |
| void | FindSplineSegment () |
| void | CalcSplineWeights () override |
| CPU based code which eval weight for each spline. More... | |
| void | ModifyWeights () override |
| Calc total event weight. More... | |
| SplineBase () | |
| Constructor. More... | |
Public Member Functions inherited from SplineBase | |
| SplineBase () | |
| Constructor. More... | |
| virtual | ~SplineBase () |
| Destructor. More... | |
| short int | GetNParams () const |
| Get number of spline parameters. More... | |
| virtual void | PrepareSplineFile (std::string FileName)=0 |
| KS: Prepare spline file that can be used for fast loading. More... | |
| virtual void | LoadSplineFile (std::string FileName)=0 |
| KS: Load preprocessed spline file. More... | |
| virtual void | SynchroniseMemTransfer () const =0 |
| KS: After calculations are done on GPU we copy memory to CPU. This operation is asynchronous meaning while memory is being copied some operations are being carried. Memory must be copied before actual reweight. This function make sure all has been copied. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from SplineBase | |
| void | FindSplineSegment () |
| CW:Code used in step by step reweighting, Find Spline Segment for each param. More... | |
| void | PrepareFastSplineInfoDir (std::unique_ptr< TFile > &SplineFile) const |
| KS: Prepare Fast Spline Info within SplineFile. More... | |
| void | LoadFastSplineInfoDir (std::unique_ptr< TFile > &SplineFile) |
| KS: Load preprocessed FastSplineInfo. More... | |
| void | getTF1Coeff (TF1_red *&spl, int &nPoints, float *&coeffs) |
| CW: Gets the polynomial coefficients for TF1. More... | |
Protected Attributes inherited from SplineBase | |
| std::vector< FastSplineInfo > | SplineInfoArray |
| short int * | SplineSegments |
| float * | ParamValues |
| Store parameter values they are not in FastSplineInfo as in case of GPU we need to copy paste it to GPU. More... | |
| short int | nParams |
| Number of parameters that have splines. More... | |
EW: As SplineBase is an abstract base class we have to do some gymnastics to get it to get it into python.
Definition at line 19 of file splines.cpp.
|
inlineoverridevirtual |
CPU based code which eval weight for each spline.
Implements SplineBase.
Definition at line 52 of file splines.cpp.
|
inlineoverridevirtual |
CW: This Eval should be used when using two separate x,{y,a,b,c,d} arrays to store the weights; probably the best one here! Same thing but pass parameter spline segments instead of variations.
Implements SplineBase.
Definition at line 25 of file splines.cpp.
|
inline |
Definition at line 43 of file splines.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Calc total event weight.
Implements SplineBase.
Definition at line 61 of file splines.cpp.
| SplineBase::SplineBase |
Constructor.
Definition at line 28 of file SplineBase.cpp.