6#include "GeoModelKernel/throwExcept.h"
27 if (t <
tLower())
return 0.0;
28 if (t >
tUpper())
return 14.6;
40 for (
unsigned int k = 0; k <
nDoF(); k++) {
43 return std::max(rad, 0.);
57 for (
unsigned int k = 0; k <
nDoF(); ++k) {
67 for (
unsigned int k = 0; k <
nDoF(); ++k) {
std::vector< size_t > vec
const ParVec & parameters() const
double par(unsigned int index) const
unsigned int nPar() const
std::vector< double > ParVec
generic interface for a rt-relation
static constexpr double s_tBinWidth
double dReducedTimeDt() const
double getReducedTime(const double t) const
map the in the interval [tLower;tUpper] onto the interval [-1.;1.
std::vector< double > rtParameters() const
virtual double driftVelocity(double t) const override final
get the drift acceleration
RtLegendre(const ParVec &vec)
initialization constructor,
virtual double radius(double t) const override final
get the drift velocity
virtual double tLower() const override final
< get the lower drift-time bound
virtual unsigned nDoF() const override final
Returns the number of degrees of freedom of the relation function.
virtual double tUpper() const override final
Returns the upper time covered by the r-t.
virtual std::string name() const override final
get the class name
virtual double driftAcceleration(double t) const override final
Returns the acceleration of the r-t relation.
virtual double tBinWidth() const override final
get the number of parameters used to describe the r(t) relationship
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
constexpr double legendrePoly(const unsigned l, const double x)
Calculates the legendre polynomial of rank l at x.
constexpr double legendreDeriv(const unsigned l, const unsigned d, const double x)
Evaluates the n-th derivative of the l-th Legendre polynomial.
#define THROW_EXCEPTION(MESSAGE)