Belle II Software  release-08-01-10
CDCDedxRunGain.h
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 #pragma once
10 
11 #include <TObject.h>
12 
13 namespace Belle2 {
23  class CDCDedxRunGain: public TObject {
24  public:
25 
29  CDCDedxRunGain(): m_gain(1.0) {};
30 
34  explicit CDCDedxRunGain(double gain): m_gain(gain) {};
35 
40 
45  {
46  m_gain *= rhs.getRunGain();
47  return *this;
48  };
49 
53  double getRunGain() const {return m_gain; };
54 
58  void setRunGain(double gain) {m_gain = gain; };
59 
60  private:
61  double m_gain;
64  };
66 } // end namespace Belle2
dE/dx run gain calibration constants
double m_gain
Run gain.
ClassDef(CDCDedxRunGain, 4)
ClassDef.
~CDCDedxRunGain()
Destructor.
CDCDedxRunGain()
Default constructor.
double getRunGain() const
Return run gain.
CDCDedxRunGain & operator*=(CDCDedxRunGain const &rhs)
Combine payloads.
CDCDedxRunGain(double gain)
Constructor.
void setRunGain(double gain)
Set run gain.
Abstract base class for different kinds of events.