#include <RtSpline.h>
|
typedef std::vector< double > | ParVec |
|
This class contains the implementation of an r(t) relationship parameterized as support points to a cubic spline
- Author
- Felix.nosp@m..Rau.nosp@m.scher.nosp@m.@cer.nosp@m.n.ch
- Date
- 07.08.2007
Definition at line 45 of file RtSpline.h.
◆ ParVec
◆ RtSpline()
initialization constructor,
2 * (size of ParVec) = number of points
ParVec[ 2n] = x coordinate of n_th support point ParVec[1 + 2n] = y coordinate of n_th support point
Definition at line 64 of file RtSpline.h.
◆ ~RtSpline()
MuonCalib::RtSpline::~RtSpline |
( |
| ) |
|
◆ _init()
void MuonCalib::RtSpline::_init |
( |
void |
| ) |
|
|
private |
initialization method
Definition at line 24 of file RtSpline.cxx.
28 log << MSG::ERROR <<
"Not enough parameters!" <<
endmsg;
29 log << MSG::ERROR <<
"Minimum number of parameters is 6!" <<
endmsg;
33 if ((
nPar() % 2) != 0) {
34 log << MSG::ERROR <<
"RtSpline::_init(): Odd number of parameters!" <<
endmsg;
38 Double_t *
x =
new Double_t[
nPar() / 2];
39 Double_t *
y =
new Double_t[
nPar() / 2];
40 for (
unsigned int i = 0;
i <
nPar() / 2;
i++) {
44 p_sp3 =
new TSpline3(
"Rt Relation",
x,
y,
nPar() / 2,
"b2e2", 0, 0);
◆ driftvelocity()
double MuonCalib::RtSpline::driftvelocity |
( |
double |
t | ) |
const |
|
virtual |
◆ GetTmaxDiff()
float MuonCalib::IRtRelation::GetTmaxDiff |
( |
| ) |
const |
|
inlineinherited |
return the difference in total dirft time between the two multilayers (ML1 - ML2)
Definition at line 27 of file IRtRelation.h.
◆ HasTmaxDiff()
bool MuonCalib::IRtRelation::HasTmaxDiff |
( |
| ) |
const |
|
inlineinherited |
◆ name()
std::string MuonCalib::RtSpline::name |
( |
void |
| ) |
const |
|
inlinevirtual |
◆ nPar()
unsigned int MuonCalib::CalibFunc::nPar |
( |
| ) |
const |
|
inlineinherited |
◆ par()
double MuonCalib::CalibFunc::par |
( |
unsigned int |
index | ) |
const |
|
inlineinherited |
◆ parameters()
const ParVec& MuonCalib::CalibFunc::parameters |
( |
| ) |
const |
|
inlineinherited |
◆ radius()
double MuonCalib::RtSpline::radius |
( |
double |
t | ) |
const |
|
virtual |
get the radius corresponding to the drift time t; 0 or 14.6 is returned if t is outside the range
Implements MuonCalib::IRtRelation.
Definition at line 49 of file RtSpline.cxx.
52 if (t < p_sp3->GetXmin())
return p_sp3->Eval(
p_sp3->GetXmin());
54 return r >= 0 ?
r : 0;
◆ SetTmaxDiff()
void MuonCalib::IRtRelation::SetTmaxDiff |
( |
const float & |
d | ) |
|
|
inlineinherited |
set the difference in total drift time betwene the two multilayers (ML1 - ML2)
Definition at line 32 of file IRtRelation.h.
◆ tLower()
double MuonCalib::RtSpline::tLower |
( |
void |
| ) |
const |
|
virtual |
◆ tUpper()
double MuonCalib::RtSpline::tUpper |
( |
void |
| ) |
const |
|
virtual |
◆ typeName()
virtual std::string MuonCalib::IRtRelation::typeName |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ m_parameters
ParVec MuonCalib::CalibFunc::m_parameters |
|
privateinherited |
◆ m_tmax_diff
float MuonCalib::IRtRelation::m_tmax_diff |
|
inherited |
◆ p_sp3
TSpline3* MuonCalib::RtSpline::p_sp3 |
|
private |
The documentation for this class was generated from the following files: