Belle II Software  release-08-01-10
SVDMCFudgeFactorFunction Class Reference

class to contain the MC fudge factor formulae More...

#include <SVDMCFudgeFactorFunction.h>

Inheritance diagram for SVDMCFudgeFactorFunction:
Collaboration diagram for SVDMCFudgeFactorFunction:

Public Types

typedef double(SVDMCFudgeFactorFunction::* fudgeFactorFunction) (double) const
 typedef of the return value of the fudge factor function
 

Public Member Functions

double getFudgeFactor (double trkAngle) const
 returns the fudge factor, depending on the track's angle
 
 SVDMCFudgeFactorFunction ()
 constructor
 
void set_current (int current)
 allows to choose the function version
 
void set_chebyCoeffs (std::vector< double > c)
 Set the vector of Chebyshev coefficients Input: More...
 
void set_graphPoints (std::vector< double > x, std::vector< double > y)
 Set vectors of TGraph points (x for angles, y for sigmas) Input: More...
 
 SVDMCFudgeFactorFunction (const Belle2::SVDMCFudgeFactorFunction &a)
 copy constructor
 
SVDMCFudgeFactorFunctionoperator= (const Belle2::SVDMCFudgeFactorFunction &a)
 operator =
 

Private Member Functions

double cheby_v0 (double trkAngle) const
 cheby_v0 implementation More...
 
double tgraph_v0 (double trkAngle) const
 tgraph_v0 implementation More...
 
 ClassDef (SVDMCFudgeFactorFunction, 2)
 Do not stream this, please throw it in the WC.
 

Private Attributes

std::vector< double > m_chebyCoeffs
 function parameters & implementations More...
 
std::vector< double > m_x
 ID = {1}, rel07: fudge factor parametrized with linear interpolation between graph points. More...
 
std::vector< double > m_y
 Vectors of TGraph points for the sigmas.
 
int m_current
 current function ID
 

Static Private Attributes

static std::vector< fudgeFactorFunctionm_implementations
 vector of functions for fudge factor computation, we use the m_current
 

Detailed Description

class to contain the MC fudge factor formulae

Definition at line 28 of file SVDMCFudgeFactorFunction.h.

Member Function Documentation

◆ cheby_v0()

double cheby_v0 ( double  trkAngle) const
inlineprivate

cheby_v0 implementation

Parameters
trkAngletrack's incident angle
Returns
fudge factor as a function of the track's angle

Definition at line 105 of file SVDMCFudgeFactorFunction.h.

106  {
107  TF1* f = (TF1*) gROOT->GetFunction(TString::Format("chebyshev%lu", m_chebyCoeffs.size() - 1));
108  f->SetParameters(&m_chebyCoeffs[0]);
109 
110  return f->Eval(trkAngle);
111  };
std::vector< double > m_chebyCoeffs
function parameters & implementations

◆ set_chebyCoeffs()

void set_chebyCoeffs ( std::vector< double >  c)
inline

Set the vector of Chebyshev coefficients Input:

Parameters
c

Definition at line 68 of file SVDMCFudgeFactorFunction.h.

◆ set_graphPoints()

void set_graphPoints ( std::vector< double >  x,
std::vector< double >  y 
)
inline

Set vectors of TGraph points (x for angles, y for sigmas) Input:

Parameters
x
y

Definition at line 80 of file SVDMCFudgeFactorFunction.h.

◆ tgraph_v0()

double tgraph_v0 ( double  trkAngle) const
inlineprivate

tgraph_v0 implementation

Parameters
trkAngletrack's incident angle
Returns
fudge factor as a function of the track's angle

Definition at line 125 of file SVDMCFudgeFactorFunction.h.

Member Data Documentation

◆ m_chebyCoeffs

std::vector<double> m_chebyCoeffs
private

function parameters & implementations

ID = {0}, rel07: fudge factor parametrized with Chebyshev polynomial Vector of Chebyshev coefficients

Definition at line 99 of file SVDMCFudgeFactorFunction.h.

◆ m_x

std::vector<double> m_x
private

ID = {1}, rel07: fudge factor parametrized with linear interpolation between graph points.

Vectors of TGraph points for the angles

Definition at line 117 of file SVDMCFudgeFactorFunction.h.


The documentation for this class was generated from the following files: