Belle II Software  release-05-01-25
TOPPmtGainPar.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <top/dbobjects/TOPPmtGainPar.h>
12 #include <iostream>
13 #include <iomanip>
14 
15 using namespace std;
16 
17 namespace Belle2 {
23  void TOPPmtGainPar::print() const
24  {
25  cout << "PMT gain parameters:" << endl;
26  cout << " Serial number: " << getSerialNumber() << endl;
27  cout << " Nominal HV: " << getNominalHV() << " V" << endl;
28  for (unsigned channel = 1; channel <= c_NumPmtPixels; channel++) {
29  cout << setw(4) << channel;
30  cout << setw(12) << getConstant(channel);
31  cout << setw(12) << getSlope(channel);
32  cout << setw(12) << getRatio(channel);
33  cout << setw(12) << getGain0(channel, getNominalHV());
34  cout << endl;
35  }
36  cout << endl;
37  }
38 
40 } // end Belle2 namespace
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19