ATLAS Offline Software
Loading...
Searching...
No Matches
RtSpline.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_RtSpline_H
5#define MUONCALIB_RtSpline_H
6
8// HEADER FILES //
10
11// standard C++ //
12#include <cstdlib>
13#include <iostream>
14
15// STL //
16#include <vector>
17#include <memory>
18// MDT calibration //
20
21// root
22class TSpline3;
23
24namespace MuonCalib {
33
34 class RtSpline : public IRtRelation {
35 private:
36 // Spline Class//
37 std::unique_ptr<TSpline3> m_sp3{};
38
39 public:
40 // Constructors
49 explicit RtSpline(const ParVec &vec);
50
51 virtual ~RtSpline();
52
53 // Methods //
54 // methods required by the base classes //
55 inline std::string name() const override final{ return "RtSpline"; }
56
58 virtual double radius(double t) const override final;
63 virtual double driftVelocity(double t) const override final;
65 virtual double driftAcceleration(double t) const override final;
66
67
68 // get-methods specific to the RtSpline class //
69 virtual double tLower() const override final;
71 virtual double tUpper() const override final;
73 virtual double tBinWidth() const override final;
74
75 virtual unsigned nDoF() const override final;
76 };
77} // namespace MuonCalib
78
79#endif
std::vector< size_t > vec
std::vector< double > ParVec
Definition CalibFunc.h:35
generic interface for a rt-relation
Definition IRtRelation.h:19
std::string name() const override final
get the class name
Definition RtSpline.h:55
virtual unsigned nDoF() const override final
Returns the number of degrees of freedom of the relation function.
Definition RtSpline.cxx:42
std::unique_ptr< TSpline3 > m_sp3
Definition RtSpline.h:37
virtual double tLower() const override final
get the lower drift-time bound
Definition RtSpline.cxx:58
virtual double driftAcceleration(double t) const override final
Returns the acceleration of the r-t relation.
Definition RtSpline.cxx:54
virtual double tUpper() const override final
get the upper drift-time bound
Definition RtSpline.cxx:60
virtual double driftVelocity(double t) const override final
get the drift velocity
Definition RtSpline.cxx:53
RtSpline(const ParVec &vec)
initialization constructor,
Definition RtSpline.cxx:20
virtual double tBinWidth() const override final
Returns the step-size for the sampling.
Definition RtSpline.cxx:39
virtual double radius(double t) const override final
get the radius corresponding to the drift time t; 0 or 14.6 is returned if t is outside the range
Definition RtSpline.cxx:45
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.