Belle II Software development
CDCDedxMeanPred.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 <framework/database/DBObjPtr.h>
12#include <cdc/dbobjects/CDCDedxMeanPars.h>
13
14#include <cdc/utilities/CDCDedxWidgetCurve.h>
15
16#include <vector>
17#include <string>
18#include <iostream>
19#include <fstream>
20
21namespace Belle2 {
32
33 public:
34
38 void setParameters(std::string infile);
39
43 void setParameters();
44
48 void printParameters(std::string infile);
49
53 double getMean(double bg);
54
58 double getCurvePars(int i) { return m_meanpars[i]; };
59
63 void setCurvePars(int i, double val) { m_meanpars[i] = val; };
64
65 private:
66
67 double m_meanpars[15];
71 };
73} // Belle2 namespace
Class to hold the prediction of mean as a function of beta-gamma (bg)
void setCurvePars(int i, double val)
set the curve parameters
double m_meanpars[15]
parameters for beta-gamma curve
void setParameters()
set the parameters
const DBObjPtr< CDCDedxMeanPars > m_DBMeanPars
db object for dE/dx mean parameters
void printParameters(std::string infile)
write the parameters in file
double getCurvePars(int i)
get the curve parameters
double getMean(double bg)
Return the predicted mean value as a function of beta-gamma (bg)
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Abstract base class for different kinds of events.