ATLAS Offline Software
Loading...
Searching...
No Matches
RtRelationLookUp.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 MUONCALIB_RTRELATIONLOOKUP_H
6#define MUONCALIB_RTRELATIONLOOKUP_H
7
8#include <climits>
9#include <iostream>
10
11
13
14namespace MuonCalib {
15
22
24 public:
25 explicit RtRelationLookUp(const ParVec &vec);
26
27 virtual std::string name() const override final { return "RtRelationLookUp"; }
28
30 virtual double radius(double t) const override final;
31
33 virtual double driftVelocity(double t) const override final;
35 virtual double driftAcceleration(double t) const override final;
36
38 virtual double tLower() const override final;
39 virtual double tUpper() const override final;
40 virtual double tBinWidth() const override final;
41 virtual unsigned nDoF() const override final;
42
43 private:
44 int getBin(double t) const;
45
46 // take offset due to m_t_min and binsize into account
47 double getRadius(int bin) const { return par(bin + 2); }
48 // returns best matching bin within rtRange
49 int binInRtRange(double t) const;
50
51 double m_t_min{0.};
52 double m_bin_size{0.};
53 };
54
55
56
57} // namespace MuonCalib
58#endif
std::vector< size_t > vec
int getBin(double x, double min, double step, int clamp_max)
double par(unsigned int index) const
Definition CalibFunc.h:41
std::vector< double > ParVec
Definition CalibFunc.h:35
generic interface for a rt-relation
Definition IRtRelation.h:19
int binInRtRange(double t) const
RtRelationLookUp(const ParVec &vec)
virtual double tBinWidth() const override final
Returns the step-size for the sampling.
virtual double radius(double t) const override final
returns drift radius for a given time
virtual double driftVelocity(double t) const override final
returns drift velocity for a given time
virtual double driftAcceleration(double t) const override final
returns the acceleration for a given time
virtual unsigned nDoF() const override final
Returns the number of degrees of freedom of the relation function.
double getRadius(int bin) const
virtual double tLower() const override final
return rt range
virtual double tUpper() const override final
Returns the upper time covered by the r-t.
virtual std::string name() const override final
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
#define private