11#include <framework/logging/Logger.h>
51 B2WARNING(
"Momentum correction parameters do not match, cannot merge!");
54 std::vector<double> rhsgains = rhs.
getMomCor();
55 for (
unsigned int bin = 0; bin <
m_momcor.size(); ++bin) {
74 if (bin >
m_momcor.size())
return 1.0;
83 if (std::abs(mom) > 10.0)
return 0;
87 double binsize = 10.0 /
m_momcor.size();
88 int bin = std::floor(mom / binsize);
dE/dx wire gain calibration constants
CDCDedxMomentumCor & operator*=(CDCDedxMomentumCor const &rhs)
Combine payloads.
ClassDef(CDCDedxMomentumCor, 5)
ClassDef.
CDCDedxMomentumCor()
Default constructor.
double getMean(double mom) const
Return dE/dx mean value for given cos(theta)
CDCDedxMomentumCor(const std::vector< double > &momcor)
Constructor.
std::vector< double > m_momcor
dE/dx gains in momentum bins
double getMean(unsigned int bin) const
Return dE/dx mean value for given bin.
std::vector< double > getMomCor() const
Get the momentum correction.
unsigned int getSize() const
Get the number of bins for the momentum correction.
~CDCDedxMomentumCor()
Destructor.
Abstract base class for different kinds of events.