Belle II Software  release-08-01-10
CDCDedxMomentumCor Class Reference

dE/dx wire gain calibration constants More...

#include <CDCDedxMomentumCor.h>

Inheritance diagram for CDCDedxMomentumCor:
Collaboration diagram for CDCDedxMomentumCor:

Public Member Functions

 CDCDedxMomentumCor ()
 Default constructor.
 
 CDCDedxMomentumCor (const std::vector< double > &momcor)
 Constructor.
 
 ~CDCDedxMomentumCor ()
 Destructor.
 
CDCDedxMomentumCoroperator*= (CDCDedxMomentumCor const &rhs)
 Combine payloads.
 
unsigned int getSize () const
 Get the number of bins for the momentum correction.
 
std::vector< double > getMomCor () const
 Get the momentum correction.
 
double getMean (unsigned int bin) const
 Return dE/dx mean value for given bin. More...
 
double getMean (double mom) const
 Return dE/dx mean value for given cos(theta) More...
 

Private Member Functions

 ClassDef (CDCDedxMomentumCor, 5)
 ClassDef.
 

Private Attributes

std::vector< double > m_momcor
 dE/dx gains in momentum bins
 

Detailed Description

dE/dx wire gain calibration constants

Definition at line 26 of file CDCDedxMomentumCor.h.

Member Function Documentation

◆ getMean() [1/2]

double getMean ( double  mom) const
inline

Return dE/dx mean value for given cos(theta)

Parameters
momfor const from momemtum value

Definition at line 81 of file CDCDedxMomentumCor.h.

82  {
83  if (std::abs(mom) > 10.0) return 0;
84 
85  // gains are stored at the center of the bins
86  // find the bin center immediately preceding this value of mom
87  double binsize = 10.0 / m_momcor.size();
88  int bin = std::floor(mom / binsize);
89 
90  return m_momcor[bin];
91  };
std::vector< double > m_momcor
dE/dx gains in momentum bins

◆ getMean() [2/2]

double getMean ( unsigned int  bin) const
inline

Return dE/dx mean value for given bin.

Parameters
binfor const from bin number

Definition at line 72 of file CDCDedxMomentumCor.h.


The documentation for this class was generated from the following file: