74 B2FATAL(
"Required iCLayer is invalid ! Should be 0 to 55 .");
86 if (alpha > (M_PI / 2)) alpha = alpha - M_PI;
87 if (alpha < -(M_PI / 2)) alpha = alpha + M_PI;
99 std::cout <<
" " << std::endl;
100 std::cout <<
"Scale factor list" << std::endl;
102 std::cout <<
"the ratio of data to MC for the hit efficiency of positively charged tracks comparing to negitively charged tracks" <<
105 for (
unsigned short iLayer = 0; iLayer <
c_nLayers; iLayer++) {
106 std::cout <<
"Scale factors for Layer " << iLayer <<
" : " << std::endl;
108 std::cout <<
" Alpha in ( " << i * 0.01 <<
" , " << (i + 1) * 0.01 <<
" ), Scale factor: " <<
m_Scales[iLayer][i] << std::endl;
ClassDef(CDCAlphaScaleFactorForAsymmetry, 1)
ClassDef.
std::array< std::array< float, c_nAlphaBins >, c_nLayers > m_Scales
scale factors
double c_AlphaBinWidth
bin width on alpha
unsigned short getEntries() const
Get the no.
std::array< std::array< float, c_nAlphaBins >, c_nLayers > getScaleFactors() const
Get the whole list.
void setScaleFactors(const std::array< std::array< float, c_nAlphaBins >, c_nLayers > &inputScales)
Set the factors in the list.
CDCAlphaScaleFactorForAsymmetry()
Default constructor.
std::array< float, c_nAlphaBins > getScaleFactors(unsigned short iCLayer) const
Get the factors for the iCLayer.
void dump() const
Print all contents.
double getScaleFactor(unsigned short iCLayer, double alpha) const
Get the factor for one hit.
Abstract base class for different kinds of events.