ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCalib
MdtCalib
MdtCalibData
MdtCalibData
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
12
#include "
MdtCalibData/IRtRelation.h
"
13
14
namespace
MuonCalib
{
15
22
23
class
RtRelationLookUp
:
public
IRtRelation
{
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
vec
std::vector< size_t > vec
Definition
CombinationsGeneratorTest.cxx:9
getBin
int getBin(double x, double min, double step, int clamp_max)
Definition
FPGATrackSimSectorSlice.cxx:209
IRtRelation.h
MuonCalib::CalibFunc::par
double par(unsigned int index) const
Definition
CalibFunc.h:41
MuonCalib::CalibFunc::ParVec
std::vector< double > ParVec
Definition
CalibFunc.h:35
MuonCalib::IRtRelation
generic interface for a rt-relation
Definition
IRtRelation.h:19
MuonCalib::RtRelationLookUp::binInRtRange
int binInRtRange(double t) const
Definition
RtRelationLookUp.cxx:76
MuonCalib::RtRelationLookUp::RtRelationLookUp
RtRelationLookUp(const ParVec &vec)
Definition
RtRelationLookUp.cxx:10
MuonCalib::RtRelationLookUp::m_bin_size
double m_bin_size
Definition
RtRelationLookUp.h:52
MuonCalib::RtRelationLookUp::tBinWidth
virtual double tBinWidth() const override final
Returns the step-size for the sampling.
Definition
RtRelationLookUp.cxx:91
MuonCalib::RtRelationLookUp::radius
virtual double radius(double t) const override final
returns drift radius for a given time
Definition
RtRelationLookUp.cxx:38
MuonCalib::RtRelationLookUp::driftVelocity
virtual double driftVelocity(double t) const override final
returns drift velocity for a given time
Definition
RtRelationLookUp.cxx:57
MuonCalib::RtRelationLookUp::m_t_min
double m_t_min
Definition
RtRelationLookUp.h:51
MuonCalib::RtRelationLookUp::driftAcceleration
virtual double driftAcceleration(double t) const override final
returns the acceleration for a given time
Definition
RtRelationLookUp.cxx:72
MuonCalib::RtRelationLookUp::nDoF
virtual unsigned nDoF() const override final
Returns the number of degrees of freedom of the relation function.
Definition
RtRelationLookUp.cxx:26
MuonCalib::RtRelationLookUp::getRadius
double getRadius(int bin) const
Definition
RtRelationLookUp.h:47
MuonCalib::RtRelationLookUp::tLower
virtual double tLower() const override final
return rt range
Definition
RtRelationLookUp.cxx:89
MuonCalib::RtRelationLookUp::tUpper
virtual double tUpper() const override final
Returns the upper time covered by the r-t.
Definition
RtRelationLookUp.cxx:90
MuonCalib::RtRelationLookUp::name
virtual std::string name() const override final
Definition
RtRelationLookUp.h:27
bin
Definition
BinsDiffFromStripMedian.h:43
const
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition
CscCalcPed.cxx:21
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0