#include <RtSimplePolynomial.h>
|
| using | ParVec = std::vector<double> |
|
| | RtSimplePolynomial (const ParVec &vec) |
| virtual std::string | name () const override final |
| | get the class name
|
| virtual double | radius (double t) const override final |
| | get the drift velocity
|
| virtual double | driftVelocity (double t) const override final |
| | get the drift acceleration
|
| virtual double | driftAcceleration (double t) const override final |
| | Returns the acceleration of the r-t relation.
|
| virtual double | tLower () const override final |
| | < get the lower drift-time bound
|
| virtual double | tUpper () const override final |
| | Returns the upper time covered by the r-t.
|
| virtual double | tBinWidth () const override final |
| | Returns the step-size for the sampling.
|
| virtual unsigned | nDoF () const override final |
| | get the coefficients of the r(t) polynomial
|
| std::vector< double > | rtParameters () const |
| virtual std::string | typeName () const override final |
| double | GetTmaxDiff () const |
| | return the difference in total dirft time between the two multilayers (ML1 - ML2)
|
| bool | hasTmaxDiff () const |
| void | SetTmaxDiff (const double d) |
| | set the difference in total drift time betwene the two multilayers (ML1 - ML2)
|
| double | getReducedTime (const double t) const |
| | map the in the interval [tLower;tUpper] onto the interval [-1.;1.
|
| double | dReducedTimeDt () const |
| | CalibFunc (const ParVec &vec) |
| unsigned int | nPar () const |
| const ParVec & | parameters () const |
| double | par (unsigned int index) const |
Definition at line 15 of file RtSimplePolynomial.h.
◆ ParVec
◆ RtSimplePolynomial()
| RtSimplePolynomial::RtSimplePolynomial |
( |
const ParVec & | vec | ) |
|
|
explicit |
Definition at line 9 of file RtSimplePolynomial.cxx.
9 :
11
13 THROW_EXCEPTION(
"RtSimplePolynomial::_init() - Not enough parameters!");
14 }
17 }
18}
std::vector< size_t > vec
unsigned int nPar() const
virtual double tUpper() const override final
Returns the upper time covered by the r-t.
virtual double tLower() const override final
< get the lower drift-time bound
#define THROW_EXCEPTION(MESSAGE)
◆ CalibFunc()
| MuonCalib::CalibFunc::CalibFunc |
( |
const ParVec & | vec | ) |
|
|
inlineexplicitinherited |
◆ dReducedTimeDt()
| double MuonCalib::IRtRelation::dReducedTimeDt |
( |
| ) |
const |
|
inlineinherited |
Definition at line 53 of file IRtRelation.h.
53 {
55 }
virtual double tLower() const =0
Returns the lower time covered by the r-t.
virtual double tUpper() const =0
Returns the upper time covered by the r-t.
double unitIntervalPrime(const double lowerEdge, const double upperEdge)
◆ driftAcceleration()
| double RtSimplePolynomial::driftAcceleration |
( |
double | t | ) |
const |
|
finaloverridevirtual |
Returns the acceleration of the r-t relation.
Implements MuonCalib::IRtRelation.
Definition at line 56 of file RtSimplePolynomial.cxx.
56 {
59
61 for (
unsigned int k = 2;
k <
nDoF(); ++
k) {
62 acc +=
par(k+2) *
k * (
k-1) * std::pow(
x,k-2)*std::pow(dx_dt,2);
63 }
65}
double par(unsigned int index) const
double dReducedTimeDt() const
double getReducedTime(const double t) const
map the in the interval [tLower;tUpper] onto the interval [-1.;1.
virtual unsigned nDoF() const override final
get the coefficients of the r(t) polynomial
◆ driftVelocity()
| double RtSimplePolynomial::driftVelocity |
( |
double | t | ) |
const |
|
finaloverridevirtual |
◆ getReducedTime()
| double MuonCalib::IRtRelation::getReducedTime |
( |
const double | t | ) |
const |
|
inlineinherited |
map the in the interval [tLower;tUpper] onto the interval [-1.;1.
] where tLower is mapped to -1. & tUpper to 1.;
Definition at line 49 of file IRtRelation.h.
49 {
51 }
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].
◆ GetTmaxDiff()
| double MuonCalib::IRtRelation::GetTmaxDiff |
( |
| ) |
const |
|
inlineinherited |
return the difference in total dirft time between the two multilayers (ML1 - ML2)
Definition at line 40 of file IRtRelation.h.
std::optional< double > m_tmax_diff
◆ hasTmaxDiff()
| bool MuonCalib::IRtRelation::hasTmaxDiff |
( |
| ) |
const |
|
inlineinherited |
◆ name()
| std::string RtSimplePolynomial::name |
( |
| ) |
const |
|
finaloverridevirtual |
get the class name
get the radius corresponding to the drift time t; if t is not within [t_low, t_up] an unphysical radius of 99999 is returned
Implements MuonCalib::CalibFunc.
Definition at line 20 of file RtSimplePolynomial.cxx.
20{ return "RtSimplePolynomial"; }
◆ nDoF()
| unsigned RtSimplePolynomial::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 |
◆ radius()
| double RtSimplePolynomial::radius |
( |
double | t | ) |
const |
|
finaloverridevirtual |
◆ rtParameters()
| std::vector< double > RtSimplePolynomial::rtParameters |
( |
| ) |
const |
◆ SetTmaxDiff()
| void MuonCalib::IRtRelation::SetTmaxDiff |
( |
const double | d | ) |
|
|
inlineinherited |
set the difference in total drift time betwene the two multilayers (ML1 - ML2)
Definition at line 45 of file IRtRelation.h.
◆ tBinWidth()
| double RtSimplePolynomial::tBinWidth |
( |
| ) |
const |
|
finaloverridevirtual |
◆ tLower()
| double RtSimplePolynomial::tLower |
( |
| ) |
const |
|
finaloverridevirtual |
◆ tUpper()
| double RtSimplePolynomial::tUpper |
( |
| ) |
const |
|
finaloverridevirtual |
◆ typeName()
| virtual std::string MuonCalib::IRtRelation::typeName |
( |
| ) |
const |
|
inlinefinaloverridevirtualinherited |
◆ m_parameters
| ParVec MuonCalib::CalibFunc::m_parameters {} |
|
privateinherited |
◆ m_tmax_diff
| std::optional<double> MuonCalib::IRtRelation::m_tmax_diff {std::nullopt} |
|
privateinherited |
◆ s_tBinWidth
| double MuonCalib::IRtRelation::s_tBinWidth = 1.e-3 |
|
staticconstexprprotectedinherited |
The documentation for this class was generated from the following files: