1 |
mocchiut |
1.1 |
DROP DATABASE IF EXISTS dbname; |
2 |
|
|
|
3 |
|
|
CREATE DATABASE dbname; |
4 |
|
|
|
5 |
|
|
USE dbname; |
6 |
|
|
|
7 |
|
|
SET time_zone='+0:00'; |
8 |
|
|
|
9 |
|
|
CREATE TABLE `_RUNID_GEN` ( |
10 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
11 |
mocchiut |
1.5 |
`INSERTED_BY` varchar(4) NOT NULL default 'NONE' COMMENT 'The owner of the file', |
12 |
mocchiut |
1.1 |
PRIMARY KEY (`ID`) |
13 |
|
|
); |
14 |
|
|
|
15 |
|
|
CREATE TABLE `GL_RAW` ( |
16 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
17 |
|
|
`PATH` varchar(255) NOT NULL default '', |
18 |
|
|
`NAME` varchar(255) NOT NULL default '', |
19 |
|
|
`BOOT_NUMBER` smallint(5) unsigned default NULL, |
20 |
|
|
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
21 |
|
|
PRIMARY KEY (`ID`), |
22 |
|
|
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
23 |
|
|
KEY `PATH_index` (`PATH`) |
24 |
|
|
) ; |
25 |
|
|
|
26 |
|
|
INSERT INTO GL_RAW VALUES(0,'$PAM_L2','level2 files',NULL,NULL); |
27 |
|
|
|
28 |
|
|
CREATE TABLE `GL_ROOT` ( |
29 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
30 |
|
|
`ID_RAW` int(10) unsigned NOT NULL default '0', |
31 |
|
|
`ID_TIMESYNC` int(10) unsigned NOT NULL default '0', |
32 |
|
|
`PATH` varchar(255) NOT NULL default '', |
33 |
|
|
`NAME` varchar(255) NOT NULL default '', |
34 |
|
|
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
35 |
|
|
PRIMARY KEY (`ID`), |
36 |
|
|
KEY `ID_RAW_index` (`ID_RAW`), |
37 |
|
|
KEY `PATH_index` (`PATH`) |
38 |
|
|
) ; |
39 |
|
|
|
40 |
|
|
CREATE TABLE `GL_RESURS_OFFSET` ( |
41 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
42 |
|
|
`FROM_ORBIT` int(10) unsigned NOT NULL default '0', |
43 |
|
|
`SPECIAL_FILE` varchar(255) NOT NULL default '', |
44 |
|
|
`OFFSET_DATE` timestamp default '0000-00-00 00:00:00', |
45 |
|
|
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
46 |
|
|
PRIMARY KEY (`ID`) |
47 |
|
|
) ; |
48 |
|
|
|
49 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','','2006-06-14 21:00:00',NULL); |
50 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'1619','','2006-09-28 21:00:00',NULL); |
51 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'2797','','2006-12-12 21:00:00',NULL); |
52 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'3221','','2007-01-08 21:00:00',NULL); |
53 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_002_001_cln1.pam','2007-01-08 21:00:00',NULL); |
54 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_003_001_cln1.pam','2007-01-08 21:00:00',NULL); |
55 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04586_002_001_cln1.pam','2007-01-08 21:00:00',NULL); |
56 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04586_003_001_cln1.pam','2007-01-08 21:00:00',NULL); |
57 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'4576','','2007-04-08 21:00:00',NULL); |
58 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'5960','','2007-07-08 21:00:00',NULL); |
59 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','07408_003_001_cln1.pam','2007-07-08 21:00:00',NULL); |
60 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'7382','','2007-10-08 21:00:00',NULL); |
61 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'8580','','2007-12-25 21:00:00',NULL); |
62 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08591_002_001_cln1.pam','2007-10-08 21:00:00',NULL); |
63 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08591_003_001_cln1.pam','2007-10-08 21:00:00',NULL); |
64 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08592_004_001_cln1.pam','2007-10-08 21:00:00',NULL); |
65 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08592_004_003_cln1.pam','2007-10-08 21:00:00',NULL); |
66 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'9908','','2008-03-20 21:00:00',NULL); |
67 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_003_001_cln1.pam','2008-03-20 21:00:00',NULL); |
68 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_002_001_cln1.pam','2008-03-20 21:00:00',NULL); |
69 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_001_002_cln1.pam','2008-03-20 21:00:00',NULL); |
70 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'11300','','2008-06-19 21:00:00',NULL); |
71 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'12634','','2008-09-18 21:00:00',NULL); |
72 |
|
|
|
73 |
|
|
|
74 |
|
|
CREATE TABLE `GL_TIMESYNC` ( |
75 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
76 |
|
|
`ID_RAW` int(10) unsigned NOT NULL default '0', |
77 |
|
|
`ID_RESURS_OFFSET` int(10) unsigned NOT NULL default '0', |
78 |
|
|
`OBT0` int(10) unsigned NOT NULL default '0', |
79 |
|
|
`TIMESYNC` int(10) unsigned NOT NULL default '0', |
80 |
|
|
`TYPE` smallint(5) unsigned NOT NULL default '0', |
81 |
|
|
PRIMARY KEY (`ID`), |
82 |
|
|
KEY `ID_RAW_index` (`ID_RAW`), |
83 |
|
|
KEY `TYPE_index` (`TYPE`) |
84 |
|
|
) ; |
85 |
|
|
|
86 |
|
|
CREATE TABLE `GL_PARAM` ( |
87 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
88 |
|
|
`PATH` varchar(255) NOT NULL default '', |
89 |
|
|
`NAME` varchar(255) NOT NULL default '', |
90 |
|
|
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
91 |
|
|
`TO_TIME` int(10) unsigned NOT NULL default '0', |
92 |
|
|
`TYPE` smallint(5) unsigned NOT NULL default '0', |
93 |
|
|
`DESCR` varchar(255) NOT NULL default '', |
94 |
|
|
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
95 |
|
|
PRIMARY KEY (`ID`), |
96 |
|
|
KEY `PATH_index` (`PATH`), |
97 |
|
|
KEY `NAME_index` (`NAME`), |
98 |
|
|
KEY `TYPE_index` (`TYPE`), |
99 |
|
|
KEY `DESCR_index` (`DESCR`) |
100 |
|
|
) ; |
101 |
|
|
|
102 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","field_param-0/",0,0,1,"field",NULL); |
103 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mip_param-0/",0,0,2,"trk mip",NULL); |
104 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","charge_param-1/",0,0,3,"trk charge",NULL); |
105 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","eta_param-2/",0,0,4,"trk pfa",NULL); |
106 |
pam-fi |
1.6 |
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","align_param-080805-GL1from7/",0,0,5,"trk alignment",NULL); |
107 |
mocchiut |
1.1 |
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id0/",1,1152684877,6,"trk mask",NULL); |
108 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id1/",1152684877,1153111322,6,"trk mask",NULL); |
109 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id2/",1153111322,1153324544,6,"trk mask",NULL); |
110 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id3/",1153324544,1154177434,6,"trk mask",NULL); |
111 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id4/",1154177434,1154390000,6,"trk mask",NULL); |
112 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id5/",1154390000,1154922496,6,"trk mask",NULL); |
113 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id6/",1154922496,1155720256,6,"trk mask",NULL); |
114 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id7/",1155720256,1155986176,6,"trk mask",NULL); |
115 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id8/",1155986176,1157090000,6,"trk mask",NULL); |
116 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id9/",1157090000,1157338867,6,"trk mask",NULL); |
117 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id10/",1157338867,1158595763,6,"trk mask",NULL); |
118 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id11/",1158595763,1158847142,6,"trk mask",NULL); |
119 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id12/",1158847142,1159349901,6,"trk mask",NULL); |
120 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id13/",1159349901,1160439027,6,"trk mask",NULL); |
121 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id14/",1160439027,1163570000,6,"trk mask",NULL); |
122 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id15/",1163570000,1164654694,6,"trk mask",NULL); |
123 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id16/",1164654694,1164790515,6,"trk mask",NULL); |
124 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id17/",1164790515,1164932864,6,"trk mask",NULL); |
125 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id18/",1164932864,1165200550,6,"trk mask",NULL); |
126 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id19/",1165200550,1165735923,6,"trk mask",NULL); |
127 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id20/",1165735923,1166003610,6,"trk mask",NULL); |
128 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id21/",1166003610,1166271296,6,"trk mask",NULL); |
129 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id22/",1166271296,1166806669,6,"trk mask",NULL); |
130 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id23/",1166806669,1167074355,6,"trk mask",NULL); |
131 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id24/",1167074355,1167342042,6,"trk mask",NULL); |
132 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id25/",1167342042,1167610000,6,"trk mask",NULL); |
133 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id26/",1167610000,1168413402,6,"trk mask",NULL); |
134 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id27/",1168413402,1168681293,6,"trk mask",NULL); |
135 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id28/",1168681293,1168949184,6,"trk mask",NULL); |
136 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id29/",1168949184,1169217075,6,"trk mask",NULL); |
137 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id30/",1169217075,1169484966,6,"trk mask",NULL); |
138 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id31/",1169484966,1170020749,6,"trk mask",NULL); |
139 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id32/",1170020749,1170290000,6,"trk mask",NULL); |
140 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id33/",1170290000,1170530522,6,"trk mask",NULL); |
141 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id34/",1170530522,1170772403,6,"trk mask",NULL); |
142 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id35/",1170772403,1171014285,6,"trk mask",NULL); |
143 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id36/",1171014285,1171498048,6,"trk mask",NULL); |
144 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id37/",1171498048,1171739930,6,"trk mask",NULL); |
145 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id38/",1171739930,1172223693,6,"trk mask",NULL); |
146 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id39/",1172223693,1172465574,6,"trk mask",NULL); |
147 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id40/",1172465574,1172710000,6,"trk mask",NULL); |
148 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id41/",1172710000,1172975398,6,"trk mask",NULL); |
149 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id42/",1172975398,1173243213,6,"trk mask",NULL); |
150 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id43/",1173243213,1173511027,6,"trk mask",NULL); |
151 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id44/",1173511027,1173778842,6,"trk mask",NULL); |
152 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id45/",1173778842,1174046656,6,"trk mask",NULL); |
153 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id46/",1174046656,1174314470,6,"trk mask",NULL); |
154 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id47/",1174314470,1174850099,6,"trk mask",NULL); |
155 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id48/",1174850099,1175117914,6,"trk mask",NULL); |
156 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id49/",1175117914,1175390000,6,"trk mask",NULL); |
157 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id50/",1175390000,1175904256,6,"trk mask",NULL); |
158 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id51/",1175904256,1176163456,6,"trk mask",NULL); |
159 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id52/",1176163456,1176681856,6,"trk mask",NULL); |
160 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id53/",1176681856,1176941056,6,"trk mask",NULL); |
161 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id54/",1176941056,1177200256,6,"trk mask",NULL); |
162 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id55/",1177200256,1177718656,6,"trk mask",NULL); |
163 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id54/",1177718656,1177980000,6,"trk mask",NULL); |
164 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id56/",1177980000,1178245069,6,"trk mask",NULL); |
165 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id57/",1178245069,1178512154,6,"trk mask",NULL); |
166 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id58/",1178512154,1178779238,6,"trk mask",NULL); |
167 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id59/",1178779238,1179313408,6,"trk mask",NULL); |
168 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id60/",1179313408,1179580493,6,"trk mask",NULL); |
169 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id61/",1179580493,1179847578,6,"trk mask",NULL); |
170 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id62/",1179847578,1180114662,6,"trk mask",NULL); |
171 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id63/",1180114662,1180381747,6,"trk mask",NULL); |
172 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id64/",1180381747,1180670000,6,"trk mask",NULL); |
173 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id65/",1180670000,1180925389,6,"trk mask",NULL); |
174 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id66/",1180925389,1181183514,6,"trk mask",NULL); |
175 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id65/",1181183514,1181957888,6,"trk mask",NULL); |
176 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id67/",1181957888,1182732262,6,"trk mask",NULL); |
177 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id68/",1182732262,1182990387,6,"trk mask",NULL); |
178 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id69/",1182990387,1183250000,6,"trk mask",NULL); |
179 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id70/",1183250000,1183516314,6,"trk mask",NULL); |
180 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id71/",1183516314,1183784115,6,"trk mask",NULL); |
181 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id72/",1183784115,1184051917,6,"trk mask",NULL); |
182 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id73/",1184051917,1184319718,6,"trk mask",NULL); |
183 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id72/",1184319718,1184587520,6,"trk mask",NULL); |
184 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id74/",1184587520,1184855322,6,"trk mask",NULL); |
185 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id71/",1184855322,1185123123,6,"trk mask",NULL); |
186 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id71/",1185123123,1185390925,6,"trk mask",NULL); |
187 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id75/",1185390925,1185658726,6,"trk mask",NULL); |
188 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id76/",1185658726,1185930000,6,"trk mask",NULL); |
189 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id77/",1185930000,1186178522,6,"trk mask",NULL); |
190 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id78/",1186178522,1186430515,6,"trk mask",NULL); |
191 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id79/",1186430515,1187186496,6,"trk mask",NULL); |
192 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id80/",1187186496,1187438490,6,"trk mask",NULL); |
193 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id81/",1187438490,1187690483,6,"trk mask",NULL); |
194 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id82/",1187690483,1187942477,6,"trk mask",NULL); |
195 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id83/",1187942477,1188194470,6,"trk mask",NULL); |
196 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id84/",1188194470,4294967295,6,"trk mask",NULL); |
197 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","default_calib/",0,0,7,"default calibration",NULL); |
198 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIP-dws2000.dat",1,1,101,"Calorimeter ADC to MIP from flight data dw serie 2000",NULL); |
199 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIP.dat",1,1,101,"Calorimeter ADC to MIP from ground data",NULL); |
200 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIPfc.dat",2,4294967295,101,"Calorimeter ADC to MIP from flight, relativistic particles",NULL); |
201 |
mocchiut |
1.3 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_adc2mip_special0.dat",1,1172976488,110,"Calorimeter ADC to MIP from flight, special cases",NULL); |
202 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_adc2mip_special1.dat",1172976488,4294967295,110,"Calorimeter ADC to MIP from flight, special cases",NULL); |
203 |
mocchiut |
1.1 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign.dat",1,1,102,"Calorimeter alignement",NULL); |
204 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flight.dat",1,1,102,"Calorimeter alignement with flight data",NULL); |
205 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flightEMS.dat",1,1,102,"Calorimeter alignement with flight data EM showers",NULL); |
206 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flightINCp.dat",2,4294967295,102,"Calorimeter alignement with flight data, protons, Z alignment changed",NULL); |
207 |
mocchiut |
1.3 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloBadMask.dat",1,1,103,"Calorimeter bad strip offline mask",NULL); |
208 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloBadMask18Xgood.dat",2,4294967295,103,"Calorimeter bad strip offline mask",NULL); |
209 |
mocchiut |
1.1 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloDefaultCalib.root",0,0,104,"Calorimeter default calibration",NULL); |
210 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloBadPulsePre0.dat",1,1169000000,105," <0701 Calorimeter bad pre-amplifiers when pulsing offline mask",NULL); |
211 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloBadPulsePre1.dat",1169000001,4294967295,105," >0701 Calorimeter bad pre-amplifiers when pulsing offline mask",NULL); |
212 |
mocchiut |
1.3 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_crosstalk_param_pre_neighbour.dat",1,4294967295,106," Calorimeter pre-amply neighbour correction table",NULL); |
213 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_crosstalk_param_pre_IIneighbour.dat",1,4294967295,107," Calorimeter pre-amply second neighbour correction table",NULL); |
214 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_crosstalk_param_si0.dat",1,1167619688,108,"Calorimeter cross-talk silicon effect",NULL); |
215 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_crosstalk_param_si1.dat",1167619689,4294967295,108,"Calorimeter cross-talk silicon effect",NULL); |
216 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_maxrms_plane0.dat",1,4294967295,109,"Calorimeter 4*rms threshold for each plane (default 26)",NULL); |
217 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_emin_strip0.dat",1,1167619688,111,"Calorimeter Emin threshold for each strip (default 0.7)",NULL); |
218 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_emin_strip1.dat",1167619689,4294967295,111,"Calorimeter Emin threshold for each strip (default 0.7)",NULL); |
219 |
mocchiut |
1.1 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_1.rz",1,1153660000,201," 0 - 07-23 - A A standard",NULL); |
220 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_2.rz",1153660001,1154375000,201," 07-23 - 07-31 HV_D problems B B july Parameters_jul24-31.txt",NULL); |
221 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_3.rz",1154375001,1155850000,201," 07-31 - 08-17 - C C standard",NULL); |
222 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_4.rz",1155850001,1156280000,201," 08-17 - 08-22 HV_H&HV_N problems D D august Parameters_aug18-22.txt",NULL); |
223 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_5.rz",1156280001,1165400000,201," 08-22 - 12-06 E E standard",NULL); |
224 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_6.rz",1165400001,1168490000,201," 12-06 - 01-11 December Tracker off/on F F standard",NULL); |
225 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_7.rz",1168490001,1168940000,201," 01-11 - 01-16 HV_D problems G G january calper02.txt",NULL); |
226 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_8.rz",1168940001,1169580000,201," 01-16 - 01-23 HV_F & HV_M problems G G january calper03.txt",NULL); |
227 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_9.rz",1169580001,1170200000,201," 01-23 - 01-30 H H . calper04.txt",NULL); |
228 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_10.rz",1170200001,1171000000,201," 01-30 - 02-09 30.1. Threshold changed I I standard",NULL); |
229 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_11.rz",1171000001,1174665000,201," 02-09 - 03-23 09.2. Threshold changed J J standard",NULL); |
230 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_12.rz",1174665001,1175000000,201," 03-23 - 03-27 HV_B problems K K . calper05.txt",NULL); |
231 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_13.rz",1175000001,1176120000,201," 03-27 - 04-09 L L standard",NULL); |
232 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_14.rz",1176120001,1176800000,201," 04-09 - 04-17 HV_H problems M M . calper06.txt",NULL); |
233 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_15.rz",1176800001,1178330000,201," 04-17 - 05-05 HV_E problems N N . calper08.txt",NULL); |
234 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_16.rz",1178330001,1181322000,201," 05-05 - 06-08 HV_H problems O O . calper09.txt",NULL); |
235 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_17.rz",1181322001,1182100000,201," 06-08 - 06-17 P P standard",NULL); |
236 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_18.rz",1182100001,1183030000,201," 06-17 - 06-28 HV_A problems (~2 days) Q Q ?",NULL); |
237 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_19.rz",1183030001,1184000000,201," 06-28 - 07-09 R R standard",NULL); |
238 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_20.rz",1184000001,1184570000,201," 07-09 - 07-16 HV_H problems S S . calper10.txt",NULL); |
239 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_21.rz",1184570001,1185090000,201," 07-16 - 07-22 T T standard",NULL); |
240 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_22.rz",1185090001,1185212000,201," 07-22 - 07-23 HV_D problems U U . calper11.txt",NULL); |
241 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_23.rz",1185212001,1191100000,201," 07-23 - 09-29 V V standard",NULL); |
242 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_24.rz",1191100001,1191940000,201," 09-23 - 10-09 HV_D problems 24 24 standard",NULL); |
243 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_25.rz",1191940001,1195200000,201," 10-09 - 11-16 25 25 standard",NULL); |
244 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_26.rz",1195200001,1196230000,201," 11-16 - 11-28 Timing changes 26 26 standard",NULL); |
245 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_27.rz",1196230001,1196280000,201," 11-28 - 11-28 HV_D problems 27 27 standard",NULL); |
246 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_28.rz",1196280001,1206100000,201," 11-29 - 03-21 28 28 standard",NULL); |
247 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_29.rz",1206100001,4294967295,201," > 03-21 HV_C problems 29 29 standard",NULL); |
248 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","ToFCalibParam.txt",1,4294967295,202," GP ToF parameters ",NULL); |
249 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05.dat",0,0,301,"igrf 2005",NULL); |
250 |
|
|
insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05s.dat",0,0,302,"igrf 2010",NULL); |
251 |
|
|
|
252 |
|
|
CREATE TABLE `GL_TLE` ( |
253 |
|
|
`ID` int(10) NOT NULL auto_increment, |
254 |
|
|
`TLE1` varchar(255) NOT NULL default '', |
255 |
|
|
`TLE2` varchar(255) NOT NULL default '', |
256 |
|
|
`TLE3` varchar(255) NOT NULL default '', |
257 |
|
|
`FROM_TIME` datetime NOT NULL default '0000-00-00 00:00:00', |
258 |
|
|
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
259 |
|
|
PRIMARY KEY (`ID`) |
260 |
|
|
) ; |
261 |
|
|
|
262 |
|
|
CREATE TABLE `GL_RUN` ( |
263 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
264 |
|
|
`ID_RUN_FRAG` int(10) unsigned NOT NULL default '0', |
265 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
266 |
|
|
`ID_ROOT_L2` int(10) unsigned NOT NULL default '0', |
267 |
|
|
`RUNHEADER_TIME` int(10) unsigned NOT NULL default '0', |
268 |
|
|
`RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0', |
269 |
|
|
`RUNHEADER_OBT` int(10) unsigned NOT NULL default '0', |
270 |
|
|
`RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0', |
271 |
|
|
`RUNHEADER_PKT` int(10) unsigned NOT NULL default '0', |
272 |
|
|
`RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0', |
273 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
274 |
|
|
`EV_FROM` int(10) unsigned NOT NULL default '0', |
275 |
|
|
`EV_TO` int(10) unsigned NOT NULL default '0', |
276 |
|
|
`NEVENTS` int(10) unsigned NOT NULL default '0', |
277 |
|
|
`PKT_COUNTER` int(10) unsigned NOT NULL default '0', |
278 |
|
|
`PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0', |
279 |
|
|
`COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0', |
280 |
|
|
`FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
281 |
|
|
`EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
282 |
|
|
`PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0', |
283 |
|
|
`PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0', |
284 |
|
|
`ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0', |
285 |
|
|
`ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0', |
286 |
|
|
`RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0', |
287 |
|
|
`RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0', |
288 |
|
|
`TRK_CALIB_USED` int(10) unsigned NOT NULL default '0', |
289 |
|
|
`CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0', |
290 |
|
|
`LAST_TIMESYNC` int(10) unsigned NOT NULL default '0', |
291 |
|
|
`OBT_TIMESYNC` int(10) unsigned NOT NULL default '0', |
292 |
mocchiut |
1.2 |
`PHYSENDRUN_MASK_S3S2S12` int(10) unsigned NOT NULL default '0', |
293 |
|
|
`PHYSENDRUN_MASK_S11CRC` int(10) unsigned NOT NULL default '0', |
294 |
mocchiut |
1.1 |
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
295 |
|
|
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
296 |
|
|
PRIMARY KEY (`ID`), |
297 |
|
|
KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`), |
298 |
|
|
KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`), |
299 |
|
|
KEY `ID_ROOT_L2_index` (`ID_ROOT_L2`), |
300 |
|
|
KEY `COMPILATIONTS_index` (`COMPILATIONTIMESTAMP`), |
301 |
|
|
KEY `VALID_index` (`VALIDATION`), |
302 |
|
|
KEY `TRKCALIB_index` (`TRK_CALIB_USED`), |
303 |
|
|
KEY `CALDSPMASK_index` (`CAL_DSP_MASK`), |
304 |
|
|
KEY `EFF_WS_index` (`EFF_WRK_SCHEDULE`), |
305 |
|
|
KEY `FAV_WS_index` (`FAV_WRK_SCHEDULE`), |
306 |
|
|
KEY `RM_ACQ_AFTER_CALIB_index` (`RM_ACQ_AFTER_CALIB`), |
307 |
|
|
KEY `RM_ACQ_SETTING_MODE_index` (`RM_ACQ_SETTING_MODE`), |
308 |
|
|
KEY `ACQ_VAR_INFO_index` (`ACQ_VAR_INFO`), |
309 |
|
|
KEY `TRG_MODE_A_index` (`PRH_VAR_TRG_MODE_A`), |
310 |
|
|
KEY `TRG_MODE_B_index` (`PRH_VAR_TRG_MODE_B`), |
311 |
|
|
KEY `NEVENTS_index` (`NEVENTS`), |
312 |
|
|
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
313 |
|
|
KEY `ID_RUN_fk_constraint` (`ID_ROOT_L0`), |
314 |
|
|
KEY `ID_RUN_L2_fk_constraint` (`ID_ROOT_L2`) |
315 |
|
|
) ; |
316 |
|
|
|
317 |
|
|
CREATE TABLE `GL_RUN_FRAGMENTS` ( |
318 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
319 |
|
|
`ID_RUN_FRAG` int(10) unsigned NOT NULL default '0', |
320 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
321 |
|
|
`ID_ROOT_L2` int(10) unsigned NOT NULL default '0', |
322 |
|
|
`RUNHEADER_TIME` int(10) unsigned NOT NULL default '0', |
323 |
|
|
`RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0', |
324 |
|
|
`RUNHEADER_OBT` int(10) unsigned NOT NULL default '0', |
325 |
|
|
`RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0', |
326 |
|
|
`RUNHEADER_PKT` int(10) unsigned NOT NULL default '0', |
327 |
|
|
`RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0', |
328 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
329 |
|
|
`EV_FROM` int(10) unsigned NOT NULL default '0', |
330 |
|
|
`EV_TO` int(10) unsigned NOT NULL default '0', |
331 |
|
|
`NEVENTS` int(10) unsigned NOT NULL default '0', |
332 |
|
|
`PKT_COUNTER` int(10) unsigned NOT NULL default '0', |
333 |
|
|
`PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0', |
334 |
|
|
`COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0', |
335 |
|
|
`FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
336 |
|
|
`EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
337 |
|
|
`PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0', |
338 |
|
|
`PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0', |
339 |
|
|
`ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0', |
340 |
|
|
`ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0', |
341 |
|
|
`RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0', |
342 |
|
|
`RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0', |
343 |
|
|
`TRK_CALIB_USED` int(10) unsigned NOT NULL default '0', |
344 |
|
|
`CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0', |
345 |
|
|
`LAST_TIMESYNC` int(10) unsigned NOT NULL default '0', |
346 |
|
|
`OBT_TIMESYNC` int(10) unsigned NOT NULL default '0', |
347 |
mocchiut |
1.2 |
`PHYSENDRUN_MASK_S3S2S12` int(10) unsigned NOT NULL default '0', |
348 |
|
|
`PHYSENDRUN_MASK_S11CRC` int(10) unsigned NOT NULL default '0', |
349 |
mocchiut |
1.1 |
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
350 |
|
|
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
351 |
|
|
PRIMARY KEY (`ID`), |
352 |
|
|
KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`), |
353 |
|
|
KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`), |
354 |
|
|
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
355 |
|
|
KEY `TRKCALIB_index` (`TRK_CALIB_USED`), |
356 |
|
|
KEY `NID_RUN_fk_constraint` (`ID_ROOT_L0`) |
357 |
|
|
) ; |
358 |
|
|
|
359 |
|
|
CREATE TABLE `GL_RUN_TRASH` ( |
360 |
|
|
`ID_TRASH` int(10) unsigned NOT NULL auto_increment, |
361 |
|
|
`ID` int(10) unsigned NOT NULL default '0', |
362 |
|
|
`ID_RUN_FRAG` int(10) unsigned NOT NULL default '0', |
363 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
364 |
|
|
`ID_ROOT_L2` int(10) unsigned NOT NULL default '0', |
365 |
|
|
`RUNHEADER_TIME` int(10) unsigned NOT NULL default '0', |
366 |
|
|
`RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0', |
367 |
|
|
`RUNHEADER_OBT` int(10) unsigned NOT NULL default '0', |
368 |
|
|
`RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0', |
369 |
|
|
`RUNHEADER_PKT` int(10) unsigned NOT NULL default '0', |
370 |
|
|
`RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0', |
371 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
372 |
|
|
`EV_FROM` int(10) unsigned NOT NULL default '0', |
373 |
|
|
`EV_TO` int(10) unsigned NOT NULL default '0', |
374 |
|
|
`NEVENTS` int(10) unsigned NOT NULL default '0', |
375 |
|
|
`PKT_COUNTER` int(10) unsigned NOT NULL default '0', |
376 |
|
|
`PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0', |
377 |
|
|
`COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0', |
378 |
|
|
`FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
379 |
|
|
`EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
380 |
|
|
`PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0', |
381 |
|
|
`PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0', |
382 |
|
|
`ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0', |
383 |
|
|
`ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0', |
384 |
|
|
`RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0', |
385 |
|
|
`RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0', |
386 |
|
|
`TRK_CALIB_USED` int(10) unsigned NOT NULL default '0', |
387 |
|
|
`CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0', |
388 |
|
|
`LAST_TIMESYNC` int(10) unsigned NOT NULL default '0', |
389 |
|
|
`OBT_TIMESYNC` int(10) unsigned NOT NULL default '0', |
390 |
mocchiut |
1.2 |
`PHYSENDRUN_MASK_S3S2S12` int(10) unsigned NOT NULL default '0', |
391 |
|
|
`PHYSENDRUN_MASK_S11CRC` int(10) unsigned NOT NULL default '0', |
392 |
mocchiut |
1.1 |
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
393 |
|
|
`FILENAMEL0` varchar(255) NOT NULL default '', |
394 |
|
|
`FILENAMEL2` varchar(255) NOT NULL default '', |
395 |
|
|
`BELONGED_TO` varchar(255) NOT NULL default '', |
396 |
|
|
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
397 |
|
|
PRIMARY KEY (`ID_TRASH`), |
398 |
|
|
KEY `TID_RUN_FRAG_index` (`ID_RUN_FRAG`), |
399 |
|
|
KEY `TID_ROOT_L0_index` (`ID_ROOT_L0`), |
400 |
|
|
KEY `TBOOTNUMBER_index` (`BOOT_NUMBER`), |
401 |
|
|
KEY `TTRKCALIB_index` (`TRK_CALIB_USED`), |
402 |
|
|
KEY `TFNAME0_index` (`FILENAMEL0`), |
403 |
|
|
KEY `TFNAME2_index` (`FILENAMEL2`), |
404 |
|
|
KEY `TBELONG_index` (`BELONGED_TO`) |
405 |
|
|
) ; |
406 |
|
|
|
407 |
|
|
CREATE TABLE `GL_CALO_CALIB` ( |
408 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
409 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
410 |
|
|
`EV_ROOT` int(10) unsigned NOT NULL default '0', |
411 |
|
|
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
412 |
|
|
`TO_TIME` int(10) unsigned NOT NULL default '0', |
413 |
|
|
`SECTION` tinyint(3) unsigned NOT NULL default '0', |
414 |
|
|
`OBT` int(10) unsigned NOT NULL default '0', |
415 |
|
|
`PKT` int(10) unsigned NOT NULL default '0', |
416 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
417 |
|
|
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
418 |
|
|
PRIMARY KEY (`ID`), |
419 |
|
|
KEY `SECTION_index` (`SECTION`), |
420 |
|
|
KEY `EV_ROOT_index` (`EV_ROOT`), |
421 |
|
|
KEY `ID_ROOT_index` (`ID_ROOT_L0`), |
422 |
|
|
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
423 |
|
|
KEY `VALID1_index` (`VALIDATION`) |
424 |
|
|
) ; |
425 |
|
|
|
426 |
|
|
CREATE TABLE `GL_CALOPULSE_CALIB` ( |
427 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
428 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
429 |
|
|
`EV_ROOT` int(10) unsigned NOT NULL default '0', |
430 |
|
|
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
431 |
|
|
`TO_TIME` int(10) unsigned NOT NULL default '0', |
432 |
|
|
`SECTION` tinyint(3) unsigned NOT NULL default '0', |
433 |
|
|
`PULSED_STRIP` tinyint(3) unsigned default NULL, |
434 |
|
|
`PULSE_AMPLITUDE` tinyint(3) unsigned default NULL, |
435 |
|
|
`OBT` int(10) unsigned NOT NULL default '0', |
436 |
|
|
`PKT` int(10) unsigned NOT NULL default '0', |
437 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
438 |
|
|
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
439 |
|
|
PRIMARY KEY (`ID`), |
440 |
|
|
KEY `PSECTION_index` (`SECTION`), |
441 |
|
|
KEY `PULSEDSTRIP_index` (`PULSED_STRIP`), |
442 |
|
|
KEY `PULSEAMPL_index` (`PULSE_AMPLITUDE`), |
443 |
|
|
KEY `PEV_ROOT_index` (`EV_ROOT`), |
444 |
|
|
KEY `PID_ROOT_index` (`ID_ROOT_L0`), |
445 |
|
|
KEY `PBOOTNUMBER_index` (`BOOT_NUMBER`), |
446 |
|
|
KEY `PVALID1_index` (`VALIDATION`) |
447 |
|
|
) ; |
448 |
|
|
|
449 |
|
|
|
450 |
|
|
CREATE TABLE `GL_TRK_CALIB` ( |
451 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
452 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
453 |
|
|
`EV_ROOT_CALIBTRK1` int(10) unsigned default NULL, |
454 |
|
|
`EV_ROOT_CALIBTRK2` int(10) unsigned default NULL, |
455 |
|
|
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
456 |
|
|
`TO_TIME` int(10) unsigned NOT NULL default '0', |
457 |
|
|
`OBT1` int(10) unsigned NOT NULL default '0', |
458 |
|
|
`PKT1` int(10) unsigned NOT NULL default '0', |
459 |
|
|
`OBT2` int(10) unsigned NOT NULL default '0', |
460 |
|
|
`PKT2` int(10) unsigned NOT NULL default '0', |
461 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
462 |
|
|
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
463 |
|
|
PRIMARY KEY (`ID`), |
464 |
|
|
KEY `ID_ROOT_index` (`ID_ROOT_L0`), |
465 |
|
|
KEY `EV_ROOT_CALIBTRK1index` (`EV_ROOT_CALIBTRK1`), |
466 |
|
|
KEY `EV_ROOT_CALIBTRK2index` (`EV_ROOT_CALIBTRK2`), |
467 |
|
|
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
468 |
|
|
KEY `VALID2_index` (`VALIDATION`) |
469 |
|
|
) ; |
470 |
|
|
|
471 |
|
|
CREATE TABLE `GL_S4_CALIB` ( |
472 |
|
|
`ID` int(10) unsigned NOT NULL auto_increment, |
473 |
|
|
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
474 |
|
|
`EV_ROOT` int(10) unsigned NOT NULL default '0', |
475 |
|
|
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
476 |
|
|
`TO_TIME` int(10) unsigned NOT NULL default '0', |
477 |
|
|
`OBT` int(10) unsigned NOT NULL default '0', |
478 |
|
|
`PKT` int(10) unsigned NOT NULL default '0', |
479 |
|
|
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
480 |
|
|
PRIMARY KEY (`ID`), |
481 |
|
|
KEY `ID_ROOT_index` (`ID_ROOT_L0`), |
482 |
|
|
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`) |
483 |
|
|
) ; |
484 |
|
|
|
485 |
|
|
|
486 |
|
|
drop table if exists dbname.ROOT_TABLE ; |
487 |
|
|
|
488 |
|
|
CREATE TABLE `dbname`.`ROOT_TABLE` ( |
489 |
|
|
`ID_N` int unsigned NOT NULL auto_increment COMMENT 'It is the internal table ID (SERIAL)', |
490 |
|
|
`FOLDER_NAME` varchar(255) default '.' COMMENT 'It is the folder containing the ROOT files', |
491 |
|
|
`FILE_NAME` varchar(255) NOT NULL default 'yoda_nnnnn_mmm_ppp_0' COMMENT 'It is the ROOT filename.', |
492 |
|
|
`PKT_NUMBER_INIT` int unsigned NOT NULL default '0' COMMENT 'The counter value of the first packet ', |
493 |
|
|
`PKT_NUMBER_FINAL` int unsigned NOT NULL default '0' COMMENT 'The counter value of the last packet ', |
494 |
|
|
`PKT_OBT_INIT` int unsigned NOT NULL default '0' COMMENT 'The obt value of the first packet (ms)', |
495 |
|
|
`PKT_OBT_FINAL` int unsigned NOT NULL default '0' COMMENT 'The obt value of the last packet (ms)', |
496 |
|
|
`OBT_TIME_SYNC` int unsigned default '0' COMMENT 'The TIMESYNC used to compute the real time (s)', |
497 |
|
|
`LAST_TIME_SYNC_INFO` int unsigned default '0' COMMENT 'The LAST SYNC used to compute the real time (s)', |
498 |
|
|
`REAL_TIME_INIT` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time of the first packet (s)', |
499 |
|
|
`REAL_TIME_LAST` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time of the last packet (s)', |
500 |
|
|
`BOOT_NUMBER` int unsigned default '0' COMMENT 'The Boot Number', |
501 |
|
|
`TIME_OFFSET` int unsigned default '0' COMMENT 'The time offset used (s)', |
502 |
|
|
`BAD_PKT` int default '0' COMMENT 'The number of packet that could have problems. Due to the fact that one or more cadres did not pass the vrl check.', |
503 |
|
|
`BAD_PKT_READ` int default '0' COMMENT 'The number of packet that could have problems. In general CRC errors detected in the Packet Reader part', |
504 |
|
|
`BAD_PKT_CALREAD` int default '0' COMMENT 'The number of Calibration packet that could have problems.', |
505 |
|
|
`NUM_PKT_SAVED` int default '0' COMMENT 'The total number of packet saved in the ROOT file', |
506 |
|
|
`INPUT_NAME` varchar(255) default './nnnnmmm.pam' COMMENT 'It is the filename of the input file', |
507 |
|
|
`INSERT_TIME` timestamp default CURRENT_TIMESTAMP, |
508 |
|
|
PRIMARY KEY (`ID_N`) |
509 |
|
|
) |
510 |
|
|
; |
511 |
|
|
|
512 |
|
|
drop table if exists dbname.ROOT_TABLE_BAD ; |
513 |
|
|
CREATE TABLE `dbname`.`ROOT_TABLE_BAD` ( |
514 |
|
|
`ID_N` int unsigned NOT NULL auto_increment COMMENT 'It is the internal table ID', |
515 |
|
|
`FOLDER_NAME` varchar(255) default '.' COMMENT 'It is the folder containing the ROOT files', |
516 |
|
|
`FILE_NAME` varchar(255) NOT NULL default 'yoda_nnnnn_mmm_ppp_0' COMMENT 'It is the ROOT filename.', |
517 |
|
|
`PKT_NUMBER_INIT` int unsigned NOT NULL default '0' COMMENT 'The counter value of the first packet ', |
518 |
|
|
`PKT_NUMBER_FINAL` int unsigned NOT NULL default '0' COMMENT 'The counter value of the last packet ', |
519 |
|
|
`PKT_OBT_INIT` int unsigned NOT NULL default '0' COMMENT 'The obt value of the first packet ', |
520 |
|
|
`PKT_OBT_FINAL` int unsigned NOT NULL default '0' COMMENT 'The obt value of the last packet ', |
521 |
|
|
`OBT_TIME_SYNC` int unsigned default '0' COMMENT 'The TIMESYNC used to compute the real time', |
522 |
|
|
`LAST_TIME_SYNC_INFO` int unsigned default '0' COMMENT 'The LAST SYNC used to compute the real time', |
523 |
|
|
`REAL_TIME_INIT` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time of the first packet', |
524 |
|
|
`REAL_TIME_LAST` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time of the last packet (s)', |
525 |
|
|
`BOOT_NUMBER` int unsigned default '0' COMMENT 'The Boot Number', |
526 |
|
|
`TIME_OFFSET` int unsigned default '0' COMMENT 'The time offset us ed (s)', |
527 |
|
|
`BAD_PKT` int default '0' COMMENT 'The number of packet that could have problems. Due to the fact that one or more cadres did not pass the vrl check.', |
528 |
|
|
`BAD_PKT_READ` int default '0' COMMENT 'The number of packet that could have problems. In general CRC errors detected in the EventReader part', |
529 |
|
|
`BAD_PKT_CALREAD` int default '0' COMMENT 'The number of Calibration packet that could have problems.', |
530 |
|
|
`NUM_PKT_SAVED` int default '0' COMMENT 'The number of packet saved in the ROOT file', |
531 |
|
|
`INPUT_NAME` varchar(255) default './nnnnmmm.pam' COMMENT 'It is the filename of the input file', |
532 |
|
|
`INSERT_TIME` timestamp default CURRENT_TIMESTAMP, |
533 |
|
|
PRIMARY KEY (`ID_N`) |
534 |
|
|
) |
535 |
|
|
; |
536 |
|
|
|
537 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_002_001','2007-01-08 21:00:00',NULL); |
538 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_003_001','2007-01-08 21:00:00',NULL); |
539 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04586_002_001','2007-01-08 21:00:00',NULL); |
540 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04586_003_001','2007-01-08 21:00:00',NULL); |
541 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','07408_003_001','2007-07-08 21:00:00',NULL); |
542 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08591_002_001','2007-10-08 21:00:00',NULL); |
543 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08591_003_001','2007-10-08 21:00:00',NULL); |
544 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08592_004_001','2007-10-08 21:00:00',NULL); |
545 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08592_004_003','2007-10-08 21:00:00',NULL); |
546 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_003_001','2008-03-20 21:00:00',NULL); |
547 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_002_001','2008-03-20 21:00:00',NULL); |
548 |
|
|
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_001_002','2008-03-20 21:00:00',NULL); |
549 |
|
|
|
550 |
|
|
|
551 |
|
|
drop table if exists dbname.ROOT_TABLE_MERGING ; |
552 |
|
|
CREATE TABLE `dbname`.`ROOT_TABLE_MERGING` ( |
553 |
|
|
`ID_N` int unsigned NOT NULL auto_increment COMMENT 'It is the internal table ID', |
554 |
|
|
`ROOT_ID_N` int unsigned NOT NULL COMMENT 'It is the ID of the ROOT file in table ROOT_TABLE', |
555 |
|
|
`PKT_NUMBER_INIT` int unsigned NOT NULL default '0' COMMENT 'The counter value of the first packet ', |
556 |
|
|
`PKT_NUMBER_FINAL` int unsigned NOT NULL default '0' COMMENT 'The counter value of the last packet ', |
557 |
|
|
`PKT_OBT_INIT` int unsigned NOT NULL default '0' COMMENT 'The obt value of the first packet ', |
558 |
|
|
`PKT_OBT_FINAL` int unsigned NOT NULL default '0' COMMENT 'The obt value of the last packet ', |
559 |
|
|
`REAL_TIME_INIT` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time from where I want to start', |
560 |
|
|
`REAL_TIME_LAST` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time when I want to stop using this ROOT file (s)', |
561 |
|
|
`BOOT_NUMBER` int unsigned default '0' COMMENT 'The Boot Number', |
562 |
|
|
`BAD_PKT_PERCENTAGE` double default '0' COMMENT 'The percentage of bad packets', |
563 |
mocchiut |
1.5 |
`GOOD` tinyint(1) unsigned NOT NULL default '1' COMMENT 'The entry must be used if and only if GOOD=1', |
564 |
|
|
`INSERTED_BY` varchar(4) NOT NULL default 'NONE' COMMENT 'The owner of the file', |
565 |
mocchiut |
1.1 |
`INSERT_TIME` timestamp default CURRENT_TIMESTAMP, |
566 |
|
|
PRIMARY KEY (`ID_N`) |
567 |
|
|
) |
568 |
mocchiut |
1.4 |
; |
569 |
mocchiut |
1.1 |
|