BOSS
7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
NeutParams.cxx
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
//
3
// Description:
4
// Code for the NeutParams neutral track parameterization class
5
//
6
// Environment:
7
// Software developed for the BaBar Detector at the SLAC B-Factory.
8
//
9
// Author(s): Justin Albert, Valery Miftahov (based on HelixParams.cc by
10
// Dave Brown)
11
//
12
//------------------------------------------------------------------------
13
#include "TrkBase/NeutParams.h"
14
#include "TrkBase/TrkExchangePar.h"
15
#include <iostream>
16
using namespace
std
;
17
// construct from vector and covariance matrix
18
//------------------------------------------------------------------------
19
NeutParams::NeutParams
(
const
HepVector& pvec,
const
HepSymMatrix& pcov) :
20
TrkParams
(pvec,pcov){
21
//------------------------------------------------------------------------
22
23
// Make sure the dimensions of the input matrix and vector are correct
24
25
if
( pvec.num_row() !=
_nneutprm
||
26
pcov.num_row() !=
_nneutprm
){
27
cout<<
"ErrMsg(error)"
<<
28
"NeutParams: incorrect constructor vector/matrix dimension"
<< endl;
29
parameter
() = HepVector(
_nneutprm
,0);
30
covariance
() = HepSymMatrix(
_nneutprm
,0);
31
}
32
}
33
34
// Construct from the fit parameters directly
35
//------------------------------------------------------------------------
36
NeutParams::NeutParams
(
double
n_d0,
double
n_phi0,
double
n_p,
double
n_z0,
37
double
n_tanDip,
double
n_s0) :
38
//------------------------------------------------------------------------
39
TrkParams
(_nneutprm) {
40
d0
() = n_d0;
41
phi0
() = n_phi0;
42
p
() = n_p;
43
z0
() = n_z0;
44
s0
() = n_s0;
45
tanDip
() = n_tanDip;
46
}
47
48
49
// Copy constructor
50
//------------------------------------------------------------------------
51
NeutParams::NeutParams
(
const
NeutParams
& old) :
52
//------------------------------------------------------------------------
53
TrkParams
(old){
54
}
55
//------------------------------------------------------------------------
56
double
57
NeutParams::sinPhi0
()
const
{
58
//------------------------------------------------------------------------
59
return
sin
(
parameter
()[
_phi0
]);
60
}
61
62
//------------------------------------------------------------------------
63
double
64
NeutParams::cosPhi0
()
const
{
65
//------------------------------------------------------------------------
66
return
cos
(
parameter
()[
_phi0
]);
67
}
68
69
//------------------------------------------------------------------------
70
double
71
NeutParams::arcRatio
()
const
{
72
//------------------------------------------------------------------------
73
return
sqrt(1. +
parameter
()[
_tanDip
] *
parameter
()[
_tanDip
]);
74
}
75
76
//------------------------------------------------------------------------
77
NeutParams::~NeutParams
()
78
{}
79
//------------------------------------------------------------------------
80
sin
double sin(const BesAngle a)
Definition:
InstallArea/include/MdcGeom/MdcGeom/BesAngle.h:210
cos
double cos(const BesAngle a)
Definition:
InstallArea/include/MdcGeom/MdcGeom/BesAngle.h:213
DifIndepPar::parameter
HepVector & parameter()
Definition:
InstallArea/include/MdcRecoUtil/MdcRecoUtil/DifIndepPar.h:51
NeutParams
Definition:
InstallArea/include/TrkBase/TrkBase/NeutParams.h:19
NeutParams::sinPhi0
double sinPhi0() const
Definition:
NeutParams.cxx:57
NeutParams::s0
double & s0()
Definition:
InstallArea/include/TrkBase/TrkBase/NeutParams.h:42
NeutParams::_nneutprm
@ _nneutprm
Definition:
InstallArea/include/TrkBase/TrkBase/NeutParams.h:33
NeutParams::_phi0
@ _phi0
Definition:
InstallArea/include/TrkBase/TrkBase/NeutParams.h:33
NeutParams::_tanDip
@ _tanDip
Definition:
InstallArea/include/TrkBase/TrkBase/NeutParams.h:33
NeutParams::NeutParams
NeutParams(const HepVector &, const HepSymMatrix &)
Definition:
NeutParams.cxx:19
NeutParams::~NeutParams
~NeutParams()
Definition:
NeutParams.cxx:77
NeutParams::arcRatio
double arcRatio() const
Definition:
NeutParams.cxx:71
NeutParams::cosPhi0
double cosPhi0() const
Definition:
NeutParams.cxx:64
NeutParams::phi0
double & phi0()
Definition:
InstallArea/include/TrkBase/TrkBase/NeutParams.h:38
NeutParams::z0
double & z0()
Definition:
InstallArea/include/TrkBase/TrkBase/NeutParams.h:40
NeutParams::tanDip
double & tanDip()
Definition:
InstallArea/include/TrkBase/TrkBase/NeutParams.h:41
NeutParams::p
double & p()
Definition:
InstallArea/include/TrkBase/TrkBase/NeutParams.h:39
NeutParams::d0
double & d0()
Definition:
InstallArea/include/TrkBase/TrkBase/NeutParams.h:37
TrkParams
Definition:
InstallArea/include/TrkBase/TrkBase/TrkParams.h:24
TrkParams::covariance
HepSymMatrix & covariance()
Definition:
InstallArea/include/TrkBase/TrkBase/TrkParams.h:54
std
Definition:
Event/RootEventData/RootEventData-00-03-80/RootEventData/RootEventData_rootcint.cxx:16
source
Reconstruction
MdcPatRec
TrkBase
TrkBase-00-01-12
src
NeutParams.cxx
Generated by
1.9.6