Belle II Software development
CDCDedxMeanPars.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
14namespace Belle2 {
24 class CDCDedxMeanPars: public TObject {
25 public:
26
31
35 CDCDedxMeanPars(short version, const std::vector<double>& meanpars): m_version(version), m_meanpars(meanpars) {};
36
41
44 double getSize() const {return m_meanpars.size(); };
45
48 short getVersion() const {return m_version; };
49
53 std::vector<double> getMeanPars() const {return m_meanpars; };
54
58 double getMeanPar(int par) const {return m_meanpars[par]; };
59
63 void setVersion(short version) {m_version = version; };
64
69 void setMeanPar(int par, double value) {m_meanpars[par] = value; };
70
71 private:
72 short m_version{ -1};
73 std::vector<double> m_meanpars;
76 };
78} // end namespace Belle2
dE/dx mean (curve versus beta-gamma) parameterization constants
short m_version
version number for mean parameterization
~CDCDedxMeanPars()
Destructor.
CDCDedxMeanPars()
Default constructor.
ClassDef(CDCDedxMeanPars, 2)
ClassDef.
double getSize() const
Get the number of parameters.
std::vector< double > getMeanPars() const
Return vector of mean parameters.
void setVersion(short version)
Set version number.
std::vector< double > m_meanpars
dE/dx mean parameters
void setMeanPar(int par, double value)
Set a parameter.
CDCDedxMeanPars(short version, const std::vector< double > &meanpars)
Constructor.
short getVersion() const
Get the version for the mean parameterization.
double getMeanPar(int par) const
Return specific mean parameter.
Abstract base class for different kinds of events.