#include <TrSimplePolynomial.h>
|
| using | ParVec = std::vector<double> |
|
| | TrSimplePolynomial (const ParVec &vec) |
| virtual std::string | name () const override final |
| virtual std::optional< double > | driftTime (const double r) const override final |
| | Interface method for fetching the drift-time from the radius Returns a nullopt if the time is out of the boundaries.
|
| virtual std::optional< double > | driftTimePrime (const double r) const override final |
| virtual std::optional< double > | driftTime2Prime (const double r) const override final |
| virtual double | minRadius () const override final |
| | Returns the minimum drift-radius.
|
| virtual double | maxRadius () const override final |
| | Returns the maximum drift-radius.
|
| virtual unsigned | nDoF () const override final |
| | Returns the number of degrees of freedom of the tr relation.
|
| virtual std::string | typeName () const override final |
| double | getReducedR (const double r) const |
| | Maps the radius interval [minRadius;maxRadius] to [-1;1] where the minimal radius is on the lower end.
|
| double | getReducedRPrime () const |
| | Returns the derivative of the reduced radisu w.r.t r.
|
| unsigned int | nPar () const |
| const ParVec & | parameters () const |
| double | par (unsigned int index) const |
Definition at line 11 of file TrSimplePolynomial.h.
◆ ParVec
◆ TrSimplePolynomial()
| MuonCalib::TrSimplePolynomial::TrSimplePolynomial |
( |
const ParVec & | vec | ) |
|
Definition at line 9 of file TrSimplePolynomial.cxx.
12 }
13 }
std::vector< size_t > vec
ITrRelation(const ParVec ¶meters)
Constructor taking the input r-t relation & the vector of parameters.
virtual double minRadius() const override final
Returns the minimum drift-radius.
virtual double maxRadius() const override final
Returns the maximum drift-radius.
#define THROW_EXCEPTION(MESSAGE)
◆ driftTime()
| std::optional< double > MuonCalib::TrSimplePolynomial::driftTime |
( |
const double | r | ) |
const |
|
finaloverridevirtual |
Interface method for fetching the drift-time from the radius Returns a nullopt if the time is out of the boundaries.
Implements MuonCalib::ITrRelation.
Definition at line 16 of file TrSimplePolynomial.cxx.
16 {
20 for (
unsigned int k = 0;
k <
nDoF(); ++
k) {
22 }
23 return std::make_optional(time);
24
25
26 }
double par(unsigned int index) const
double getReducedR(const double r) const
Maps the radius interval [minRadius;maxRadius] to [-1;1] where the minimal radius is on the lower end...
virtual unsigned nDoF() const override final
Returns the number of degrees of freedom of the tr relation.
time(flags, cells_name, *args, **kw)
◆ driftTime2Prime()
| std::optional< double > MuonCalib::TrSimplePolynomial::driftTime2Prime |
( |
const double | r | ) |
const |
|
finaloverridevirtual |
Implements MuonCalib::ITrRelation.
Definition at line 37 of file TrSimplePolynomial.cxx.
37 {
39 double d2tdr2{0.};
41 for (
unsigned int k = 2;
k <
nDoF(); ++
k) {
42 d2tdr2 +=
par(k+2) *
k * (
k-1)* std::pow(
r,k-2) * dt_dr;
43 }
44 return std::make_optional(d2tdr2);
45 }
double getReducedRPrime() const
Returns the derivative of the reduced radisu w.r.t r.
◆ driftTimePrime()
| std::optional< double > MuonCalib::TrSimplePolynomial::driftTimePrime |
( |
const double | r | ) |
const |
|
finaloverridevirtual |
◆ getReducedR()
| double MuonCalib::ITrRelation::getReducedR |
( |
const double | r | ) |
const |
|
inlineinherited |
Maps the radius interval [minRadius;maxRadius] to [-1;1] where the minimal radius is on the lower end.
Definition at line 42 of file ITrRelation.h.
42 {
44 }
virtual double maxRadius() const =0
Returns the maximum drift-radius.
virtual double minRadius() const =0
Returns the minimum drift-radius.
double mapToUnitInterval(const double x, const double lowerEdge, const double upperEdge)
Maps the number x which is in [lowEdge;upperEdge] to the interval [-1;1].
◆ getReducedRPrime()
| double MuonCalib::ITrRelation::getReducedRPrime |
( |
| ) |
const |
|
inlineinherited |
Returns the derivative of the reduced radisu w.r.t r.
Definition at line 46 of file ITrRelation.h.
46 {
48 }
double unitIntervalPrime(const double lowerEdge, const double upperEdge)
◆ maxRadius()
| double MuonCalib::TrSimplePolynomial::maxRadius |
( |
| ) |
const |
|
finaloverridevirtual |
◆ minRadius()
| double MuonCalib::TrSimplePolynomial::minRadius |
( |
| ) |
const |
|
finaloverridevirtual |
◆ name()
| std::string MuonCalib::TrSimplePolynomial::name |
( |
| ) |
const |
|
finaloverridevirtual |
◆ nDoF()
| unsigned MuonCalib::TrSimplePolynomial::nDoF |
( |
| ) |
const |
|
finaloverridevirtual |
◆ nPar()
| unsigned int MuonCalib::CalibFunc::nPar |
( |
| ) |
const |
|
inlineinherited |
◆ par()
| double MuonCalib::CalibFunc::par |
( |
unsigned int | index | ) |
const |
|
inlineinherited |
◆ parameters()
| const ParVec & MuonCalib::CalibFunc::parameters |
( |
| ) |
const |
|
inlineinherited |
◆ typeName()
| virtual std::string MuonCalib::ITrRelation::typeName |
( |
| ) |
const |
|
inlinefinaloverridevirtualinherited |
◆ m_parameters
| ParVec MuonCalib::CalibFunc::m_parameters {} |
|
privateinherited |
The documentation for this class was generated from the following files: