ATLAS Offline Software
Loading...
Searching...
No Matches
AFPProtonTransportPolynomial.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef TRIGAFPHYPO_AFPPROTONTRANSPORTPOLYNOMIAL_H
6#define TRIGAFPHYPO_AFPPROTONTRANSPORTPOLYNOMIAL_H
7
9public:
11 AFPProtonTransportPolynomial(int n, double c0, double c1 = 0, double c2 = 0, double c3 = 0, double c4 = 0,
12 double c5 = 0, double c6 = 0, double c7 = 0, double c8 = 0, double c9 = 0);
13
15 int numCoefficients() const;
17 void setCoefficients(int n, double c0, double c1 = 0, double c2 = 0, double c3 = 0, double c4 = 0,
18 double c5 = 0, double c6 = 0, double c7 = 0, double c8 = 0, double c9 = 0);
19
24 double evaluate(double x) const;
25private:
27 double m_coefficients[10];
28};
29
30#endif
#define x
AFPProtonTransportPolynomial(int n, double c0, double c1=0, double c2=0, double c3=0, double c4=0, double c5=0, double c6=0, double c7=0, double c8=0, double c9=0)
Default constructor of kinRecoPolynomial. Takes number of coefficients and coefficients itself up to ...
double evaluate(double x) const
This function of returns the sum of the polynomial coeficients of a given argument x.
int numCoefficients() const
This function returns the number of coefficients.
void setCoefficients(int n, double c0, double c1=0, double c2=0, double c3=0, double c4=0, double c5=0, double c6=0, double c7=0, double c8=0, double c9=0)
This function sets the coefficients of the polynomial.