ATLAS Offline Software
SimplePolynomial.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6 // 28.06.2007, AUTHOR: OLIVER KORTNER
7 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8 
9 //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
10 //:: IMPLEMENTATIONS OF THE METHODS DEFINED IN THE CLASS SimplePolynomial ::
11 //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
12 
13 //::::::::::::::::::
14 //:: HEADER FILES ::
15 //::::::::::::::::::
16 
17 #include "cmath"
19 
20 //::::::::::::::::::::::::
21 //:: NAMESPACE SETTINGS ::
22 //::::::::::::::::::::::::
23 
24 using namespace MuonCalib;
25 
26 //*****************************************************************************
27 
28 //::::::::::::::::::
29 //:: METHOD value ::
30 //::::::::::::::::::
31 
32 double SimplePolynomial::value(const int & k, const double & x) const {
33 
34  return std::pow(x, k);
35 
36 }
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
MuonCalib::SimplePolynomial::value
double value(const int &k, const double &x) const
get x^k
Definition: SimplePolynomial.cxx:32
x
#define x
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
SimplePolynomial.h
fitman.k
k
Definition: fitman.py:528