ATLAS Offline Software
Loading...
Searching...
No Matches
RtFromPoints.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_RtFromPointsH
5#define MuonCalib_RtFromPointsH
6
7// STL //
8#include <vector>
9#include <memory>
10// MuonCalib //
15
16namespace MuonCalib {
17
21
23 public:
28 static std::unique_ptr<IRtRelation> getRtChebyshev(const std::vector<SamplePoint>& dataPoints, const unsigned order);
33 static std::unique_ptr<ITrRelation> getTrChebyshev(const std::vector<SamplePoint>& dataPoints, const unsigned order);
38 static std::unique_ptr<IRtResolution> getResoChebyshev(const std::vector<SamplePoint>& dataPoints, const unsigned order);
45 static std::unique_ptr<IRtResolution> getResoChebyshev(const std::vector<SamplePoint>& dataPoints,
46 const IRtRelationPtr rtRelPtr,
47 const double relUnc,
48 const unsigned order);
49
54 static std::unique_ptr<IRtRelation> getRtLegendre(const std::vector<SamplePoint>& dataPoints, const unsigned order);
59 static std::unique_ptr<ITrRelation> getTrLegendre(const std::vector<SamplePoint>& dataPoints, const unsigned order);
64 static std::unique_ptr<IRtRelation> getRtSimplePoly(const std::vector<SamplePoint>& dataPoints, const unsigned order);
69 static std::unique_ptr<ITrRelation> getTrSimplePoly(const std::vector<SamplePoint>& dataPoints, const unsigned order);
70
77 static std::unique_ptr<IRtRelation> getRtRelationLookUp(const std::vector<SamplePoint>& sample_points);
78
79 private:
83 static CalibFunc::ParVec chebyFit(const std::vector<SamplePoint>& dataPoints,
84 const unsigned order);
85
89 static CalibFunc::ParVec legendreFit(const std::vector<SamplePoint>& dataPoints,
90 const unsigned order);
94 static CalibFunc::ParVec simplePolyFit(const std::vector<SamplePoint>& dataPoints,
95 const unsigned order);
96
97 };
98
99} // namespace MuonCalib
100
101#endif
std::vector< double > ParVec
Definition CalibFunc.h:35
This class allows the user to retrieve an RtChebyshev or RtRelationLookUp object corresponding to a s...
static std::unique_ptr< ITrRelation > getTrLegendre(const std::vector< SamplePoint > &dataPoints, const unsigned order)
Converts a list of t(r) data points into a t(r) relation expressed as a series of legendre polynomial...
static std::unique_ptr< IRtRelation > getRtChebyshev(const std::vector< SamplePoint > &dataPoints, const unsigned order)
Converts a list of r-t data points into a r(t) relation expressed as a series of chebychev polynomial...
static std::unique_ptr< ITrRelation > getTrChebyshev(const std::vector< SamplePoint > &dataPoints, const unsigned order)
Converts a list of r-t data points into a t(r) relation expressed as a series of chebychev polynomial...
static std::unique_ptr< IRtRelation > getRtSimplePoly(const std::vector< SamplePoint > &dataPoints, const unsigned order)
Converts a list of r(t) data points into a r(t) relation expressed as a series of elementary monomoni...
static std::unique_ptr< IRtResolution > getResoChebyshev(const std::vector< SamplePoint > &dataPoints, const unsigned order)
Converts a list of reso - t into a reso(t) relation expressed as a series of chebychev polynomials.
static std::unique_ptr< IRtRelation > getRtLegendre(const std::vector< SamplePoint > &dataPoints, const unsigned order)
Converts a list of r-t data points into a r(t) relation expressed as a series of legendre polynomials...
static CalibFunc::ParVec legendreFit(const std::vector< SamplePoint > &dataPoints, const unsigned order)
Executes the fit of Legendre polynomials to the data points.
static CalibFunc::ParVec chebyFit(const std::vector< SamplePoint > &dataPoints, const unsigned order)
Executes the fit of chebychev polynomials to the data points.
static std::unique_ptr< IRtRelation > getRtRelationLookUp(const std::vector< SamplePoint > &sample_points)
static std::unique_ptr< ITrRelation > getTrSimplePoly(const std::vector< SamplePoint > &dataPoints, const unsigned order)
Converts a list of t(r) data points into a t(r) relation expressed as a series of elementary monomoni...
static CalibFunc::ParVec simplePolyFit(const std::vector< SamplePoint > &dataPoints, const unsigned order)
Exectues the fit of simple monomials to the data points.
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
GeoModel::TransientConstSharedPtr< IRtRelation > IRtRelationPtr
Definition IRtRelation.h:17