Belle II Software  release-05-01-25
ECLDigitEnergyConstants.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Calibration constants for the ECL single crystal energy calibration. *
6  * *
7  * Author: The Belle II Collaboration *
8  * Contributors: Torben Ferber *
9  * *
10  * This software is provided "as is" without any warranty. *
11  **************************************************************************/
12 
13 #ifndef ECLDIGITENERGYCONSTANTS_H
14 #define ECLDIGITENERGYCONSTANTS_H
15 #include <TObject.h>
16 
17 namespace Belle2 {
27  class ECLDigitEnergyConstants: public TObject {
28  public:
29 
34 
38  ECLDigitEnergyConstants(int cellid, float amplitude, float energy): m_cellID(cellid), m_amplitude(amplitude), m_energy(energy) {};
39 
44 
48  float getAmplitude() const {return m_amplitude; };
49 
53  float getEnergy() const {return m_energy; };
54 
58  int getCellID() const {return m_cellID; };
59 
63  void setConstant(float amplitude) {m_amplitude = amplitude; };
64 
68  void setEnergy(float energy) {m_energy = energy; };
69 
73  void setCellID(int cellid) {m_cellID = cellid; };
74 
75  private:
76  int m_cellID;
77  float m_amplitude;
78  float m_energy;
80  // 2: changed getter getCelleID from float to int
82  };
84 } // end namespace Belle2
85 #endif
Belle2::ECLDigitEnergyConstants::setConstant
void setConstant(float amplitude)
Set calibration amplitude (measured)
Definition: ECLDigitEnergyConstants.h:73
Belle2::ECLDigitEnergyConstants::getCellID
int getCellID() const
Return cell ID.
Definition: ECLDigitEnergyConstants.h:68
Belle2::ECLDigitEnergyConstants::m_cellID
int m_cellID
ECL cell ID.
Definition: ECLDigitEnergyConstants.h:83
Belle2::ECLDigitEnergyConstants::m_amplitude
float m_amplitude
Calibration amplitude.
Definition: ECLDigitEnergyConstants.h:87
Belle2::ECLDigitEnergyConstants::getAmplitude
float getAmplitude() const
Return calibration amplitude.
Definition: ECLDigitEnergyConstants.h:58
Belle2::ECLDigitEnergyConstants::getEnergy
float getEnergy() const
Return calibration energy.
Definition: ECLDigitEnergyConstants.h:63
Belle2::ECLDigitEnergyConstants::setEnergy
void setEnergy(float energy)
Set calibration energy (known from physics, e.g.
Definition: ECLDigitEnergyConstants.h:78
Belle2::ECLDigitEnergyConstants::setCellID
void setCellID(int cellid)
Set cell ID.
Definition: ECLDigitEnergyConstants.h:83
Belle2::ECLDigitEnergyConstants::~ECLDigitEnergyConstants
~ECLDigitEnergyConstants()
Destructor.
Definition: ECLDigitEnergyConstants.h:53
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECLDigitEnergyConstants::ClassDef
ClassDef(ECLDigitEnergyConstants, 2)
ClassDef.
Belle2::ECLDigitEnergyConstants
Energy calibration constants per digit.
Definition: ECLDigitEnergyConstants.h:37
Belle2::ECLDigitEnergyConstants::ECLDigitEnergyConstants
ECLDigitEnergyConstants()
Default constructor.
Definition: ECLDigitEnergyConstants.h:43
Belle2::ECLDigitEnergyConstants::m_energy
float m_energy
Calibration energy.
Definition: ECLDigitEnergyConstants.h:88