8#ifndef MUC_STRUCT_CONST_H
9#define MUC_STRUCT_CONST_H
16static const int CALIB_LV_MAX = 4;
17static const int EFF_WINDOW = 4;
18static const int TRACK_SEG_MAX = 8;
19static const int TRACK_THRESHOLD = 100;
20static const int DEFAULT_BUILD_MODE = 1;
21static const double DEFAULT_EFF_VALUE = 0.95;
22static const double DEFAULT_EFF_ERR = 0.0;
23static const double DEFAULT_INC_VALUE = 0.0;
24static const double DEFAULT_NOS_VALUE = 0.0;
25static const double LIMIT_CUT = 0.0001;
26static const double TRIGGER_RATE = 4000.0;
27static const double TRIGGER_WINDOW = 800e-9;
29static const double PI = 3.141593;
30static const double VALUE =
tan(PI/8.0);
33static const int PART_MAX = 3;
34static const int SEGMENT_MAX = 8;
35static const int LAYER_MAX = 9;
36static const int BOX_MAX = 136;
37static const int STRIP_MAX = 9152;
38static const int STRIP_INBOX_MAX= 112;
39static const int SL_NUM = 2;
40static const int CLUSTER_CUT = 0;
41static const int CLUSTER_ALARM = 20;
42static const int CLUSTER_RANGE = STRIP_INBOX_MAX;
44static const int BOX_PER_PART[PART_MAX] = {32, 72, 32};
45static const int BOX_PER_SEG[PART_MAX] = {8, 9, 8};
46static const int BOX_SUM[PART_MAX] = {32, 104, 136};
48static const int STR_PER_PART[3] = { 2048, 5056, 2048 };
49static const int B_STR_PER_SEG[2] = { 624, 688 };
50static const int STR_SUM[3] = { 2048, 7104, 9152 };
52static const int EEID = 0;
53static const int BRID = 1;
54static const int EWID = 2;
55static const int SL_UP = 0;
56static const int SL_DOWN = 1;
57static const int XSTR = 0;
58static const int YSTR = 1;
59static const int ZSTR = 2;
60static const int PHISTR = 3;
62static const double STR_GAP = 2.0;
63static const double STR_TH = 1.0;
64static const double BOX_TH = 28.0;
65static const double AS_GAP = 40.0;
68static const int E_SEG_NUM = 4;
69static const int E_LAY_NUM = 8;
70static const int E_STR_NUM = 64;
72static const int E_ASLAY_NUM = 9;
73static const int E_PANEL_NUM = 3;
74static const double E_STR_DST = 35;
75static const int E_RPC_NUM[SL_NUM] = {3,5};
77static const double E_STR_WT = 33;
78static const double E_AS_RMAX = 2500.0;
80static const double E_GP_RMIN[E_LAY_NUM] = {1067,1100,1133,1167,1203,1241,1302,1362};
81static const double E_GP_DX = 40.0;
82static const double E_GP_DY = 50.0;
83static const double E_BOX_DR = 130.0;
85static const double E_XSTR_OFFSET = 97.5;
86static const double E_YSTR_OFFSET = 87.5;
87static const double E_STRPLN_DA = 16.0;
88static const double E_STRPLN_DB[2] = { 53.0,41.0 };
89static const double E_STRPLN_DR = 26.0;
92static const int B_SEG_NUM = 8;
93static const int B_LAY_NUM = 9;
94static const int B_TOP = 2;
96static const int B_ZSTR_NUM = 48;
97static const int B_PHISTR_NUM = 96;
98static const int B_TOPSTR_NUM = 112;
100static const int B_PHISTR_CUT_NUM = 80;
101static const double B_PHISTR_CUT = 642;
102static const double B_ZSTR_CUT[2] = {540,610};
103static const double B_STR_DST[B_LAY_NUM] = {20,39,27,39,30,39,33,39,37};
104static const double B_PHI[B_SEG_NUM] = { -2, -1, 0, 1, 2, -1, 0, 1 };
105static const int B_ZSTR_CUT_NUM[B_LAY_NUM] = {16, 0, 12, 0, 11, 0, 10, 0, 9};
107static const double B_AS_LMAX = 3940.0;
108static const double B_GP_DZ = 70.0;
109static const double B_GP_LT = 3940.0;
110static const double B_GP_WT[B_LAY_NUM] = {1266,1314,1372,1430,1496,1562,1652,1762,1860};
111static const double B_GP_SLOT_WT = 422;
112static const double B_GP_SLOT_LT = 542;
113static const double B_BOX_LT = 3800.0;
114static const double B_BOX_SLOT_WT = 560;
115static const double B_BOX_DT[SL_NUM] = {31,26};
116static const double B_BOX_DZ[SL_NUM] = {46,41};
117static const double B_BOX_WT[B_LAY_NUM] = {1050,1300,1360,1416,1484,1548,1640,1748,1848};
118static const double B_AS_RMIN[B_LAY_NUM]= {1740,1810,1880,1950,2030,2110,2230,2350,2470};
120static const double B_TOPRPC_LTS[2] = {540,610};
122static const double OVERLAP_WIDTH = 4.0;
double tan(const BesAngle a)