9#include <top/dbobjects/TOPPmtGainPar.h>
23 cout <<
"PMT gain parameters:" << endl;
25 cout <<
" Nominal HV: " <<
getNominalHV() <<
" V" << endl;
26 for (
unsigned channel = 1; channel <= c_NumPmtPixels; channel++) {
27 cout << setw(4) << channel;
29 cout << setw(12) <<
getSlope(channel);
30 cout << setw(12) <<
getRatio(channel);
double getSlope(unsigned pmtPixel) const
Returns slope of the gain vs HV fitting function.
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 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.
const std::string & getSerialNumber() const
Returns PMT serial number.
void print() const
Print the class content.
Abstract base class for different kinds of events.