 |
Belle II Software
release-05-01-25
|
13 #include <framework/logging/Logger.h>
28 class CDCDedxMomentumCor:
public TObject {
52 if (
m_momcor.size() != rhs.getSize()) {
53 B2WARNING(
"Momentum correction parameters do not match, cannot merge!");
56 std::vector<double> rhsgains = rhs.getMomCor();
57 for (
unsigned int bin = 0; bin <
m_momcor.size(); ++bin) {
74 double getMean(
unsigned int bin)
const
76 if (bin >
m_momcor.size())
return 1.0;
83 double getMean(
double mom)
const
85 if (std::abs(mom) > 10.0)
return 0;
89 double binsize = 10.0 /
m_momcor.size();
90 int bin = std::floor(mom / binsize);
ClassDef(CDCDedxMomentumCor, 5)
ClassDef.
~CDCDedxMomentumCor()
Destructor.
CDCDedxMomentumCor & operator*=(CDCDedxMomentumCor const &rhs)
Combine payloads.
double getMean(unsigned int bin) const
Return dE/dx mean value for given bin.
Abstract base class for different kinds of events.
CDCDedxMomentumCor()
Default constructor.
dE/dx wire gain calibration constants
std::vector< double > getMomCor() const
Get the momentum correction.
unsigned int getSize() const
Get the number of bins for the momentum correction.
std::vector< double > m_momcor
dE/dx gains in momentum bins