ATLAS Offline Software
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 
9 public:
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;
25 private:
27  double m_coefficients[10];
28 };
29 
30 #endif
AFPProtonTransportPolynomial::m_numCoefficients
int m_numCoefficients
Definition: AFPProtonTransportPolynomial.h:26
AFPProtonTransportPolynomial::setCoefficients
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.
Definition: AFPProtonTransportPolynomial.cxx:17
extractSporadic.c1
c1
Definition: extractSporadic.py:134
AFPProtonTransportPolynomial::m_coefficients
double m_coefficients[10]
Definition: AFPProtonTransportPolynomial.h:27
AFPProtonTransportPolynomial::evaluate
double evaluate(double x) const
This function of returns the sum of the polynomial coeficients of a given argument x.
Definition: AFPProtonTransportPolynomial.cxx:32
x
#define x
hotSpotInTAG.c0
c0
Definition: hotSpotInTAG.py:192
python.DataFormatRates.c3
c3
Definition: DataFormatRates.py:127
beamspotman.n
n
Definition: beamspotman.py:731
AFPProtonTransportPolynomial
Definition: AFPProtonTransportPolynomial.h:8
AFPProtonTransportPolynomial::numCoefficients
int numCoefficients() const
This function returns the number of coefficients.
Definition: AFPProtonTransportPolynomial.cxx:12
python.DataFormatRates.c2
c2
Definition: DataFormatRates.py:123
AFPProtonTransportPolynomial::AFPProtonTransportPolynomial
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 ...
Definition: AFPProtonTransportPolynomial.cxx:7