Belle II Software development
BkgNeutronWeight Class Reference

The class to get the weighting factor for a 1-MeV-equivalent neutron flux on silicon. More...

#include <BkgNeutronWeight.h>

Public Member Functions

double getWeight (double ke)
 Get weighting factor to convert a neutron to its 1-MeV equivalent.
 

Static Public Member Functions

static BkgNeutronWeightgetInstance ()
 Return a reference to the singleton BkgNeutronWeight instance.
 

Private Member Functions

 BkgNeutronWeight (void)
 Constructor is private for this singleton.
 
void addPoint (double, double)
 Function to add one (x,y) data point to the spline table.
 
void doSpline ()
 Function to calculate the cubic spline derivatives.
 

Private Attributes

int m_n
 Number of tabulated points.
 
std::vector< double > m_x
 Vector of tabulated x coordinates (logarithm of kinetic energy)
 
std::vector< double > m_y
 Vector of tabulated y coordinates (weighting factors)
 
std::vector< double > m_b
 Vector of first derivatives in spline fit (calculated)
 
std::vector< double > m_c
 Vector of second derivatives in spline fit (calculated)
 
std::vector< double > m_d
 Vector of third derivatives in spline fit (calculated)
 

Static Private Attributes

static BkgNeutronWeightm_Instance = 0
 static pointer to the singleton instance of this class
 

Detailed Description

The class to get the weighting factor for a 1-MeV-equivalent neutron flux on silicon.

Data from http://sesam.desy.de/members/gunnar/Si-dfuncs.html

Definition at line 23 of file BkgNeutronWeight.h.

Member Data Documentation

◆ m_b

std::vector<double> m_b
private

Vector of first derivatives in spline fit (calculated)

Definition at line 54 of file BkgNeutronWeight.h.

◆ m_c

std::vector<double> m_c
private

Vector of second derivatives in spline fit (calculated)

Definition at line 57 of file BkgNeutronWeight.h.

◆ m_d

std::vector<double> m_d
private

Vector of third derivatives in spline fit (calculated)

Definition at line 60 of file BkgNeutronWeight.h.

◆ m_n

int m_n
private

Number of tabulated points.

Definition at line 45 of file BkgNeutronWeight.h.

◆ m_x

std::vector<double> m_x
private

Vector of tabulated x coordinates (logarithm of kinetic energy)

Definition at line 48 of file BkgNeutronWeight.h.

◆ m_y

std::vector<double> m_y
private

Vector of tabulated y coordinates (weighting factors)

Definition at line 51 of file BkgNeutronWeight.h.


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