Belle II Software  release-08-01-10
TOPPmtGainPar Class Reference

Parameterized PMT gain (from laser testing at Nagoya) More...

#include <TOPPmtGainPar.h>

Inheritance diagram for TOPPmtGainPar:
Collaboration diagram for TOPPmtGainPar:

Public Types

enum  { c_NumPmtPixels = 16 }
 number of PMT pixels
 

Public Member Functions

 TOPPmtGainPar ()
 Default constructor.
 
 TOPPmtGainPar (const std::string &serialNumber)
 Useful constructor. More...
 
void setPmtPixelData (unsigned pmtPixel, double constant, double slope, double ratio)
 Sets the data for a given PMT pmtPixel. More...
 
void setNominalHV0 (float HV)
 Sets the high voltage at gain of 5x10^5, without B field. More...
 
void setNominalHV (float HV)
 Sets the high voltage at gain of 5x10^5, with B field. More...
 
const std::string & getSerialNumber () const
 Returns PMT serial number. More...
 
double getConstant (unsigned pmtPixel) const
 Returns constant of the gain vs HV fitting function. More...
 
double getSlope (unsigned pmtPixel) const
 Returns slope of the gain vs HV fitting function. More...
 
double getRatio (unsigned pmtPixel) const
 Returns ratio of gains between 1.5T and 0T. More...
 
float getNominalHV0 () const
 Returns nominal HV (corresponding to a gain of 5x10^5 at B = 0) More...
 
float getNominalHV () const
 Returns nominal HV (corresponding to a gain of 5x10^5 at B = 1.5T) More...
 
double getGain0 (unsigned pmtPixel, double HV) const
 Returns pmtPixel gain at B = 0 for a given high voltage. More...
 
double getGain (unsigned pmtPixel, float HV) const
 Returns pmtPixel gain at B = 1.5 T for a given high voltage. More...
 
void print () const
 Print the class content.
 

Private Member Functions

 ClassDef (TOPPmtGainPar, 3)
 ClassDef.
 

Private Attributes

std::string m_serialNumber
 serial number, e.g. More...
 
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
 

Detailed Description

Parameterized PMT gain (from laser testing at Nagoya)

Definition at line 23 of file TOPPmtGainPar.h.

Constructor & Destructor Documentation

◆ TOPPmtGainPar()

TOPPmtGainPar ( const std::string &  serialNumber)
inlineexplicit

Useful constructor.

Parameters
serialNumberserial number

Definition at line 40 of file TOPPmtGainPar.h.

40  :
41  m_serialNumber(serialNumber)
42  {}
std::string m_serialNumber
serial number, e.g.

Member Function Documentation

◆ getConstant()

double getConstant ( unsigned  pmtPixel) const
inline

Returns constant of the gain vs HV fitting function.

Parameters
pmtPixelpmtPixel number (1-based)
Returns
constant

Definition at line 83 of file TOPPmtGainPar.h.

◆ getGain()

double getGain ( unsigned  pmtPixel,
float  HV 
) const
inline

Returns pmtPixel gain at B = 1.5 T for a given high voltage.

Parameters
pmtPixelpmtPixel number (1-based)
HVhigh voltage [V]
Returns
gain

Definition at line 145 of file TOPPmtGainPar.h.

◆ getGain0()

double getGain0 ( unsigned  pmtPixel,
double  HV 
) const
inline

Returns pmtPixel gain at B = 0 for a given high voltage.

Parameters
pmtPixelpmtPixel number (1-based)
HVhigh voltage [V]
Returns
gain

Definition at line 132 of file TOPPmtGainPar.h.

◆ 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
pmtPixelpmtPixel number (1-based)
Returns
gain ratio

Definition at line 107 of file TOPPmtGainPar.h.

◆ getSerialNumber()

const std::string& getSerialNumber ( ) const
inline

Returns PMT serial number.

Returns
serial number

Definition at line 76 of file TOPPmtGainPar.h.

◆ getSlope()

double getSlope ( unsigned  pmtPixel) const
inline

Returns slope of the gain vs HV fitting function.

Parameters
pmtPixelpmtPixel number (1-based)
Returns
slope

Definition at line 95 of file TOPPmtGainPar.h.

◆ setNominalHV()

void setNominalHV ( float  HV)
inline

Sets the high voltage at gain of 5x10^5, with B field.

Parameters
HVhigh voltage [V]

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
HVhigh voltage [V]

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
pmtPixelpmtPixel number (1-based)
constantfitting function constant (gain vs HV)
slopefitting function slope (gain vs HV)
ratioratio of gains at B = 1.5 T and B = 0

Definition at line 51 of file TOPPmtGainPar.h.

Member Data Documentation

◆ m_serialNumber

std::string m_serialNumber
private

serial number, e.g.

JTxxxx

Definition at line 158 of file TOPPmtGainPar.h.


The documentation for this class was generated from the following files: