CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkFitFun.h
Go to the documentation of this file.
1#ifndef TRKFITFUN_H
2#define TRKFITFUN_H
3
4#include <string>
5#include <vector>
6
7namespace TrkFitFun
8{
9 /* exterior product */
10 void expd(double veca[3], double vecb[3], double val[3]);
11
12 /* distance of two lines */
13 int dist2Line(double sta[3], double stb[3], double veca[3], double vecb[3],double &d, double xyz_a[3], double xyz_b[3], int fgZcal = 1);
14
15 /* doca of helix track and wire(line) */
16 double docaHelixWire(double trkpar[], double wirest[], double wirev[], double &zwire, double zini);
17 bool getDoca(double trkpar[], double wpos[], double &doca,double whitPos[], double zini);
18 double getPhiIni(double trkpar[], double rLayer, double pos[]);
19
20 /* derivative of doca to track paramters */
21 bool getDeriLoc(int ipar, double helix[], double &deri, double wpos[], double zini);
22
23 /* number of iteration in doca calculation */
24 extern int gNiter;
25
26 const double CC = 2.99792458E10; // cm/sec, light velocity
27 const double PI = 3.141592653;
28 const double PI2 = 6.283185307;
29 const double HFPI = 1.570796327;
30 //const double BFIELD = 1.0; /* Tesla */
31 //const double BFIELD = 0.9; /* Tesla */
32 extern double BFIELD;
33
34 const int NTRKPAR = 5; /* number of track parameters */
35
36 const int gNsamLC = 5;
37 // dr, phi0, kappa, dz, tanL
38 const double gStepLC[5] = {0.0001, 0.0001, 0.00001, 0.0001, 0.0001}; /* units of dr&dz are cm */
39}
40
41#endif
const double PI
Definition TrkFitFun.h:27
const int gNsamLC
Definition TrkFitFun.h:36
const double HFPI
Definition TrkFitFun.h:29
double getPhiIni(double trkpar[], double rLayer, double pos[])
const double gStepLC[5]
Definition TrkFitFun.h:38
bool getDeriLoc(int ipar, double helix[], double &deri, double wpos[], double zini)
void expd(double veca[3], double vecb[3], double val[3])
Definition TrkFitFun.cxx:12
bool getDoca(double trkpar[], double wpos[], double &doca, double whitPos[], double zini)
doca: distance of closest approach.
int dist2Line(double sta[3], double stb[3], double veca[3], double vecb[3], double &d, double xyz_a[3], double xyz_b[3], int fgZcal=1)
Definition TrkFitFun.cxx:18
double docaHelixWire(double trkpar[], double wirest[], double wirev[], double &zwire, double zini)
Definition TrkFitFun.cxx:88
const double CC
Definition TrkFitFun.h:26
const int NTRKPAR
Definition TrkFitFun.h:34
const double PI2
Definition TrkFitFun.h:28