CGEM BOSS 6.6.5.g
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
32 const int NTRKPAR = 5; /* number of track parameters */
33
34 const int gNsamLC = 100;
35 const double gStepLC[5] = {0.001, 0.001, 0.00001, 0.0001, 0.0001}; /* units of dr&dz are cm */
36}
37
38#endif
const double PI
Definition: TrkFitFun.h:27
const int gNsamLC
Definition: TrkFitFun.h:34
const double HFPI
Definition: TrkFitFun.h:29
double getPhiIni(double trkpar[], double rLayer, double pos[])
Definition: TrkFitFun.cxx:260
const double gStepLC[5]
Definition: TrkFitFun.h:35
bool getDeriLoc(int ipar, double helix[], double &deri, double wpos[], double zini)
Definition: TrkFitFun.cxx:298
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)
Definition: TrkFitFun.cxx:169
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
int gNiter
Definition: TrkFitFun.cxx:10
const double BFIELD
Definition: TrkFitFun.h:30
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:32
const double PI2
Definition: TrkFitFun.h:28