Parameterized PMT gain (from laser testing at Nagoya)
More...
#include <TOPPmtGainPar.h>
|
enum | { c_NumPmtPixels = 16
} |
| number of PMT pixels More...
|
|
|
| TOPPmtGainPar () |
| Default constructor.
|
|
| TOPPmtGainPar (const std::string &serialNumber) |
| Useful constructor.
|
|
void | setPmtPixelData (unsigned pmtPixel, double constant, double slope, double ratio) |
| Sets the data for a given PMT pmtPixel.
|
|
void | setNominalHV0 (float HV) |
| Sets the high voltage at gain of 5x10^5, without B field.
|
|
void | setNominalHV (float HV) |
| Sets the high voltage at gain of 5x10^5, with B field.
|
|
const std::string & | getSerialNumber () const |
| Returns PMT serial number.
|
|
double | getConstant (unsigned pmtPixel) const |
| Returns constant of the gain vs HV fitting function.
|
|
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.
|
|
float | getNominalHV0 () const |
| Returns nominal HV (corresponding to a gain of 5x10^5 at B = 0)
|
|
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.
|
|
double | getGain (unsigned pmtPixel, float HV) const |
| Returns pmtPixel gain at B = 1.5 T for a given high voltage.
|
|
void | print () const |
| Print the class content.
|
|
|
std::string | m_serialNumber |
| serial number, e.g.
|
|
float | m_constant [c_NumPmtPixels] = {0} |
| constant
|
|
float | m_slope [c_NumPmtPixels] = {0} |
| slope
|
|
float | m_ratio [c_NumPmtPixels] = {0} |
| ratio of gains at B = 1.5 T and B = 0
|
|
float | m_HV_noB = 0 |
| high voltage for the gain of 5x10^5, no B field
|
|
float | m_HV_withB = 0 |
| high voltage for the gain of 5x10^5, with B field
|
|
Parameterized PMT gain (from laser testing at Nagoya)
Definition at line 23 of file TOPPmtGainPar.h.
◆ anonymous enum
◆ TOPPmtGainPar() [1/2]
◆ TOPPmtGainPar() [2/2]
Useful constructor.
- Parameters
-
serialNumber | serial number |
Definition at line 40 of file TOPPmtGainPar.h.
40 :
41 m_serialNumber(serialNumber)
42 {}
◆ getConstant()
double getConstant |
( |
unsigned | pmtPixel | ) |
const |
|
inline |
Returns constant of the gain vs HV fitting function.
- Parameters
-
pmtPixel | pmtPixel number (1-based) |
- Returns
- constant
Definition at line 83 of file TOPPmtGainPar.h.
84 {
85 pmtPixel--;
86 if (pmtPixel >= c_NumPmtPixels) return 0;
87 return m_constant[pmtPixel];
88 }
◆ getGain()
double getGain |
( |
unsigned | pmtPixel, |
|
|
float | HV ) const |
|
inline |
Returns pmtPixel gain at B = 1.5 T for a given high voltage.
- Parameters
-
pmtPixel | pmtPixel number (1-based) |
HV | high voltage [V] |
- Returns
- gain
Definition at line 145 of file TOPPmtGainPar.h.
146 {
147 return getGain0(pmtPixel, HV) * getRatio(pmtPixel);
148 }
◆ getGain0()
double getGain0 |
( |
unsigned | pmtPixel, |
|
|
double | HV ) const |
|
inline |
Returns pmtPixel gain at B = 0 for a given high voltage.
- Parameters
-
pmtPixel | pmtPixel number (1-based) |
HV | high voltage [V] |
- Returns
- gain
Definition at line 132 of file TOPPmtGainPar.h.
133 {
134 pmtPixel--;
135 if (pmtPixel >= c_NumPmtPixels) return 0;
136 return exp(m_constant[pmtPixel] + m_slope[pmtPixel] * HV) * 1.0e6;
137 }
◆ getNominalHV()
float getNominalHV |
( |
| ) |
const |
|
inline |
Returns nominal HV (corresponding to a gain of 5x10^5 at B = 1.5T)
- Returns
- HV in [V]
Definition at line 124 of file TOPPmtGainPar.h.
◆ getNominalHV0()
float getNominalHV0 |
( |
| ) |
const |
|
inline |
Returns nominal HV (corresponding to a gain of 5x10^5 at B = 0)
- Returns
- HV in [V]
Definition at line 118 of file TOPPmtGainPar.h.
◆ getRatio()
double getRatio |
( |
unsigned | pmtPixel | ) |
const |
|
inline |
Returns ratio of gains between 1.5T and 0T.
- Parameters
-
pmtPixel | pmtPixel number (1-based) |
- Returns
- gain ratio
Definition at line 107 of file TOPPmtGainPar.h.
108 {
109 pmtPixel--;
110 if (pmtPixel >= c_NumPmtPixels) return 0;
111 return m_ratio[pmtPixel];
112 }
◆ getSerialNumber()
const std::string & getSerialNumber |
( |
| ) |
const |
|
inline |
Returns PMT serial number.
- Returns
- serial number
Definition at line 76 of file TOPPmtGainPar.h.
76{return m_serialNumber;}
◆ getSlope()
double getSlope |
( |
unsigned | pmtPixel | ) |
const |
|
inline |
Returns slope of the gain vs HV fitting function.
- Parameters
-
pmtPixel | pmtPixel number (1-based) |
- Returns
- slope
Definition at line 95 of file TOPPmtGainPar.h.
96 {
97 pmtPixel--;
98 if (pmtPixel >= c_NumPmtPixels) return 0;
99 return m_slope[pmtPixel];
100 }
◆ setNominalHV()
void setNominalHV |
( |
float | HV | ) |
|
|
inline |
Sets the high voltage at gain of 5x10^5, with B field.
- Parameters
-
Definition at line 70 of file TOPPmtGainPar.h.
◆ setNominalHV0()
void setNominalHV0 |
( |
float | HV | ) |
|
|
inline |
Sets the high voltage at gain of 5x10^5, without B field.
- Parameters
-
Definition at line 64 of file TOPPmtGainPar.h.
◆ setPmtPixelData()
void setPmtPixelData |
( |
unsigned | pmtPixel, |
|
|
double | constant, |
|
|
double | slope, |
|
|
double | ratio ) |
|
inline |
Sets the data for a given PMT pmtPixel.
- Parameters
-
pmtPixel | pmtPixel number (1-based) |
constant | fitting function constant (gain vs HV) |
slope | fitting function slope (gain vs HV) |
ratio | ratio of gains at B = 1.5 T and B = 0 |
Definition at line 51 of file TOPPmtGainPar.h.
52 {
53 pmtPixel--;
54 if (pmtPixel >= c_NumPmtPixels) return;
55 m_constant[pmtPixel] = constant;
56 m_slope[pmtPixel] = slope;
57 m_ratio[pmtPixel] = ratio;
58 }
◆ m_constant
float m_constant[c_NumPmtPixels] = {0} |
|
private |
◆ m_HV_noB
high voltage for the gain of 5x10^5, no B field
Definition at line 162 of file TOPPmtGainPar.h.
◆ m_HV_withB
high voltage for the gain of 5x10^5, with B field
Definition at line 163 of file TOPPmtGainPar.h.
◆ m_ratio
float m_ratio[c_NumPmtPixels] = {0} |
|
private |
◆ m_serialNumber
std::string m_serialNumber |
|
private |
◆ m_slope
float m_slope[c_NumPmtPixels] = {0} |
|
private |
The documentation for this class was generated from the following files: