ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigAFPHypo
src
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
8
class
AFPProtonTransportPolynomial
{
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
:
26
int
m_numCoefficients
= 0;
27
double
m_coefficients
[10];
28
};
29
30
#endif
x
#define x
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
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
AFPProtonTransportPolynomial::numCoefficients
int numCoefficients() const
This function returns the number of coefficients.
Definition
AFPProtonTransportPolynomial.cxx:12
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
AFPProtonTransportPolynomial::m_numCoefficients
int m_numCoefficients
Definition
AFPProtonTransportPolynomial.h:26
Generated on
for ATLAS Offline Software by
1.17.0