ATLAS Offline Software
|
Class for the parameterization used by the proton transport tool. More...
#include <AFPProtonTransportParam.h>
Public Member Functions | |
AFPProtonTransportParam (double beam_energy, AFPProtonTransportPolynomial *poly_array[8]) | |
Constructor which sets m_energy and m_polynomial. More... | |
~AFPProtonTransportParam () | |
Destructor of the class. It deletes the polynomial objects set in the constructor. More... | |
double | evaluate (double x0, double y0, double z0, double sx, double sy, double E) const |
This function evaluates value of the parameterization given a certain polynomial. It takes as arguments the inital position, slope and nominal energy and uses it along with the polynomial objects given to the constructor to calculate the value of the parameterization. More... | |
Private Attributes | |
double | m_energy |
Nominal beam energy. More... | |
AFPProtonTransportPolynomial * | m_polynomial [8] |
Object of the AFPProtonTransportPolynomial class used for the position calculations. More... | |
Class for the parameterization used by the proton transport tool.
This class calculates the parameterization for a given polynomial. Using the given polynomial and the inital positon, slope and nominal beam energy it can calculate the parameterization.
Definition at line 16 of file AFPProtonTransportParam.h.
AFPProtonTransportParam::AFPProtonTransportParam | ( | double | beam_energy, |
AFPProtonTransportPolynomial * | poly_array[8] | ||
) |
Constructor which sets m_energy and m_polynomial.
beam_energy | nominal beam energy |
poly_array | array of pointers to 8 polynomials with transport parametrisation |
Definition at line 7 of file AFPProtonTransportParam.cxx.
AFPProtonTransportParam::~AFPProtonTransportParam | ( | ) |
Destructor of the class. It deletes the polynomial objects set in the constructor.
Definition at line 12 of file AFPProtonTransportParam.cxx.
double AFPProtonTransportParam::evaluate | ( | double | x0, |
double | y0, | ||
double | z0, | ||
double | sx, | ||
double | sy, | ||
double | E | ||
) | const |
This function evaluates value of the parameterization given a certain polynomial. It takes as arguments the inital position, slope and nominal energy and uses it along with the polynomial objects given to the constructor to calculate the value of the parameterization.
Definition at line 17 of file AFPProtonTransportParam.cxx.
|
private |
Nominal beam energy.
Definition at line 30 of file AFPProtonTransportParam.h.
|
private |
Object of the AFPProtonTransportPolynomial class used for the position calculations.
Definition at line 32 of file AFPProtonTransportParam.h.