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