BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Analysis/VertexFit/include/VertexFit/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
12typedef HepGeom::Point3D<double> HepPoint3D;
13#endif
14#include "CLHEP/Matrix/SymMatrix.h"
15#include "CLHEP/Matrix/Vector.h"
16using CLHEP::HepSymMatrix;
17using CLHEP::HepVector;
19
20public:
22 m_Evx = HepSymMatrix( 3, 0 );
23 m_vx = HepVector( 3, 0 );
24 }
26
27 inline VertexParameter( const VertexParameter& );
28
29 inline void setVx( const HepPoint3D& vx );
30 void setVx( const HepVector& vx ) { m_vx = vx; }
31 void setEvx( const HepSymMatrix& eVx ) { m_Evx = eVx; }
32 HepPoint3D vx() const { return HepPoint3D( m_vx[0], m_vx[1], m_vx[2] ); }
33 HepVector Vx() const { return m_vx; }
34 HepVector x() const { return m_vx; }
35 HepSymMatrix Evx() const { return m_Evx; }
36 HepSymMatrix Ex() const { return m_Evx; }
38
39private:
40 HepVector m_vx; // vertex point (x, y, z)
41 HepSymMatrix m_Evx; // error matrix
42};
43
45 m_vx = vpar.m_vx;
46 m_Evx = vpar.m_Evx;
47}
48
50 m_vx = vpar.m_vx;
51 m_Evx = vpar.m_Evx;
52 return ( *this );
53}
54
55inline void VertexParameter::setVx( const HepPoint3D& vx ) {
56 m_vx[0] = vx.x();
57 m_vx[1] = vx.y();
58 m_vx[2] = vx.z();
59}
60#endif
HepGeom::Point3D< double > HepPoint3D
VertexParameter & operator=(const VertexParameter &)