BOSS 7.1.0
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
13#endif
14#include "CLHEP/Matrix/SymMatrix.h"
15#include "CLHEP/Matrix/Vector.h"
16using CLHEP::HepSymMatrix;
17using CLHEP::HepVector;
19
20 public:
21
22 VertexParameter(){ m_Evx = HepSymMatrix(3,0); m_vx=HepVector(3, 0);}
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;}
36
37 private:
38
39 HepVector m_vx; // vertex point (x, y, z)
40 HepSymMatrix m_Evx; // error matrix
41};
42
44 m_vx = vpar.m_vx;
45 m_Evx = vpar.m_Evx;
46}
47
49 m_vx = vpar.m_vx;
50 m_Evx = vpar.m_Evx;
51 return (*this);
52}
53
54inline 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
HepGeom::Point3D< double > HepPoint3D
HepPoint3D vx() const
void setVx(const HepVector &vx)
HepVector x() const
HepSymMatrix Evx() const
VertexParameter & operator=(const VertexParameter &)
HepSymMatrix Ex() const
void setEvx(const HepSymMatrix &eVx)
HepVector Vx() const
void setVx(const HepPoint3D &vx)