ATLAS Offline Software
RtLegendre.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONCALIB_RTLEGENDRE_H
5 #define MUONCALIB_RTLEGENDRE_H
6 
7 #include <cstdlib>
8 #include <iostream>
9 #include <vector>
10 #include <span>
11 
12 // MDT calibration //
14 
15 namespace MuonCalib {
29  class RtLegendre : public IRtRelation {
30 
31  public:
32  // Constructors
43  explicit RtLegendre(const ParVec& vec) ;
44  // Methods //
45  // methods required by the base classes //
46  virtual std::string name() const override final;
47 
48 
51  virtual double radius(double t) const override final;
53  virtual double driftVelocity(double t) const override final;
55  virtual double driftAcceleration(double t) const override final;
56  // get-methods specific to the RtLegendre class //
58  virtual double tLower() const override final;
60  virtual double tUpper() const override final;
61 
62  virtual double tBinWidth() const override final;
64  unsigned int numberOfRtParameters() const;
65 
67  std::vector<double> rtParameters() const;
68 
70  double getReducedTime(const double t) const;
71  };
72 } // namespace MuonCalib
73 
74 #endif
MuonCalib::RtLegendre
Definition: RtLegendre.h:29
MuonCalib::RtLegendre::radius
virtual double radius(double t) const override final
get the drift velocity
Definition: RtLegendre.cxx:23
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
MuonCalib::RtLegendre::rtParameters
std::vector< double > rtParameters() const
get the reduced time which is the argument of the Legendre polynomial
Definition: RtLegendre.cxx:76
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
MuonCalib::RtLegendre::driftAcceleration
virtual double driftAcceleration(double t) const override final
Returns the acceleration of the r-t relation.
Definition: RtLegendre.cxx:62
MuonCalib::RtLegendre::getReducedTime
double getReducedTime(const double t) const
Definition: RtLegendre.cxx:79
MuonCalib::RtLegendre::numberOfRtParameters
unsigned int numberOfRtParameters() const
get the coefficients of the r(t) polynomial
Definition: RtLegendre.cxx:74
MuonCalib::RtLegendre::tBinWidth
virtual double tBinWidth() const override final
get the number of parameters used to describe the r(t) relationship
Definition: RtLegendre.cxx:21
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::RtLegendre::driftVelocity
virtual double driftVelocity(double t) const override final
get the drift acceleration
Definition: RtLegendre.cxx:47
IRtRelation.h
MuonCalib::RtLegendre::tUpper
virtual double tUpper() const override final
Returns the upper time covered by the r-t.
Definition: RtLegendre.cxx:73
MuonCalib::RtLegendre::RtLegendre
RtLegendre(const ParVec &vec)
initialization constructor,
Definition: RtLegendre.cxx:9
MuonCalib::RtLegendre::tLower
virtual double tLower() const override final
< get the lower drift-time bound
Definition: RtLegendre.cxx:72
MuonCalib::RtLegendre::name
virtual std::string name() const override final
get the class name
Definition: RtLegendre.cxx:20
MuonCalib::IRtRelation
generic interface for a rt-relation
Definition: IRtRelation.h:15