Belle II Software  release-08-01-10
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 
13 using namespace std;
14 
15 namespace Belle2 {
21  void TOPPmtGainPar::print() const
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
Abstract base class for different kinds of events.