 |
Belle II Software
release-05-01-25
|
25 class TOPPmtGainPar :
public TObject {
30 enum {c_NumPmtPixels = 16};
53 void setPmtPixelData(
unsigned pmtPixel,
double constant,
double slope,
double ratio)
56 if (pmtPixel >= c_NumPmtPixels)
return;
88 if (pmtPixel >= c_NumPmtPixels)
return 0;
97 double getSlope(
unsigned pmtPixel)
const
100 if (pmtPixel >= c_NumPmtPixels)
return 0;
109 double getRatio(
unsigned pmtPixel)
const
112 if (pmtPixel >= c_NumPmtPixels)
return 0;
134 double getGain0(
unsigned pmtPixel,
double HV)
const
137 if (pmtPixel >= c_NumPmtPixels)
return 0;
147 double getGain(
unsigned pmtPixel,
float HV)
const
162 float m_slope[c_NumPmtPixels] = {0};
163 float m_ratio[c_NumPmtPixels] = {0};
const std::string & getSerialNumber() const
Returns PMT serial number.
void setPmtPixelData(unsigned pmtPixel, double constant, double slope, double ratio)
Sets the data for a given PMT pmtPixel.
ClassDef(TOPPmtGainPar, 3)
ClassDef.
float m_constant[c_NumPmtPixels]
constant
float m_slope[c_NumPmtPixels]
slope
float getNominalHV() const
Returns nominal HV (corresponding to a gain of 5x10^5 at B = 1.5T)
double getGain0(unsigned pmtPixel, double HV) const
Returns pmtPixel gain at B = 0 for a given high voltage.
float m_HV_noB
high voltage for the gain of 5x10^5, no B field
double getGain(unsigned pmtPixel, float HV) const
Returns pmtPixel gain at B = 1.5 T for a given high voltage.
Abstract base class for different kinds of events.
float getNominalHV0() const
Returns nominal HV (corresponding to a gain of 5x10^5 at B = 0)
double getRatio(unsigned pmtPixel) const
Returns ratio of gains between 1.5T and 0T.
double getConstant(unsigned pmtPixel) const
Returns constant of the gain vs HV fitting function.
float m_ratio[c_NumPmtPixels]
ratio of gains at B = 1.5 T and B = 0
void setNominalHV(float HV)
Sets the high voltage at gain of 5x10^5, with B field.
void setNominalHV0(float HV)
Sets the high voltage at gain of 5x10^5, without B field.
double getSlope(unsigned pmtPixel) const
Returns slope of the gain vs HV fitting function.
void print() const
Print the class content.
std::string m_serialNumber
serial number, e.g.
TOPPmtGainPar()
Default constructor.
float m_HV_withB
high voltage for the gain of 5x10^5, with B field