#include <TrRelationLookUp.h>
|
using | ParVec = std::vector< double > |
|
Definition at line 14 of file TrRelationLookUp.h.
◆ ParVec
◆ TrRelationLookUp()
Definition at line 14 of file TrRelationLookUp.cxx.
16 constexpr std::size_t numPoints(100);
17 double stepSize{rtRelation.radius(rtRelation.tUpper()) / (numPoints - 1)};
21 for(std::size_t
i = 0;
i < numPoints; ++
i){
◆ driftTime()
std::optional< double > MuonCalib::TrRelationLookUp::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 31 of file TrRelationLookUp.cxx.
43 return time1 + (time2 - time1) * (
r - radius1) / (radius2 - radius1);
◆ driftTime2Prime()
std::optional< double > MuonCalib::TrRelationLookUp::driftTime2Prime |
( |
const double |
r | ) |
const |
|
finaloverridevirtual |
◆ driftTimePrime()
std::optional< double > MuonCalib::TrRelationLookUp::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.
◆ 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.
◆ getTFromR()
double MuonCalib::TrRelationLookUp::getTFromR |
( |
const double |
radius, |
|
|
const IRtRelation & |
rtRelation |
|
) |
| const |
|
private |
Definition at line 67 of file TrRelationLookUp.cxx.
68 double precision{0.001};
69 double tMax{rtRelation.tUpper()};
70 double tMin{rtRelation.tLower()};
73 while (tMax - tMin > 0.1 and std::abs(rtRelation.radius(0.5 * (tMin + tMax)) -
radius) > precision) {
74 double midPoint = 0.5 * (tMin + tMax);
75 if (rtRelation.radius(midPoint) >
radius) {
81 return 0.5 * (tMin + tMax);
◆ maxRadius()
double MuonCalib::TrRelationLookUp::maxRadius |
( |
| ) |
const |
|
finaloverridevirtual |
◆ minRadius()
double MuonCalib::TrRelationLookUp::minRadius |
( |
| ) |
const |
|
finaloverridevirtual |
◆ name()
std::string MuonCalib::TrRelationLookUp::name |
( |
| ) |
const |
|
finaloverridevirtual |
◆ nDoF()
unsigned MuonCalib::TrRelationLookUp::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_maxRadius
double MuonCalib::TrRelationLookUp::m_maxRadius {} |
|
private |
◆ m_minRadius
double MuonCalib::TrRelationLookUp::m_minRadius {} |
|
private |
◆ m_parameters
ParVec MuonCalib::CalibFunc::m_parameters {} |
|
privateinherited |
◆ m_radii
std::vector<double> MuonCalib::TrRelationLookUp::m_radii {} |
|
private |
◆ m_times
std::vector<double> MuonCalib::TrRelationLookUp::m_times {} |
|
private |
The documentation for this class was generated from the following files:
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].