#include <RtSpline.h>
|
using | ParVec = std::vector< double > |
|
This class contains the implementation of an r(t) relationship parameterized as support points to a cubic spline
- Author
- Felix.nosp@m..Rau.nosp@m.scher.nosp@m.@cer.nosp@m.n.ch
- Date
- 07.08.2007
Definition at line 45 of file RtSpline.h.
◆ ParVec
◆ RtSpline()
initialization constructor,
2 * (size of ParVec) = number of points
ParVec[ 2n] = x coordinate of n_th support point ParVec[1 + 2n] = y coordinate of n_th support point
Definition at line 20 of file RtSpline.cxx.
24 THROW_EXCEPTION(
"Not enough parameters!" << std::endl<<
"Minimum number of parameters is 6!");
27 if ((
nPar() % 2) != 0) {
31 std::vector<double>
x(
nPar() /2);
32 std::vector<double>
y(
nPar() /2);
33 for (
unsigned int i = 0;
i <
nPar() / 2;
i++) {
37 m_sp3 = std::make_unique<TSpline3>(
"Rt Relation",
x.data(),
y.data(),
nPar() / 2,
"b2e2", 0, 0);
◆ ~RtSpline()
MuonCalib::RtSpline::~RtSpline |
( |
| ) |
|
|
virtualdefault |
◆ CalibFunc()
MuonCalib::CalibFunc::CalibFunc |
|
inlineexplicitinherited |
◆ driftAcceleration()
double MuonCalib::RtSpline::driftAcceleration |
( |
double |
t | ) |
const |
|
finaloverridevirtual |
◆ driftVelocity()
double MuonCalib::RtSpline::driftVelocity |
( |
double |
t | ) |
const |
|
finaloverridevirtual |
◆ GetTmaxDiff()
double MuonCalib::IRtRelation::GetTmaxDiff |
( |
| ) |
const |
|
inlineinherited |
return the difference in total dirft time between the two multilayers (ML1 - ML2)
Definition at line 34 of file IRtRelation.h.
◆ hasTmaxDiff()
bool MuonCalib::IRtRelation::hasTmaxDiff |
( |
| ) |
const |
|
inlineinherited |
◆ name()
std::string MuonCalib::RtSpline::name |
( |
| ) |
const |
|
inlinefinaloverridevirtual |
◆ 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 MuonCalib::RtSpline::radius |
( |
double |
t | ) |
const |
|
finaloverridevirtual |
get the radius corresponding to the drift time t; 0 or 14.6 is returned if t is outside the range
Implements MuonCalib::IRtRelation.
Definition at line 42 of file RtSpline.cxx.
45 if (t < m_sp3->GetXmin())
return m_sp3->Eval(
m_sp3->GetXmin());
47 return r >= 0 ?
r : 0;
◆ 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 39 of file IRtRelation.h.
◆ tBinWidth()
double MuonCalib::RtSpline::tBinWidth |
( |
| ) |
const |
|
finaloverridevirtual |
◆ tLower()
double MuonCalib::RtSpline::tLower |
( |
| ) |
const |
|
finaloverridevirtual |
◆ tUpper()
double MuonCalib::RtSpline::tUpper |
( |
| ) |
const |
|
finaloverridevirtual |
◆ typeName()
virtual std::string MuonCalib::IRtRelation::typeName |
( |
| ) |
const |
|
inlinefinaloverridevirtualinherited |
◆ m_parameters
ParVec MuonCalib::CalibFunc::m_parameters {} |
|
privateinherited |
◆ m_sp3
std::unique_ptr<TSpline3> MuonCalib::RtSpline::m_sp3 {} |
|
private |
◆ m_tmax_diff
std::optional<double> MuonCalib::IRtRelation::m_tmax_diff {std::nullopt} |
|
privateinherited |
◆ s_tBinWidth
constexpr double MuonCalib::IRtRelation::s_tBinWidth = 1.e-3 |
|
staticconstexprprotectedinherited |
The documentation for this class was generated from the following files: