BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
VertexFitRefine.cc
Go to the documentation of this file.
1/* <===<===<===<===<===<===<===<===<===~===>===>===>===>===>===>===>===>===>
2 * File Name: VertexFitRefine.cc
3 * Author: Hao-Kai SUN
4 * Created: 2021-10-26 Tue 16:02:04 CST
5 * <<=====================================>>
6 * Last Updated: 2022-01-06 Thu 13:33:02 CST
7 * By: Hao-Kai SUN
8 * Update #: 33
9 * ============================== CODES ==============================>>> */
10#ifndef VERTEXFITREFINE_VERTEXFITREFINE_CC
11#define VERTEXFITREFINE_VERTEXFITREFINE_CC
12#pragma once
13
15
16// add methods
17inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar,
18 std::vector<int> lis)
19{
20 vtxfit->AddVertex(number, vpar, lis);
21}
22inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar, int n1,
23 int n2)
24{
25 vtxfit->AddVertex(number, vpar, n1, n2);
26}
27inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar, int n1,
28 int n2, int n3)
29{
30 vtxfit->AddVertex(number, vpar, n1, n2, n3);
31}
32inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar, int n1,
33 int n2, int n3, int n4)
34{
35 vtxfit->AddVertex(number, vpar, n1, n2, n3, n4);
36}
37inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar, int n1,
38 int n2, int n3, int n4, int n5)
39{
40 vtxfit->AddVertex(number, vpar, n1, n2, n3, n4, n5);
41}
42inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar, int n1,
43 int n2, int n3, int n4, int n5, int n6)
44{
45 vtxfit->AddVertex(number, vpar, n1, n2, n3, n4, n5, n6);
46}
47inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar, int n1,
48 int n2, int n3, int n4, int n5, int n6,
49 int n7)
50{
51 vtxfit->AddVertex(number, vpar, n1, n2, n3, n4, n5, n6, n7);
52}
53inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar, int n1,
54 int n2, int n3, int n4, int n5, int n6,
55 int n7, int n8)
56{
57 vtxfit->AddVertex(number, vpar, n1, n2, n3, n4, n5, n6, n7, n8);
58}
59inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar, int n1,
60 int n2, int n3, int n4, int n5, int n6,
61 int n7, int n8, int n9)
62{
63 vtxfit->AddVertex(number, vpar, n1, n2, n3, n4, n5, n6, n7, n8, n9);
64}
65inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar, int n1,
66 int n2, int n3, int n4, int n5, int n6,
67 int n7, int n8, int n9, int n10)
68{
69 vtxfit->AddVertex(number, vpar, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10);
70}
71inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar, int n1,
72 int n2, int n3, int n4, int n5, int n6,
73 int n7, int n8, int n9, int n10, int n11)
74{
75 vtxfit->AddVertex(number, vpar, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10,
76 n11);
77}
78inline void VertexFitRefine::AddVertex(int number, VertexParameter vpar, int n1,
79 int n2, int n3, int n4, int n5, int n6,
80 int n7, int n8, int n9, int n10, int n11,
81 int n12)
82{
83 vtxfit->AddVertex(number, vpar, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10,
84 n11, n12);
85}
86inline void VertexFitRefine::AddBeamFit(int number, VertexParameter vpar, int n)
87{
88 vtxfit->AddBeamFit(number, vpar, n);
89}
90
91// set iteration number and chisq cut
92inline void VertexFitRefine::setIterNumber(const int niter)
93{
94 vtxfit->setIterNumber(niter);
95}
96inline void VertexFitRefine::setChisqCut(const double chicut,
97 const double chiter)
98{
99 vtxfit->setChisqCut(chicut, chiter);
100}
101inline void VertexFitRefine::setMagCorrFactor(const double factor)
102{
103 vtxfit->setMagCorrFactor(factor);
104}
105
106// inline void VertexFitRefine::AddVertex(const int index, VertexParameter vpar,
107// int p0, int p1)
108// {
109// m_vtxidx = index;
110// m_vpar = vpar;
111// }
112inline bool VertexFitRefine::Fit(int n)
113{
114 return Fit();
115}
116
117inline double VertexFitRefine::chisq() const
118{
119 return vtxfit->chisq(0);
120}
121
122inline double VertexFitRefine::chisq(int n) const
123{
124 return vtxfit->chisq(0);
125}
126
127inline HepLorentzVector VertexFitRefine::pfit(int n) const
128{
129 return vtxfit->pfit(n);
130}
131
133{
134 return vtxfit->xfit(n);
135}
136
137inline HepVector VertexFitRefine::w(int n) const
138{
139 return vtxfit->w(n);
140}
141
142inline HepSymMatrix VertexFitRefine::Ew(int n) const
143{
144 return vtxfit->Ew(n);
145}
146
148{
149 return vtxfit->wtrk(n);
150}
151
153{
154 return vtxfit->vx(n);
155}
156
157inline HepVector VertexFitRefine::Vx(int n) const
158{
159 return vtxfit->Vx(n);
160}
161
162inline HepSymMatrix VertexFitRefine::Evx(int n) const
163{
164 return vtxfit->Evx(n);
165}
166
167inline double VertexFitRefine::errorVx(int n, int i) const
168{
169 return vtxfit->errorVx(n, i);
170}
171
173{
174 return vtxfit->vpar(n);
175}
176
178{
179 return vtxfit->wVirtualTrack(n);
180}
181
182inline int VertexFitRefine::getPath() const
183{
184 return thePath;
185}
186
187#endif /* VERTEXFITREFINE_VERTEXFITREFINE_CC */
188/* ===================================================================<<< */
189/* ==================== VertexFitRefine.cc ends here ==================== */
const Int_t n
int n2
Definition: SD0Tag.cxx:55
int n1
Definition: SD0Tag.cxx:54
HepVector w(int n) const
WTrackParameter wVirtualTrack(int n) const
HepSymMatrix Ew(int n) const
HepVector Vx(int n) const
HepLorentzVector pfit(int n) const
double chisq() const
HepSymMatrix Evx(int n) const
void setChisqCut(const double chicut=1000, const double chiter=1.0e-3)
WTrackParameter wtrk(int n) const
void setMagCorrFactor(const double factor=1.000)
void AddBeamFit(int number, VertexParameter vpar, int n)
void setIterNumber(const int niter=10)
HepPoint3D xfit(int n) const
void AddVertex(int number, VertexParameter vpar, std::vector< int > lis)
double errorVx(int n, int i) const
VertexParameter vpar(int n) const
int getPath() const
HepPoint3D vx(int n) const
WTrackParameter wtrk(int n) const
Definition: VertexFit.h:79
double chisq() const
Definition: VertexFit.h:66
HepVector Vx(int n) const
Definition: VertexFit.h:86
HepVector w(int n) const
Definition: VertexFit.h:77
HepSymMatrix Ew(int n) const
Definition: VertexFit.h:78
void setIterNumber(const int niter=10)
Definition: VertexFit.h:48
WTrackParameter wVirtualTrack(int n) const
Definition: VertexFit.h:92
void AddBeamFit(int number, VertexParameter vpar, int n)
Definition: VertexFit.cxx:74
void AddVertex(int number, VertexParameter vpar, std::vector< int > lis)
Definition: VertexFit.cxx:89
HepSymMatrix Evx(int n) const
Definition: VertexFit.h:87
HepPoint3D vx(int n) const
Definition: VertexFit.h:85
HepLorentzVector pfit(int n) const
Definition: VertexFit.h:75
HepPoint3D xfit(int n) const
Definition: VertexFit.h:76
void setMagCorrFactor(const double factor=1.000)
Definition: VertexFit.h:50
VertexParameter vpar(int n) const
Definition: VertexFit.h:89
void setChisqCut(const double chicut=1000, const double chiter=1.0e-3)
Definition: VertexFit.h:49
double errorVx(int n, int i) const
Definition: VertexFit.h:88