Belle II Software development
ECLDigitEnergyConstants.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#include <TObject.h>
11
12namespace Belle2 {
22 class ECLDigitEnergyConstants: public TObject {
23 public:
24
29
33 ECLDigitEnergyConstants(int cellid, float amplitude, float energy): m_cellID(cellid), m_amplitude(amplitude), m_energy(energy) {};
34
39
43 float getAmplitude() const {return m_amplitude; };
44
48 float getEnergy() const {return m_energy; };
49
53 int getCellID() const {return m_cellID; };
54
58 void setConstant(float amplitude) {m_amplitude = amplitude; };
59
63 void setEnergy(float energy) {m_energy = energy; };
64
68 void setCellID(int cellid) {m_cellID = cellid; };
69
70 private:
73 float m_energy;
75 // 2: changed getter getCelleID from float to int
77 };
79} // end namespace Belle2
Energy calibration constants per digit.
float getEnergy() const
Return calibration energy.
void setCellID(int cellid)
Set cell ID.
void setEnergy(float energy)
Set calibration energy (known from physics, e.g.
float getAmplitude() const
Return calibration amplitude.
ClassDef(ECLDigitEnergyConstants, 2)
ClassDef.
void setConstant(float amplitude)
Set calibration amplitude (measured)
ECLDigitEnergyConstants()
Default constructor.
int getCellID() const
Return cell ID.
ECLDigitEnergyConstants(int cellid, float amplitude, float energy)
Constructor.
float m_amplitude
Calibration amplitude.
Abstract base class for different kinds of events.