ATLAS Offline Software
TrRelationLookUp.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MDTCALIBDATA_TRRELATIONLOOKUP_H
6 #define MDTCALIBDATA_TRRELATIONLOOKUP_H
7 
9 
10 #include <vector>
11 
12 namespace MuonCalib {
13  class TrRelationLookUp: public ITrRelation {
14  public:
15  TrRelationLookUp(const IRtRelationPtr& rtRelation, const ParVec& vec = {});
16  virtual std::string name() const override final;
17  virtual std::optional<double> driftTime(const double r) const override final;
18  virtual std::optional<double> driftTimePrime(const double r) const override final;
19  virtual std::optional<double> driftTime2Prime(const double r) const override final;
20  virtual double minRadius() const override final;
21  virtual double maxRadius() const override final;
22  private:
23  std::vector<double> m_times{};
24  std::vector<double> m_radii{};
25  double m_minRadius{};
26  double m_maxRadius{};
27  double getTFromR(const double radius, const IRtRelationPtr& rtRelation) const;
28  };
29 }
30 
31 #endif
beamspotman.r
def r
Definition: beamspotman.py:676
GeoModel::TransientConstSharedPtr< IRtRelation >
MuonCalib::TrRelationLookUp::driftTimePrime
virtual std::optional< double > driftTimePrime(const double r) const override final
Definition: TrRelationLookUp.cxx:44
MuonCalib::TrRelationLookUp::getTFromR
double getTFromR(const double radius, const IRtRelationPtr &rtRelation) const
Definition: TrRelationLookUp.cxx:65
MuonCalib::ITrRelation::IRtRelationPtr
GeoModel::TransientConstSharedPtr< IRtRelation > IRtRelationPtr
Definition: ITrRelation.h:15
MuonCalib::TrRelationLookUp
Definition: TrRelationLookUp.h:13
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
MuonCalib::TrRelationLookUp::TrRelationLookUp
TrRelationLookUp(const IRtRelationPtr &rtRelation, const ParVec &vec={})
Definition: TrRelationLookUp.cxx:12
MuonCalib::TrRelationLookUp::driftTime2Prime
virtual std::optional< double > driftTime2Prime(const double r) const override final
Definition: TrRelationLookUp.cxx:57
MuonCalib::TrRelationLookUp::m_radii
std::vector< double > m_radii
Definition: TrRelationLookUp.h:24
MuonCalib::TrRelationLookUp::minRadius
virtual double minRadius() const override final
Returns the minimum drift-radius.
Definition: TrRelationLookUp.cxx:62
MuonCalib::TrRelationLookUp::m_times
std::vector< double > m_times
Definition: TrRelationLookUp.h:23
MuonCalib::TrRelationLookUp::name
virtual std::string name() const override final
Definition: TrRelationLookUp.cxx:27
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::CalibFunc::ParVec
std::vector< double > ParVec
Definition: CalibFunc.h:35
MuonCalib::TrRelationLookUp::m_maxRadius
double m_maxRadius
Definition: TrRelationLookUp.h:26
MuonCalib::TrRelationLookUp::maxRadius
virtual double maxRadius() const override final
Returns the maximum drift-radius.
Definition: TrRelationLookUp.cxx:63
MuonCalib::TrRelationLookUp::m_minRadius
double m_minRadius
Definition: TrRelationLookUp.h:25
ParticleGun_SamplingFraction.radius
radius
Definition: ParticleGun_SamplingFraction.py:96
ITrRelation.h
MuonCalib::TrRelationLookUp::driftTime
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 ...
Definition: TrRelationLookUp.cxx:29
MuonCalib::ITrRelation
Definition: ITrRelation.h:13