Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
16 constexpr std::size_t numPoints(100);
17 double stepSize{rtRelation.radius(rtRelation.tUpper()) / (numPoints - 1)};
18 m_times.resize(numPoints);
19 m_radii.resize(numPoints);
21 for(std::size_t
i = 0;
i < numPoints; ++
i){
22 m_radii[
i] =
i * stepSize;
23 m_times[
i] = getTFromR(m_radii[
i], rtRelation);
25 m_minRadius = m_radii.front();
26 m_maxRadius = m_radii.back();
43 return time1 + (time2 - time1) * (
r - radius1) / (radius2 - radius1);
53 if (radius1 == radius2)
return std::nullopt;
56 return (time2 - time1) / (radius2 - radius1);
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);
81 return 0.5 * (tMin + tMax);
virtual std::optional< double > driftTimePrime(const double r) const override final
TrRelationLookUp(const IRtRelation &rtRelation)
virtual std::optional< double > driftTime2Prime(const double r) const override final
std::vector< double > m_radii
virtual double minRadius() const override final
Returns the minimum drift-radius.
std::vector< double > m_times
virtual std::string name() const override final
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
std::vector< double > ParVec
virtual double tUpper() const =0
Returns the upper time covered by the r-t.
virtual unsigned nDoF() const override final
Returns the number of degrees of freedom of the tr relation.
virtual double maxRadius() const override final
Returns the maximum drift-radius.
double getTFromR(const double radius, const IRtRelation &rtRelation) const
virtual double radius(double t) const =0
returns drift radius for a given time
virtual double tLower() const =0
Returns the lower time covered by the r-t.
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
generic interface for a rt-relation
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 ...