5#include "Acts/Utilities/detail/Polynomials.hpp"
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++) {
41 rad +=
par(k+2) * Acts::detail::chebychevPolyTn(
x, k);
43 return std::max(rad, 0.);
56 for (
unsigned int k = 1; k <
nDoF(); ++k) {
58 drdt +=
par(k+2) * Acts::detail::chebychevPolyTn(
x, k, 1) * dx_dt;
67 for (
unsigned int k = 2; k <
nDoF(); ++k) {
68 acc +=
par(k+2) * Acts::detail::chebychevPolyTn(
x, k, 2) * dx_dt;
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.
virtual double driftAcceleration(double t) const override final
Returns the acceleration of the r-t relation.
virtual double tUpper() const override final
Returns the upper time covered by the r-t.
virtual unsigned nDoF() const override final
get the coefficients of the r(t) polynomial
std::vector< double > rtParameters() const
virtual std::string name() const override final
get the class name
RtChebyshev(const ParVec &vec)
initialization constructor,
virtual double tBinWidth() const override final
Returns the step-size for the sampling.
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 double driftVelocity(double t) const override final
get the drift acceleration
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
#define THROW_EXCEPTION(MESSAGE)