CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
CgemAlignment.h
Go to the documentation of this file.
1#ifndef CGEMALIGNMENT_H
2#define CGEMALIGNMENT_H
3
4#include <string>
5#include <vector>
6#include <math.h>
7
8namespace CgemAlignment{
9
10
11 void Hello();
12
13 const int LAYERNMAX = 6;
14 const int GEO_METHOD = 1;
15 const int NEP = 6; /* number of Cgem layer */
16 const int NLAYER = 6; /* number of Cgem layer */
17 const int NTRKPAR = 5; /* number of track parameters for staight line, the 3rd parameter is not used*/
18 const int NTRKPARALL = 10; /* number of track parameters and errors */
19 const int NDOFALIGN = 6; /* dx, dy, dz, rx, ry, rz */
20
21 const bool g_dofs[6] = {1, 1, 1, 1, 1, 1}; // {Dx, Dy, Dz, Rx, Ry, Rz} Degrees of freedom to take into account (Boolean version)
22
23
24 const double sta_fac = 1.0 / sqrt(10000.0/10000.0); // a scale factor dependent on statistics. The value is 1/sqrt(N/10000), where N is the generated MC events
25 const double g_Sigm[36] = {
26 /* L1 L2 L3 */ /* L4 L5 L6 */
27 sta_fac*0.07, sta_fac*0.07, sta_fac*0.07*0.7, sta_fac*0.07*0.7, sta_fac*0.07*0.7, sta_fac*0.07*0.7, /* dx */
28 sta_fac*0.07, sta_fac*0.07, sta_fac*0.07*0.7, sta_fac*0.07*0.7, sta_fac*0.07*0.7, sta_fac*0.07*0.7, /* dy */
29 sta_fac*0.07, sta_fac*0.07, sta_fac*0.07*0.7, sta_fac*0.07*0.7, sta_fac*0.07*0.7, sta_fac*0.07*0.7, /* dz */
30 sta_fac*0.005, sta_fac*0.005, sta_fac*0.005*0.7, sta_fac*0.005*0.7, sta_fac*0.005*0.7, sta_fac*0.005*0.7, /* rx */
31 sta_fac*0.005, sta_fac*0.005, sta_fac*0.005*0.7, sta_fac*0.005*0.7, sta_fac*0.005*0.7, sta_fac*0.005*0.7, /* ry */
32 sta_fac*0.005, sta_fac*0.005, sta_fac*0.005*0.7, sta_fac*0.005*0.7, sta_fac*0.005*0.7, sta_fac*0.005*0.7 /* rz */
33 }; /* for dx, dy, dz, rz unit ? assume they are mm and rad*/
34
35 const double g_res_cut = 10.; //Why do I set so small value : 1.2
36 const double g_res_cut_init = 7.; // Larger for the first iteration (you are misaligned !!!)
37 const double g_start_chi_cut = 500.; // How to optimize this value By guoaq-19-09-26
38
39 const int gNsamLC = 100;
40 const int gNsamGB = 100;
41 ///* const double gStepLC[5] = {0.00001, 0.000001, 0.00001, 0.0001, 0.00001}; /\* units of dr&dz are cm *\/ */
42 const double gStepLC[5] = {0.05, 0.001, 0.001, 0.05, 0.002}; /* units of dr&dz are cm, probably not !! */
43 const double gStepGB[36] = {
44 /* L1 L2 L3 L4 L5 L6 */
45 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, /* dx */
46 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, /* dy */
47 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, /* dz */
48 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, /* rx */
49 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, /* ry */
50 0.001, 0.001, 0.001, 0.001, 0.001, 0.001 /* rz */
51 };
52
53}
54
55#endif/* ALIGNMENT_H */
56
const int NTRKPAR
const double g_res_cut
const int GEO_METHOD
const double gStepLC[5]
const int NLAYER
const double gStepGB[36]
const double g_start_chi_cut
const int NTRKPARALL
const double g_res_cut_init
const bool g_dofs[6]
const int NEP
const double sta_fac
const int NDOFALIGN
const double g_Sigm[36]
const int gNsamGB
const int gNsamLC
const int LAYERNMAX