 |
Belle II Software
release-05-01-25
|
11 #ifndef BKGNEUTRONWEIGHT_H
12 #define BKGNEUTRONWEIGHT_H
25 class BkgNeutronWeight {
50 std::vector<double>
m_x;
53 std::vector<double>
m_y;
56 std::vector<double>
m_b;
59 std::vector<double>
m_c;
62 std::vector<double>
m_d;
72 #endif // BKGNEUTRONWEIGHT_H
BkgNeutronWeight(void)
Constructor is private for this singleton.
std::vector< double > m_b
Vector of first derivatives in spline fit (calculated)
void doSpline()
Function to calculate the cubic spline derivatives.
int m_n
Number of tabulated points.
void addPoint(double, double)
Function to add one (x,y) data point to the spline table.
Abstract base class for different kinds of events.
std::vector< double > m_c
Vector of second derivatives in spline fit (calculated)
static BkgNeutronWeight & getInstance()
Return a reference to the singleton BkgNeutronWeight instance.
static BkgNeutronWeight * m_Instance
static pointer to the singleton instance of this class
std::vector< double > m_d
Vector of third derivatives in spline fit (calculated)
double getWeight(double ke)
Get weighting factor to convert a neutron to its 1-MeV equivalent.
The class to get the weighting factor for a 1-MeV-equivalent neutron flux on silicon.
std::vector< double > m_y
Vector of tabulated y coordinates (weighting factors)
std::vector< double > m_x
Vector of tabulated x coordinates (logarithm of kinetic energy)