dE/dx wire gain calibration constants
More...
#include <CDCDedxMomentumCor.h>
|
std::vector< double > | m_momcor |
| dE/dx gains in momentum bins
|
|
dE/dx wire gain calibration constants
Definition at line 26 of file CDCDedxMomentumCor.h.
◆ CDCDedxMomentumCor() [1/2]
Default constructor.
Definition at line 33 of file CDCDedxMomentumCor.h.
std::vector< double > m_momcor
dE/dx gains in momentum bins
◆ CDCDedxMomentumCor() [2/2]
◆ ~CDCDedxMomentumCor()
◆ getMean() [1/2]
double getMean |
( |
double |
mom | ) |
const |
|
inline |
Return dE/dx mean value for given cos(theta)
- Parameters
-
mom | for const from momentum value |
Definition at line 81 of file CDCDedxMomentumCor.h.
82 {
83 if (std::abs(mom) > 10.0) return 0;
84
85
86
87 double binsize = 10.0 /
m_momcor.size();
88 int bin = std::floor(mom / binsize);
89
91 };
◆ getMean() [2/2]
double getMean |
( |
unsigned int |
bin | ) |
const |
|
inline |
Return dE/dx mean value for given bin.
- Parameters
-
bin | for const from bin number |
Definition at line 72 of file CDCDedxMomentumCor.h.
73 {
74 if (bin >
m_momcor.size())
return 1.0;
76 }
◆ getMomCor()
std::vector< double > getMomCor |
( |
| ) |
const |
|
inline |
◆ getSize()
unsigned int getSize |
( |
| ) |
const |
|
inline |
◆ operator*=()
Combine payloads.
Definition at line 48 of file CDCDedxMomentumCor.h.
49 {
50 if (
m_momcor.size() != rhs.getSize()) {
51 B2WARNING("Momentum correction parameters do not match, cannot merge!");
52 return *this;
53 }
54 std::vector<double> rhsgains = rhs.getMomCor();
55 for (
unsigned int bin = 0; bin <
m_momcor.size(); ++bin) {
57 }
58 return *this;
59 }
◆ m_momcor
std::vector<double> m_momcor |
|
private |
The documentation for this class was generated from the following file: