dE/dx wire gain calibration constants
More...
#include <CDCDedxCosineCor.h>
|
std::vector< double > | m_cosgains |
| dE/dx gains in cos(theta) bins
|
|
dE/dx wire gain calibration constants
Definition at line 26 of file CDCDedxCosineCor.h.
◆ getMean() [1/2]
double getMean |
( |
double |
costh | ) |
const |
|
inline |
Return dE/dx mean value for given cos(theta)
- Parameters
-
costh | for const with costh theta value |
Definition at line 89 of file CDCDedxCosineCor.h.
91 if (std::abs(costh) > 1)
return 0;
96 int bin = std::floor((costh - 0.5 * binsize + 1.0) / binsize);
101 int thisbin = bin, nextbin = bin + 1;
102 if ((costh + 1) < (binsize / 2) || (costh > 0 && std::fabs(costh) < (binsize / 2))) {
103 thisbin = bin + 1; nextbin = bin + 2;
105 if ((costh - 1) > -1.0 * (binsize / 2) || (costh < 0 && std::fabs(costh) < (binsize / 2))) {
106 thisbin = bin - 1; nextbin = bin;
109 double frac = ((costh - 0.5 * binsize + 1.0) / binsize) - thisbin;
111 if (thisbin < 0 || (
unsigned)nextbin >=
m_cosgains.size()) {
112 B2WARNING(
"Problem with extrapolation of CDC dE/dx cosine correction");
std::vector< double > m_cosgains
dE/dx gains in cos(theta) bins
◆ getMean() [2/2]
double getMean |
( |
unsigned int |
bin | ) |
const |
|
inline |
Return dE/dx mean value for the given bin.
- Parameters
-
bin | for const with cosine bin |
Definition at line 80 of file CDCDedxCosineCor.h.
The documentation for this class was generated from the following file: