Belle II Software development
TOPPmtGainPar.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#include <top/dbobjects/TOPPmtGainPar.h>
10#include <iostream>
11#include <iomanip>
12
13using namespace std;
14
15namespace Belle2 {
22 {
23 cout << "PMT gain parameters:" << endl;
24 cout << " Serial number: " << getSerialNumber() << endl;
25 cout << " Nominal HV: " << getNominalHV() << " V" << endl;
26 for (unsigned channel = 1; channel <= c_NumPmtPixels; channel++) {
27 cout << setw(4) << channel;
28 cout << setw(12) << getConstant(channel);
29 cout << setw(12) << getSlope(channel);
30 cout << setw(12) << getRatio(channel);
31 cout << setw(12) << getGain0(channel, getNominalHV());
32 cout << endl;
33 }
34 cout << endl;
35 }
36
38} // end Belle2 namespace
double getSlope(unsigned pmtPixel) const
Returns slope of the gain vs HV fitting function.
Definition: TOPPmtGainPar.h:95
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.
Definition: TOPPmtGainPar.h:83
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.
Definition: TOPPmtGainPar.h:76
void print() const
Print the class content.
Abstract base class for different kinds of events.
STL namespace.