28 enum {c_NumPmtPixels = 16};
51 void setPmtPixelData(
unsigned pmtPixel,
double constant,
double slope,
double ratio)
54 if (pmtPixel >= c_NumPmtPixels)
return;
86 if (pmtPixel >= c_NumPmtPixels)
return 0;
98 if (pmtPixel >= c_NumPmtPixels)
return 0;
110 if (pmtPixel >= c_NumPmtPixels)
return 0;
132 double getGain0(
unsigned pmtPixel,
double HV)
const
135 if (pmtPixel >= c_NumPmtPixels)
return 0;
145 double getGain(
unsigned pmtPixel,
float HV)
const
Parameterized PMT gain (from laser testing at Nagoya)
double getSlope(unsigned pmtPixel) const
Returns slope of the gain vs HV fitting function.
TOPPmtGainPar()
Default constructor.
void setNominalHV0(float HV)
Sets the high voltage at gain of 5x10^5, without B field.
double getRatio(unsigned pmtPixel) const
Returns ratio of gains between 1.5T and 0T.
float m_ratio[c_NumPmtPixels]
ratio of gains at B = 1.5 T and B = 0
float m_constant[c_NumPmtPixels]
constant
double getConstant(unsigned pmtPixel) const
Returns constant of the gain vs HV fitting function.
float m_HV_withB
high voltage for the gain of 5x10^5, with B field
TOPPmtGainPar(const std::string &serialNumber)
Useful constructor.
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.
float getNominalHV0() const
Returns nominal HV (corresponding to a gain of 5x10^5 at B = 0)
std::string m_serialNumber
serial number, e.g.
ClassDef(TOPPmtGainPar, 3)
ClassDef.
float getNominalHV() const
Returns nominal HV (corresponding to a gain of 5x10^5 at B = 1.5T)
float m_slope[c_NumPmtPixels]
slope
void setNominalHV(float HV)
Sets the high voltage at gain of 5x10^5, with B field.
void setPmtPixelData(unsigned pmtPixel, double constant, double slope, double ratio)
Sets the data for a given PMT pmtPixel.
double getGain0(unsigned pmtPixel, double HV) const
Returns pmtPixel gain at B = 0 for a given high voltage.
const std::string & getSerialNumber() const
Returns PMT serial number.
void print() const
Print the class content.
Abstract base class for different kinds of events.