ATLAS Offline Software
RtSpline.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6 // 23.03.2005, AUTHOR: OLIVER KORTNER
7 // Modified: 31.05.2006 by O. Kortner: major redesign:
8 // driftvelocity implemented,
9 // resolution has been removed,
10 // set-method have been removed
11 // 04.06.2006 by O. Kortner: bug in constructor fixed,
12 // doxygen entry updated.
13 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14 
15 #ifndef MUONCALIB_RtSpline_H
16 #define MUONCALIB_RtSpline_H
17 
19 // HEADER FILES //
21 
22 // standard C++ //
23 #include <cstdlib>
24 #include <iostream>
25 
26 // STL //
27 #include <vector>
28 
29 // MDT calibration //
31 
32 // root
33 class TSpline3;
34 
35 namespace MuonCalib {
45  class RtSpline : public IRtRelation {
46  private:
47  // Spline Class//
48  TSpline3 *p_sp3;
49 
50  // private methods //
52  void _init(void);
53 
54  public:
55  // Constructors
64  explicit RtSpline(const ParVec &vec) : IRtRelation(vec) { _init(); }
65 
66  ~RtSpline();
67 
68  // Methods //
69  // methods required by the base classes //
70  inline std::string name(void) const { return "RtSpline"; }
71 
73  double radius(double t) const;
78  double driftvelocity(double t) const;
80 
81  // get-methods specific to the RtSpline class //
82  double tLower(void) const;
84  double tUpper(void) const;
86  };
87 } // namespace MuonCalib
88 
89 #endif
MuonCalib::RtSpline::~RtSpline
~RtSpline()
Definition: RtSpline.cxx:19
MuonCalib::RtSpline::name
std::string name(void) const
get the class name
Definition: RtSpline.h:70
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
MuonCalib::RtSpline::radius
double radius(double t) const
get the radius corresponding to the drift time t; 0 or 14.6 is returned if t is outside the range
Definition: RtSpline.cxx:49
MuonCalib::CalibFunc::ParVec
std::vector< double > ParVec
Definition: CalibFunc.h:36
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::RtSpline::tLower
double tLower(void) const
get the lower drift-time bound
Definition: RtSpline.cxx:59
MuonCalib::RtSpline::driftvelocity
double driftvelocity(double t) const
get the drift velocity
Definition: RtSpline.cxx:57
MuonCalib::RtSpline::_init
void _init(void)
initialization method
Definition: RtSpline.cxx:24
MuonCalib::RtSpline
Definition: RtSpline.h:45
IRtRelation.h
MuonCalib::RtSpline::tUpper
double tUpper(void) const
get the upper drift-time bound
Definition: RtSpline.cxx:61
MuonCalib::RtSpline::RtSpline
RtSpline(const ParVec &vec)
initialization constructor,
Definition: RtSpline.h:64
MuonCalib::IRtRelation
generic interface for a rt-relation
Definition: IRtRelation.h:14
MuonCalib::RtSpline::p_sp3
TSpline3 * p_sp3
Definition: RtSpline.h:48