class to contain the CoG Time calibrations
More...
#include <SVDCoGCalibrationFunction.h>
|
typedef double(SVDCoGCalibrationFunction::* | cogFunction) (double, int) const |
| typedef of the return value of the calibration function
|
|
typedef double(SVDCoGCalibrationFunction::* | cogFunctionErr) (double, double, int) const |
| typedef of the return value of the calibration function ERROR
|
|
|
double | calibratedValue (double raw_time, int trigger_bin) const |
| returns the calibrated value of raw_time, depending on the trigger bin
|
|
double | calibratedValueError (double raw_time, double raw_timeErr, int trigger_bin) const |
| returns the error of the calibrated value of raw_time, depending on the trigger bin
|
|
| SVDCoGCalibrationFunction () |
| constructor
|
|
void | set_current (int current) |
| allows to choose the function version
|
|
void | set_bias (double tb0, double tb1, double tb2, double tb3) |
| set the trigger bin dependent shift
|
|
void | set_scale (double tb0, double tb1, double tb2, double tb3) |
| set the trigger bin dependent scale
|
|
void | set_pol3parameters (double a, double b, double c, double d) |
| set the pol3 TB independent parameters
|
|
void | set_pol5parameters (double a, double b, double c, double d, double e, double f) |
| set the pol5 TB independent parameters
|
|
void | set_elsparameters (double a, double b, double c, double d) |
| set the parameters for the ELS TB independent function
|
|
| SVDCoGCalibrationFunction (const Belle2::SVDCoGCalibrationFunction &a) |
| copy constructor
|
|
SVDCoGCalibrationFunction & | operator= (const Belle2::SVDCoGCalibrationFunction &a) |
| operator =
|
|
|
double | pol1TBdep (double raw_time, int tb) const |
| pol1 TB dep version implementation
|
|
double | pol1TBdepErr (double, double raw_timeErr, int tb) const |
| implementation of pol1 TB dep error
|
|
double | pol3TBindep (double raw_time, int) const |
| ID = 1, pol3TBindep VERSION: (TB independent) correctedValue = par[0] + t * par[1] + t^2 * par[2] + t^3 * par[3].
|
|
double | pol3TBindepErr (double raw_time, double raw_timeErr, int) const |
| implementation of pol3 TB indep error
|
|
double | pol5TBindep (double raw_time, int) const |
| ID = 2, pol5TBindep VERSION: (TB independent) correctedValue = par[0] + t * par[1] + t^2 * par[2] + t^3 * par[3] + t^4 * par[4] + t^5*par[5].
|
|
double | pol5TBindepErr (double raw_time, double raw_timeErr, int) const |
| implementation of pol5 TB indep error
|
|
double | elsTBindep (double raw_time, int) const |
| ID = 3, elsTBindep VERSION: (TB independent) correctedValue = par[0] + t * par[1] + par[2]/(t - par[3]) if t<=par[3]-sqrt(-par[2])/4 correctedValue = NaN otherwise.
|
|
double | elsTBindepErr (double raw_time, double raw_timeErr, int) const |
| implementation of els TB indep error
|
|
class to contain the CoG Time calibrations
Definition at line 23 of file SVDCoGCalibrationFunction.h.
◆ cogFunction
typedef double(SVDCoGCalibrationFunction::* cogFunction) (double, int) const |
◆ cogFunctionErr
typedef double(SVDCoGCalibrationFunction::* cogFunctionErr) (double, double, int) const |
◆ SVDCoGCalibrationFunction() [1/2]
constructor
Definition at line 47 of file SVDCoGCalibrationFunction.h.
48 {
49
50
56
57
58 }
59
60
61
67
68
69 }
70
72
73 };
static std::vector< cogFunction > m_implementations
vector of fuctions for time calibration, we use the m_current
double pol3TBindep(double raw_time, int) const
ID = 1, pol3TBindep VERSION: (TB independent) correctedValue = par[0] + t * par[1] + t^2 * par[2] + t...
double pol1TBdep(double raw_time, int tb) const
pol1 TB dep version implementation
double pol5TBindep(double raw_time, int) const
ID = 2, pol5TBindep VERSION: (TB independent) correctedValue = par[0] + t * par[1] + t^2 * par[2] + t...
double pol3TBindepErr(double raw_time, double raw_timeErr, int) const
implementation of pol3 TB indep error
int m_current
current function ID
double pol1TBdepErr(double, double raw_timeErr, int tb) const
implementation of pol1 TB dep error
static std::vector< cogFunctionErr > m_implementationsErr
Do not stream this, please throw it in the WC.
double pol5TBindepErr(double raw_time, double raw_timeErr, int) const
implementation of pol5 TB indep error
double elsTBindep(double raw_time, int) const
ID = 3, elsTBindep VERSION: (TB independent) correctedValue = par[0] + t * par[1] + par[2]/(t - par[3...
double elsTBindepErr(double raw_time, double raw_timeErr, int) const
implementation of els TB indep error
◆ SVDCoGCalibrationFunction() [2/2]
copy constructor
Definition at line 16 of file SVDCoGCalibrationFunction.cc.
16 : TObject(a)
17{
21 }
23 for (
int i = 0; i <
m_nPar; i++)
24 m_par[i] = a.m_par[i];
25}
static const int nTriggerBins
total number of trigger bins
double m_bias[nTriggerBins]
function parameters & implementations
double m_scale[nTriggerBins]
trigger-bin dependent scale
static const int m_nPar
number of parameters of highest-order implemented pol (5)
double m_par[m_nPar]
vector of parameters
◆ calibratedValue()
double calibratedValue |
( |
double |
raw_time, |
|
|
int |
trigger_bin |
|
) |
| const |
|
inline |
returns the calibrated value of raw_time, depending on the trigger bin
Definition at line 34 of file SVDCoGCalibrationFunction.h.
35 {
37 return (this->*f)(raw_time, trigger_bin) ;
38 }
double(SVDCoGCalibrationFunction::* cogFunction)(double, int) const
typedef of the return value of the calibration function
◆ calibratedValueError()
double calibratedValueError |
( |
double |
raw_time, |
|
|
double |
raw_timeErr, |
|
|
int |
trigger_bin |
|
) |
| const |
|
inline |
returns the error of the calibrated value of raw_time, depending on the trigger bin
Definition at line 40 of file SVDCoGCalibrationFunction.h.
41 {
43 return (this->*fErr)(raw_time, raw_timeErr, trigger_bin) ;
44 }
double(SVDCoGCalibrationFunction::* cogFunctionErr)(double, double, int) const
typedef of the return value of the calibration function ERROR
◆ elsTBindep()
double elsTBindep |
( |
double |
raw_time, |
|
|
int |
|
|
) |
| const |
|
inlineprivate |
ID = 3, elsTBindep VERSION: (TB independent) correctedValue = par[0] + t * par[1] + par[2]/(t - par[3]) if t<=par[3]-sqrt(-par[2])/4 correctedValue = NaN otherwise.
els TB indep version implementation
Definition at line 196 of file SVDCoGCalibrationFunction.h.
197 {
199 return std::numeric_limits<float>::quiet_NaN();
200
202 };
double sqrt(double a)
sqrt for double
◆ elsTBindepErr()
double elsTBindepErr |
( |
double |
raw_time, |
|
|
double |
raw_timeErr, |
|
|
int |
|
|
) |
| const |
|
inlineprivate |
implementation of els TB indep error
Definition at line 205 of file SVDCoGCalibrationFunction.h.
206 {
208 return std::numeric_limits<float>::quiet_NaN();
209
210 return raw_timeErr * (
m_par[1] -
m_par[2] / pow(raw_time -
m_par[3], 2));
211 };
◆ operator=()
◆ pol1TBdep()
double pol1TBdep |
( |
double |
raw_time, |
|
|
int |
tb |
|
) |
| const |
|
inlineprivate |
◆ pol1TBdepErr()
double pol1TBdepErr |
( |
double |
, |
|
|
double |
raw_timeErr, |
|
|
int |
tb |
|
) |
| const |
|
inlineprivate |
◆ pol3TBindep()
double pol3TBindep |
( |
double |
raw_time, |
|
|
int |
|
|
) |
| const |
|
inlineprivate |
ID = 1, pol3TBindep VERSION: (TB independent) correctedValue = par[0] + t * par[1] + t^2 * par[2] + t^3 * par[3].
pol3 TB indep version implementation
Definition at line 166 of file SVDCoGCalibrationFunction.h.
167 {
168 return m_par[0] +
m_par[1] * raw_time +
m_par[2] * pow(raw_time, 2) +
m_par[3] * pow(raw_time, 3);
169 };
◆ pol3TBindepErr()
double pol3TBindepErr |
( |
double |
raw_time, |
|
|
double |
raw_timeErr, |
|
|
int |
|
|
) |
| const |
|
inlineprivate |
◆ pol5TBindep()
double pol5TBindep |
( |
double |
raw_time, |
|
|
int |
|
|
) |
| const |
|
inlineprivate |
ID = 2, pol5TBindep VERSION: (TB independent) correctedValue = par[0] + t * par[1] + t^2 * par[2] + t^3 * par[3] + t^4 * par[4] + t^5*par[5].
pol5 TB indep version implementation
Definition at line 179 of file SVDCoGCalibrationFunction.h.
180 {
181 return m_par[0] +
m_par[1] * raw_time +
m_par[2] * pow(raw_time, 2) +
m_par[3] * pow(raw_time, 3) +
m_par[4] * pow(raw_time,
182 4) +
m_par[5] * pow(raw_time, 5);
183 };
◆ pol5TBindepErr()
double pol5TBindepErr |
( |
double |
raw_time, |
|
|
double |
raw_timeErr, |
|
|
int |
|
|
) |
| const |
|
inlineprivate |
implementation of pol5 TB indep error
Definition at line 185 of file SVDCoGCalibrationFunction.h.
186 {
187 return raw_timeErr * (
m_par[1] + 2 *
m_par[2] * raw_time + 3 *
m_par[3] * pow(raw_time, 2) + 4 *
m_par[4] * pow(raw_time,
188 3) + 5 *
m_par[5] * pow(raw_time, 4));
189 };
◆ set_bias()
void set_bias |
( |
double |
tb0, |
|
|
double |
tb1, |
|
|
double |
tb2, |
|
|
double |
tb3 |
|
) |
| |
|
inline |
◆ set_current()
void set_current |
( |
int |
current | ) |
|
|
inline |
◆ set_elsparameters()
void set_elsparameters |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c, |
|
|
double |
d |
|
) |
| |
|
inline |
◆ set_pol3parameters()
void set_pol3parameters |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c, |
|
|
double |
d |
|
) |
| |
|
inline |
◆ set_pol5parameters()
void set_pol5parameters |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c, |
|
|
double |
d, |
|
|
double |
e, |
|
|
double |
f |
|
) |
| |
|
inline |
◆ set_scale()
void set_scale |
( |
double |
tb0, |
|
|
double |
tb1, |
|
|
double |
tb2, |
|
|
double |
tb3 |
|
) |
| |
|
inline |
◆ m_bias
function parameters & implementations
ID = {0}, pol1TBdep VERSION: correctedValue = t * scale[tb] + bias[tb] trigger-bin dependent bias
Definition at line 146 of file SVDCoGCalibrationFunction.h.
◆ m_current
◆ m_implementations
◆ m_implementationsErr
Do not stream this, please throw it in the WC.
vector of fuctions for time error calibration, we use the m_current
Definition at line 220 of file SVDCoGCalibrationFunction.h.
◆ m_nPar
◆ m_par
◆ m_scale
◆ nTriggerBins
const int nTriggerBins = 4 |
|
staticprivate |
The documentation for this class was generated from the following files: