CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/CgemSegmentFitAlg/CgemSegmentFitAlg-00-00-04/CgemSegmentFitAlg/CgemSegmentFun.h
Go to the documentation of this file.
1#ifndef CGEMSEGMENTFUN_H
2#define CGEMSEGMENTFUN_H
3
4//#include "TrackUtil/Helix.h"
5#include "KalFitAlg/helix/Helix.h"
6#include "CLHEP/Geometry/Point3D.h"
7#include "CLHEP/Matrix/Vector.h"
8
9#include <string>
10
11
12namespace CgemSegmentFun{
13
14 void GetHelixVarBeforeFit(int charge, double& d0, double& phi0, double& omega, double& z0, double& tanl);
15 void GetChisqF(CLHEP::HepVector trkpar, HepPoint3D pivot, double& chisq);
16 double IntersectCylinder(double r, KalmanFit::Helix helix);
17 void fcnTrk(int &npar, double *gin, double &f, double *par, int iflag);
18 double fLadder(double x, double delta_phi);
19 double fGauss(double x, double mean, double sigma);
20 void GetLikelihoodF(CLHEP::HepVector trkpar, HepPoint3D pivot, double& chisq);
21 double GetKappaAfterFit(int charge, double* rec_phi);
22 HepVector CalculateHelix(CLHEP::HepVector trkpar, HepPoint3D pivot);// added on 2017-02-15, wll
23 HepSymMatrix InvC(int iLayer);
24 bool DetSquareMatrix(HepMatrix m, double &det);
25 double detA(double arcs[10][10],int n);
26 bool GetMatrixInverse(double src[10][10],int n,double des[10][10]);
27 void getAStart(double arcs[10][10],int n,double ans[10][10]);
28 bool InverseSymMatrix(HepSymMatrix m, HepSymMatrix &m_inv);
29
30 /*global variables of CGEM Geomtry*/
31 extern double rl[3];// middle radius of drift gap
32 extern double a_stero[3];
33 extern double r_layer[3];
34 extern double r_X[3];
35 extern double r_V[3];
36 extern double x_reso[3];
37 extern double v_reso[3];
38 extern double v_mean[3];
39 extern double phi_reso[3];
40 extern double phi_mean[3];
41 extern double DeltaPhi[3];
42
43 /*global variables of CGEM segment*/
44 extern double vec_phi[3];
45 extern double vec_z[3];
46 extern double vec_v[3];
47 extern int nStrip_X[3];
48 extern int nStrip_V[3];
49
50}
51
52
53#endif /* CGEMSEGMENTFUN_H */
54
const Int_t n
void getAStart(double arcs[10][10], int n, double ans[10][10])
bool DetSquareMatrix(HepMatrix m, double &det)
void GetHelixVarBeforeFit(int charge, double &d0, double &phi0, double &omega, double &z0, double &tanl)
HepSymMatrix InvC(int iLayer)
bool InverseSymMatrix(HepSymMatrix m, HepSymMatrix &m_inv)
double fLadder(double x, double delta_phi)
double GetKappaAfterFit(int charge, double *rec_phi)
double fGauss(double x, double mean, double sigma)
bool GetMatrixInverse(double src[10][10], int n, double des[10][10])
double detA(double arcs[10][10], int n)
void GetLikelihoodF(CLHEP::HepVector trkpar, HepPoint3D pivot, double &chisq)
HepVector CalculateHelix(CLHEP::HepVector trkpar, HepPoint3D pivot)
void fcnTrk(int &npar, double *gin, double &f, double *par, int iflag)
void GetChisqF(CLHEP::HepVector trkpar, HepPoint3D pivot, double &chisq)
double IntersectCylinder(double r, KalmanFit::Helix helix)