#include <TrRelationLookUp.h>
Definition at line 13 of file TrRelationLookUp.h.
◆ IRtRelationPtr
◆ ParVec
◆ TrRelationLookUp()
Definition at line 12 of file TrRelationLookUp.cxx.
14 std::size_t numPoints(100);
15 double stepSize{rtRelation->radius(rtRelation->tUpper()) / (numPoints - 1)};
16 m_times = std::vector<double>(numPoints);
17 m_radii = std::vector<double>(numPoints);
19 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 29 of file TrRelationLookUp.cxx.
41 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 |
◆ getTFromR()
Definition at line 65 of file TrRelationLookUp.cxx.
66 double precision{0.001};
67 double tMax{rtRelation->tUpper()};
68 double tMin{rtRelation->tLower()};
71 while (tMax - tMin > 0.1 and std::abs(rtRelation->radius(0.5 * (tMin + tMax)) -
radius) > precision) {
72 double midPoint = 0.5 * (tMin + tMax);
73 if (rtRelation->radius(midPoint) >
radius) {
79 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 |
◆ 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_rt
◆ m_times
std::vector<double> MuonCalib::TrRelationLookUp::m_times {} |
|
private |
The documentation for this class was generated from the following files: