1#ifndef Kalman_Vertex_Fit_H
2#define Kalman_Vertex_Fit_H
5#include "VertexFit/HTrackParameter.h"
6#include "VertexFit/VertexParameter.h"
7#include "VertexFit/WTrackParameter.h"
60 HepVector
pull(
const int k);
68 HepVector
x()
const {
return m_x;}
69 HepSymMatrix
Ex()
const;
75 int ndof()
const {
return m_ndof;}
76 double chisq() {
return m_chisq;}
77 int trackID(
const int k)
const {
return m_hTrkOrigin[k].trackID();}
83 double chiF(
const int k)
const {
return m_chiF[k];}
84 double chiS(
const int k)
const;
97 void setChisqCut(
const double chicut) {m_chisqCutforTrack = chicut;}
104 void updateMatrices(
const int k);
105 void updateMatrices(
const int k,
const HepVector p,
const HepVector
x);
116 std::vector<int> m_flag;
117 std::vector<HepVector> m_p;
118 std::vector<HTrackParameter> m_hTrkOrigin;
119 std::vector<HTrackParameter> m_hTrkInfit;
121 std::vector<HepSymMatrix> m_G;
122 std::vector<HepMatrix> m_A;
123 std::vector<HepMatrix> m_B;
124 std::vector<HepVector> m_c;
125 std::vector<HepSymMatrix> m_W;
126 std::vector<HepSymMatrix> m_GB;
127 std::vector<double> m_chiF;
130 double calculationP(
const double kappa,
const double lamb);
131 double calculationSigmaP(
const double kappa,
const double lamb,
const double Vkappa,
132 const double Vlamb,
const double Vkappa_lamb);
135 double m_chisqCutforTrack;
136 int m_maxVertexIteration;
137 int m_maxTrackIteration;
138 double m_chisqCutforTrackIteration;
double pullmomentum(const int k)
void setChisqCut(const double chicut)
void addTrack(const HTrackParameter)
int trackID(const int k) const
double chiF(const int k) const
HTrackParameter hTrack(const int k) const
WTrackParameter wTrack(const int k, const double mass) const
VertexParameter vtx() const
std::vector< int > trackIDList() const
double chiS(const int k) const
void initVertex(const VertexParameter vtx)
HepVector pull(const int k)
void setTrackIterationCut(const double chicut)
void setTrackIteration(const int num)
void inverse(const int k)
static KalmanVertexFit * instance()
void setVertexIteration(const int num)