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 const 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
76 double getMean(double bg) const;
77
78 private:
79
81 double meanCurve(double x, const double* par, int version) const;
82
83 short m_version{ -1};
84 std::vector<double> m_meanpars;
87 };
89} // end namespace Belle2
dE/dx mean (curve versus beta-gamma) parameterization constants
const std::vector< double > & getMeanPars() const
Return vector of mean parameters.
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.
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.
double getMean(double bg) const
Returns the predicted dE/dx mean at given beta-gamma.
double meanCurve(double x, const double *par, int version) const
parameterized beta-gamma curve for predicted means
Abstract base class for different kinds of events.