This object contain parameters of the Time-Walk correction function of the ECL.
More...
#include <ECLTimeWalkCorrection.h>
|
| ECLTimeWalkCorrection () |
| Default constructor.
|
|
| ~ECLTimeWalkCorrection () |
| Destructor.
|
|
double | getParam (int n) const |
| return nth parameter of the time-walk correction.
|
|
void | setParam (int n, double newval) |
| set nth parameter of the time-walk correction.
|
|
std::vector< double > | getParams () const |
| Return std::vector containing all parameters of the time walk correction function.
|
|
void | setParams (const std::vector< double > &new_params) |
| Set std::vector containing all parameters of the time walk correction function.
|
|
int | getParamFormat () |
| Get parameter format ID.
|
|
void | setParamFormat (int newval) |
| Set parameter format ID.
|
|
|
int | m_parFormat = 0 |
| Format of the correction parameters 0 - same set of (c_expectedParametersCount) parameters for all Cell IDs (for now, only 0 is supported)
|
|
std::vector< double > | m_par |
| List of time walk correction parameters.
|
|
This object contain parameters of the Time-Walk correction function of the ECL.
General correction contain 7 parameters
Definition at line 26 of file ECLTimeWalkCorrection.h.
◆ ECLTimeWalkCorrection()
Default constructor.
Definition at line 32 of file ECLTimeWalkCorrection.h.
32 :
33 m_par(c_expectedParametersCount)
34 {
35 }
◆ ~ECLTimeWalkCorrection()
◆ ClassDef()
tells ROOT not to write it to file
ClassDef
◆ getParam()
double getParam |
( |
int | n | ) |
const |
|
inline |
return nth parameter of the time-walk correction.
Definition at line 43 of file ECLTimeWalkCorrection.h.
44 {
45 return m_par.at(n);
46 }
◆ getParamFormat()
◆ getParams()
std::vector< double > getParams |
( |
| ) |
const |
|
inline |
◆ setParam()
void setParam |
( |
int | n, |
|
|
double | newval ) |
|
inline |
set nth parameter of the time-walk correction.
Definition at line 48 of file ECLTimeWalkCorrection.h.
49 {
50 if (n < 0 || n >= c_expectedParametersCount) {
51 B2FATAL("Parameter index should be within [0, " <<
52 c_expectedParametersCount - 1 << "]." <<
53 LogVar("parameter index", n));
54 }
55 m_par[n] = newval;
56 }
◆ setParamFormat()
void setParamFormat |
( |
int | newval | ) |
|
|
inline |
◆ setParams()
void setParams |
( |
const std::vector< double > & | new_params | ) |
|
|
inline |
Set std::vector containing all parameters of the time walk correction function.
- See also
- m_par
-
m_parFormat
Definition at line 72 of file ECLTimeWalkCorrection.h.
73 {
74 if (new_params.size() != c_expectedParametersCount) {
75 B2FATAL("Count of parameters must always be equal to " <<
76 c_expectedParametersCount <<
77 LogVar("count of parameters", new_params.size()));
78 }
79 m_par = new_params;
80 }
◆ c_expectedParametersCount
const int c_expectedParametersCount = 6 |
|
staticprivate |
◆ m_par
std::vector<double> m_par |
|
private |
◆ m_parFormat
Format of the correction parameters 0 - same set of (c_expectedParametersCount) parameters for all Cell IDs (for now, only 0 is supported)
Definition at line 104 of file ECLTimeWalkCorrection.h.
The documentation for this class was generated from the following file: