BOSS
7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
VertexParameter.h
Go to the documentation of this file.
1
#ifndef Vertex_Parameter_H
2
#define Vertex_Parameter_H
3
4
//
5
// define the vertex parameter
6
//
7
// Author: K.L. He date 10/31/2005, created
8
//
9
//
10
#include "CLHEP/Geometry/Point3D.h"
11
#ifndef ENABLE_BACKWARDS_COMPATIBILITY
12
typedef
HepGeom::Point3D<double>
HepPoint3D
;
13
#endif
14
#include "CLHEP/Matrix/SymMatrix.h"
15
#include "CLHEP/Matrix/Vector.h"
16
using
CLHEP::HepSymMatrix;
17
using
CLHEP::HepVector;
18
class
VertexParameter
{
19
20
public
:
21
22
VertexParameter
(){ m_Evx = HepSymMatrix(3,0); m_vx=HepVector(3, 0);}
23
~VertexParameter
(){;}
24
25
inline
VertexParameter
(
const
VertexParameter
&);
26
27
inline
void
setVx
(
const
HepPoint3D
&
vx
);
28
void
setVx
(
const
HepVector &
vx
) { m_vx =
vx
;}
29
void
setEvx
(
const
HepSymMatrix &eVx) {m_Evx = eVx;}
30
HepPoint3D
vx
()
const
{
return
HepPoint3D
(m_vx[0], m_vx[1], m_vx[2]);}
31
HepVector
Vx
()
const
{
return
m_vx;}
32
HepVector
x
()
const
{
return
m_vx;}
33
HepSymMatrix
Evx
()
const
{
return
m_Evx;}
34
HepSymMatrix
Ex
()
const
{
return
m_Evx;}
35
inline
VertexParameter
&
operator =
(
const
VertexParameter
&);
36
37
private
:
38
39
HepVector m_vx;
// vertex point (x, y, z)
40
HepSymMatrix m_Evx;
// error matrix
41
};
42
43
inline
VertexParameter::VertexParameter
(
const
VertexParameter
& vpar) {
44
m_vx = vpar.m_vx;
45
m_Evx = vpar.m_Evx;
46
}
47
48
inline
VertexParameter
&
VertexParameter::operator =
(
const
VertexParameter
& vpar) {
49
m_vx = vpar.m_vx;
50
m_Evx = vpar.m_Evx;
51
return
(*
this
);
52
}
53
54
inline
void
VertexParameter::setVx
(
const
HepPoint3D
&vx) {
55
m_vx[0] =
vx
.x();
56
m_vx[1] =
vx
.y();
57
m_vx[2] =
vx
.z();
58
}
59
#endif
60
HepPoint3D
HepGeom::Point3D< double > HepPoint3D
Definition
VertexParameter.h:12
HepGeom::Point3D
Definition
IMagneticFieldSvc.h:15
VertexParameter
Definition
VertexParameter.h:18
VertexParameter::vx
HepPoint3D vx() const
Definition
VertexParameter.h:30
VertexParameter::setVx
void setVx(const HepVector &vx)
Definition
VertexParameter.h:28
VertexParameter::~VertexParameter
~VertexParameter()
Definition
VertexParameter.h:23
VertexParameter::x
HepVector x() const
Definition
VertexParameter.h:32
VertexParameter::Evx
HepSymMatrix Evx() const
Definition
VertexParameter.h:33
VertexParameter::operator=
VertexParameter & operator=(const VertexParameter &)
Definition
VertexParameter.h:48
VertexParameter::Ex
HepSymMatrix Ex() const
Definition
VertexParameter.h:34
VertexParameter::setEvx
void setEvx(const HepSymMatrix &eVx)
Definition
VertexParameter.h:29
VertexParameter::Vx
HepVector Vx() const
Definition
VertexParameter.h:31
VertexParameter::VertexParameter
VertexParameter()
Definition
VertexParameter.h:22
VertexParameter::setVx
void setVx(const HepPoint3D &vx)
Definition
VertexParameter.h:54
7.1.1
Analysis
VertexFit
VertexFit-00-03-05
VertexFit
VertexParameter.h
Generated by
1.12.0