Belle II Software  release-08-01-10
CDCDedxHadronCor.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 #include <vector>
13 
14 namespace Belle2 {
24  class CDCDedxHadronCor: public TObject {
25  public:
26 
31 
35  CDCDedxHadronCor(short version, const std::vector<double>& hadronpars): m_version(version), m_hadronpars(hadronpars) {};
36 
41 
44  double getSize() const {return m_hadronpars.size(); };
45 
48  short getVersion() const {return m_version; };
49 
53  std::vector<double> getHadronPars() const {return m_hadronpars; };
54 
58  double getHadronPar(int par) const {return m_hadronpars[par]; };
59 
63  void setVersion(short version) {m_version = version; };
64 
69  void setHadronPar(int par, double value) {m_hadronpars[par] = value; };
70 
71  private:
72  short m_version{ -1};
73  std::vector<double> m_hadronpars;
76  };
78 } // end namespace Belle2
dE/dx hadron saturation parameterization constants
void setHadronPar(int par, double value)
Set a parameter.
short m_version
version number for hadron saturation parameterization
std::vector< double > m_hadronpars
dE/dx hadron correction parameters
ClassDef(CDCDedxHadronCor, 2)
ClassDef.
double getSize() const
Get the number of parameters.
double getHadronPar(int par) const
Return specific hadron parameter.
void setVersion(short version)
Set version number.
std::vector< double > getHadronPars() const
Return vector of hadron parameters.
CDCDedxHadronCor(short version, const std::vector< double > &hadronpars)
Constructor.
CDCDedxHadronCor()
Default constructor.
short getVersion() const
Get the version for the hadron parameterization.
Abstract base class for different kinds of events.