/[PAMELA software]/chewbacca/YodaProfiler/docs/PAMELAProductionDB.sql
ViewVC logotype

Annotation of /chewbacca/YodaProfiler/docs/PAMELAProductionDB.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.49 - (hide annotations) (download)
Fri Apr 4 09:03:16 2014 UTC (10 years, 8 months ago) by mocchiut
Branch: MAIN
Changes since 1.48: +1 -0 lines
Rotations table added in the DB

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 mocchiut 1.23 `FROM_ORBIT` int(10) unsigned NOT NULL default '0' COMMENT 'if dwlimit = dworbit the file takes the OLD resurs 0 -- SELECT YEAR(OFFSET_DATE),MONTH(OFFSET_DATE),DAY(OFFSET_DATE),HOUR(OFFSET_DATE),MINUTE(OFFSET_DATE),SECOND(OFFSET_DATE),ID FROM GL_RESURS_OFFSET WHERE FROM_ORBIT< " << dworbit << " AND SPECIAL_FILE="" order by FROM_ORBIT desc limit 1;',
43 mocchiut 1.1 `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 mocchiut 1.11 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','14033_201_001_cln1.pam','2008-12-15 21:00:00',NULL);
73     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','14034_001_001_cln1.pam','2008-12-15 21:00:00',NULL);
74     INSERT INTO GL_RESURS_OFFSET VALUES(0,'14044','','2008-12-15 21:00:00',NULL);
75 mocchiut 1.16 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15441_002_001_cln1.pam','2008-12-15 21:00:00',NULL);
76     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15441_003_001_cln1.pam','2008-12-15 21:00:00',NULL);
77     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15442_002_001_cln1.pam','2008-12-15 21:00:00',NULL);
78     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15442_003_001_cln1.pam','2008-12-15 21:00:00',NULL);
79     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15442_504_001_cln1.pam','2008-12-15 21:00:00',NULL);
80     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15445_002_001_cln1.pam','2008-12-15 21:00:00',NULL);
81     INSERT INTO GL_RESURS_OFFSET VALUES(0,'15430','','2009-03-16 21:00:00',NULL);
82 mocchiut 1.17 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','16760_002_001_cln1.pam','2009-03-16 21:00:00',NULL);
83     INSERT INTO GL_RESURS_OFFSET VALUES(0,'16740','','2009-06-10 21:00:00',NULL);
84 mocchiut 1.18 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18156_072_001_cln1.pam','2009-06-10 21:00:00',NULL);
85     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18157_072_001_cln1.pam','2009-06-10 21:00:00',NULL);
86     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18157_073_001_cln1.pam','2009-06-10 21:00:00',NULL);
87     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18160_122_001_cln1.pam','2009-06-10 21:00:00',NULL);
88     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18160_123_001_cln1.pam','2009-06-10 21:00:00',NULL);
89     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18160_132_001_cln1.pam','2009-06-10 21:00:00',NULL);
90     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18160_133_001_cln1.pam','2009-06-10 21:00:00',NULL);
91     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18160_152_001_cln1.pam','2009-06-10 21:00:00',NULL);
92     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18160_153_001_cln1.pam','2009-06-10 21:00:00',NULL);
93     INSERT INTO GL_RESURS_OFFSET VALUES(0,'18150','','2009-09-09 21:00:00',NULL);
94 mocchiut 1.21 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','19526_072_001_cln1.pam','2009-09-09 21:00:00',NULL);
95     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','19539_073_001_cln1.pam','2009-09-09 21:00:00',NULL);
96     INSERT INTO GL_RESURS_OFFSET VALUES(0,'19525','','2009-12-08 21:00:00',NULL);
97 mocchiut 1.32 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','20829_072_001_cln1.pam','2009-12-08 21:00:00',NULL);
98     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','20829_073_001_cln1.pam','2009-12-08 21:00:00',NULL);
99     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','20829_074_001_cln1.pam','2009-12-08 21:00:00',NULL);
100     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','20829_075_001_cln1.pam','2009-12-08 21:00:00',NULL);
101     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','20829_075_002_cln1.pam','2009-12-08 21:00:00',NULL);
102     INSERT INTO GL_RESURS_OFFSET VALUES(0,'20820','','2010-03-03 21:00:00',NULL);
103 mocchiut 1.42 INSERT INTO GL_RESURS_OFFSET VALUES(0,'22400','','2010-05-30 21:00:00',NULL);
104 mocchiut 1.33 INSERT INTO GL_RESURS_OFFSET VALUES(0,'23600','','2010-08-28 21:00:00',NULL);
105     INSERT INTO GL_RESURS_OFFSET VALUES(0,'24760','','2010-11-15 21:00:00',NULL);
106 mocchiut 1.34 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26089_002_001_cln1.pam','2010-11-15 21:00:00',NULL);
107     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26089_003_001_cln1.pam','2010-11-15 21:00:00',NULL);
108     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26089_074_001_cln1.pam','2010-11-15 21:00:00',NULL);
109     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26089_075_001_cln1.pam','2010-11-15 21:00:00',NULL);
110     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_026_001_cln1.pam','2010-11-15 21:00:00',NULL);
111     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26100_002_001_cln1.pam','2010-11-15 21:00:00',NULL);
112     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26104_074_001_cln1.pam','2010-11-15 21:00:00',NULL);
113     INSERT INTO GL_RESURS_OFFSET VALUES(0,'26080','','2011-02-13 21:00:00',NULL);
114 mocchiut 1.35 INSERT INTO GL_RESURS_OFFSET VALUES(0,'27410','','2011-05-12 21:00:00',NULL);
115     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','27409_071_001_cln1.pam','2011-02-13 21:00:00',NULL);
116     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','27436_004_001_cln1.pam','2011-02-13 21:00:00',NULL);
117     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','27436_005_001_cln1.pam','2011-02-13 21:00:00',NULL);
118     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','27436_006_001_cln1.pam','2011-02-13 21:00:00',NULL);
119 mocchiut 1.37 INSERT INTO GL_RESURS_OFFSET VALUES(0,'28990','','2011-08-24 21:00:00',NULL);
120     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30328_001_001_cln1.pam','2011-11-22 21:00:00',NULL);
121     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_001_001_cln1.pam','2011-11-22 21:00:00',NULL);
122     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_002_001_cln1.pam','2011-11-22 21:00:00',NULL);
123     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_003_001_cln1.pam','2011-11-22 21:00:00',NULL);
124     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_004_001_cln1.pam','2011-11-22 21:00:00',NULL);
125     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_005_001_cln1.pam','2011-11-22 21:00:00',NULL);
126     INSERT INTO GL_RESURS_OFFSET VALUES(0,'30330','','2011-11-22 21:00:00',NULL);
127 mocchiut 1.41 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','31654_001_001_cln1.pam','2012-02-19 21:00:00',NULL);
128 mocchiut 1.38 INSERT INTO GL_RESURS_OFFSET VALUES(0,'31660','','2012-02-19 21:00:00',NULL);
129 mocchiut 1.40 INSERT INTO GL_RESURS_OFFSET VALUES(0,'32950','','2012-05-15 21:00:00',NULL);
130 mocchiut 1.42 INSERT INTO GL_RESURS_OFFSET VALUES(0,'34330','','2012-08-13 21:00:00',NULL);
131     INSERT INTO GL_RESURS_OFFSET VALUES(0,'35600','','2012-11-07 21:00:00',NULL);
132     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_008_001_cln1.pam','2012-08-13 21:00:00',NULL);
133     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_007_001_cln1.pam','2012-08-13 21:00:00',NULL);
134     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_006_001_cln1.pam','2012-08-13 21:00:00',NULL);
135     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_005_001_cln1.pam','2012-08-13 21:00:00',NULL);
136 mocchiut 1.43 INSERT INTO GL_RESURS_OFFSET VALUES(0,'36920','','2013-02-05 21:00:00',NULL);
137     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','36935_005_001_cln1.pam','2012-11-07 21:00:00',NULL);
138     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','36935_006_001_cln1.pam','2012-11-07 21:00:00',NULL);
139     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','36935_077_001_cln1.pam','2012-11-07 21:00:00',NULL);
140 mocchiut 1.46 -- 10RED END
141     -- FOLLOWING LINES TO BE CHECKED AFTER RUNNING CHEWBACCA ON DB TESTING ENV
142     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39611_072_002_cln1.pam','2013-02-05 21:00:00',NULL);
143     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39611_072_003_cln1.pam','2013-02-05 21:00:00',NULL);
144     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39611_072_004_cln1.pam','2013-02-05 21:00:00',NULL);
145     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39611_073_001_cln1.pam','2013-02-05 21:00:00',NULL);
146     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39611_074_001_cln1.pam','2013-02-05 21:00:00',NULL);
147     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39641_075_001_cln1.pam','2013-02-05 21:00:00',NULL);
148     INSERT INTO GL_RESURS_OFFSET VALUES(0,'39594','','2013-08-01 21:00:00',NULL);
149     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39592_051_001_cln1.pam','2013-08-01 21:00:00',NULL);
150     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39593_071_001_cln1.pam','2013-08-01 21:00:00',NULL);
151     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39592_072_001_cln1.pam','2013-08-01 21:00:00',NULL);
152     --
153     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40932_077_001_cln1.pam','2013-08-01 21:00:00',NULL);
154     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40947_075_001_cln1.pam','2013-08-01 21:00:00',NULL);
155     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40947_078_001_cln1.pam','2013-08-01 21:00:00',NULL);
156     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40962_077_001_cln1.pam','2013-08-01 21:00:00',NULL);
157     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40978_077_001_cln1.pam','2013-08-01 21:00:00',NULL);
158     INSERT INTO GL_RESURS_OFFSET VALUES(0,'40931','','2013-10-29 21:00:00',NULL);
159     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40917_071_001_cln1.pam','2013-10-29 21:00:00',NULL);
160     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40930_071_001_cln1.pam','2013-10-29 21:00:00',NULL);
161 mocchiut 1.40
162 mocchiut 1.35
163 mocchiut 1.46 -- CHEWBACCA SPECIAL FILES
164 mocchiut 1.35 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_002_001','2007-01-08 21:00:00',NULL);
165     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_002_002','2007-01-08 21:00:00',NULL);
166     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_003_002','2007-01-08 21:00:00',NULL);
167     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_003_001','2007-01-08 21:00:00',NULL);
168     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04586_002_001','2007-01-08 21:00:00',NULL);
169     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04586_002_002','2007-01-08 21:00:00',NULL);
170     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04586_003_001','2007-01-08 21:00:00',NULL);
171    
172     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08591_002_001','2007-10-08 21:00:00',NULL);
173     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08591_003_002','2007-10-08 21:00:00',NULL);
174     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08591_003_001','2007-10-08 21:00:00',NULL);
175     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08592_004_002','2007-10-08 21:00:00',NULL);
176     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','08592_004_003','2007-10-08 21:00:00',NULL);
177    
178     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_001_002','2008-03-20 21:00:00',NULL);
179     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_001_003','2008-03-20 21:00:00',NULL);
180     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_002_001','2008-03-20 21:00:00',NULL);
181     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_002_002','2008-03-20 21:00:00',NULL);
182     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_003_001','2008-03-20 21:00:00',NULL);
183     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','11310_003_002','2008-03-20 21:00:00',NULL);
184    
185     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','14033_201_001','2008-12-15 21:00:00',NULL);
186     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','14034_001_001','2008-12-15 21:00:00',NULL);
187     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','14044_001_001','2008-12-15 21:00:00',NULL);
188    
189     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15441_002_001','2008-12-15 21:00:00',NULL);
190     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15441_002_002','2008-12-15 21:00:00',NULL);
191     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15441_003_001','2008-12-15 21:00:00',NULL);
192     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15442_002_001','2008-12-15 21:00:00',NULL);
193     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15442_003_001','2008-12-15 21:00:00',NULL);
194     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15442_003_002','2008-12-15 21:00:00',NULL);
195     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15442_504_001','2008-12-15 21:00:00',NULL);
196     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15442_504_002','2008-12-15 21:00:00',NULL);
197     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','15445_002_001','2008-12-15 21:00:00',NULL);
198    
199     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','16760_002_001','2009-03-16 21:00:00',NULL);
200     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','16760_002_002','2009-03-16 21:00:00',NULL);
201     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','16760_002_003','2009-03-16 21:00:00',NULL);
202     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','16760_002_004','2009-03-16 21:00:00',NULL);
203     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','16760_002_005','2009-03-16 21:00:00',NULL);
204     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','16760_002_006','2009-03-16 21:00:00',NULL);
205     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','16760_002_007','2009-03-16 21:00:00',NULL);
206     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','16760_002_008','2009-03-16 21:00:00',NULL);
207    
208     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18156_072_001','2009-06-10 21:00:00',NULL);
209     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18156_072_002','2009-06-10 21:00:00',NULL);
210     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18157_072_001','2009-06-10 21:00:00',NULL);
211     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18157_072_002','2009-06-10 21:00:00',NULL);
212     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18157_073_001','2009-06-10 21:00:00',NULL);
213     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18157_073_002','2009-06-10 21:00:00',NULL);
214     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18160_032_001','2009-06-10 21:00:00',NULL);
215     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18160_032_002','2009-06-10 21:00:00',NULL);
216     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18160_033_001','2009-06-10 21:00:00',NULL);
217     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','18160_033_002','2009-06-10 21:00:00',NULL);
218    
219     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','19526_072_001','2009-09-09 21:00:00',NULL);
220     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','19526_072_002','2009-09-09 21:00:00',NULL);
221     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','19539_073_001','2009-09-09 21:00:00',NULL);
222     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','19539_073_002','2009-09-09 21:00:00',NULL);
223    
224     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','20829_072_001','2009-12-08 21:00:00',NULL);
225 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','20829_072_002','2009-12-08 21:00:00',NULL);
226 mocchiut 1.35 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','20829_073_001','2009-12-08 21:00:00',NULL);
227 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','20829_073_002','2009-12-08 21:00:00',NULL);
228     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','20829_074_002','2009-12-08 21:00:00',NULL);
229 mocchiut 1.35 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','20829_075_001','2009-12-08 21:00:00',NULL);
230 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_001','2010-11-15 21:00:00',NULL);
231     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_002','2010-11-15 21:00:00',NULL);
232     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_003','2010-11-15 21:00:00',NULL);
233     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_004','2010-11-15 21:00:00',NULL);
234     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_005','2010-11-15 21:00:00',NULL);
235     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_006','2010-11-15 21:00:00',NULL);
236     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_007','2010-11-15 21:00:00',NULL);
237     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_008','2010-11-15 21:00:00',NULL);
238     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_009','2010-11-15 21:00:00',NULL);
239     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_010','2010-11-15 21:00:00',NULL);
240     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_011','2010-11-15 21:00:00',NULL);
241     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_012','2010-11-15 21:00:00',NULL);
242     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_025_013','2010-11-15 21:00:00',NULL);
243 mocchiut 1.35 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_026_001','2010-11-15 21:00:00',NULL);
244 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_026_002','2010-11-15 21:00:00',NULL);
245     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_026_003','2010-11-15 21:00:00',NULL);
246     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_026_004','2010-11-15 21:00:00',NULL);
247     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_026_005','2010-11-15 21:00:00',NULL);
248     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_026_006','2010-11-15 21:00:00',NULL);
249     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26099_026_007','2010-11-15 21:00:00',NULL);
250 mocchiut 1.35 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26100_002_001','2010-11-15 21:00:00',NULL);
251 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26100_002_002','2010-11-15 21:00:00',NULL);
252 mocchiut 1.35 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26104_074_001','2010-11-15 21:00:00',NULL);
253 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26104_074_002','2010-11-15 21:00:00',NULL);
254     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26089_075_002','2010-11-15 21:00:00',NULL);
255     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26089_075_001','2010-11-15 21:00:00',NULL);
256     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26089_074_002','2010-11-15 21:00:00',NULL);
257     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26089_074_001','2010-11-15 21:00:00',NULL);
258     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26089_003_001','2010-11-15 21:00:00',NULL);
259     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','26089_002_002','2010-11-15 21:00:00',NULL);
260     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','27436_006_001','2011-02-13 21:00:00',NULL);
261     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','27436_005_002','2011-02-13 21:00:00',NULL);
262 mocchiut 1.35 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','27436_004_001','2011-02-13 21:00:00',NULL);
263 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','27409_071_001','2011-05-12 21:00:00',NULL);
264 mocchiut 1.37 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30328_001_001','2011-11-22 21:00:00',NULL);
265 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30328_001_002','2011-11-22 21:00:00',NULL);
266 mocchiut 1.37 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_001_001','2011-11-22 21:00:00',NULL);
267 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_001_002','2011-11-22 21:00:00',NULL);
268 mocchiut 1.37 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_002_001','2011-11-22 21:00:00',NULL);
269 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_002_002','2011-11-22 21:00:00',NULL);
270 mocchiut 1.37 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_003_001','2011-11-22 21:00:00',NULL);
271 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_003_002','2011-11-22 21:00:00',NULL);
272 mocchiut 1.37 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_004_001','2011-11-22 21:00:00',NULL);
273 mocchiut 1.39 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_004_002','2011-11-22 21:00:00',NULL);
274 mocchiut 1.37 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','30329_005_001','2011-11-22 21:00:00',NULL);
275 mocchiut 1.41 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','31654_001_001','2012-02-19 21:00:00',NULL);
276 mocchiut 1.42 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_008_001','2012-08-13 21:00:00',NULL);
277 mocchiut 1.44 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_008_002','2012-08-13 21:00:00',NULL);
278 mocchiut 1.42 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_007_001','2012-08-13 21:00:00',NULL);
279 mocchiut 1.44 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_007_002','2012-08-13 21:00:00',NULL);
280 mocchiut 1.42 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_006_001','2012-08-13 21:00:00',NULL);
281 mocchiut 1.44 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_006_002','2012-08-13 21:00:00',NULL);
282 mocchiut 1.42 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_005_001','2012-08-13 21:00:00',NULL);
283 mocchiut 1.44 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','35612_005_002','2012-08-13 21:00:00',NULL);
284 mocchiut 1.43 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','36935_005_001','2012-11-07 21:00:00',NULL);
285 mocchiut 1.44 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','36935_005_002','2012-11-07 21:00:00',NULL);
286 mocchiut 1.43 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','36935_006_001','2012-11-07 21:00:00',NULL);
287 mocchiut 1.44 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','36935_006_002','2012-11-07 21:00:00',NULL);
288 mocchiut 1.43 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','36935_077_001','2012-11-07 21:00:00',NULL);
289 mocchiut 1.44 INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','36935_077_002','2012-11-07 21:00:00',NULL);
290 mocchiut 1.46 -- 10RED END
291     -- following to be checked
292     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39611_072_002','2013-02-05 21:00:00',NULL);
293     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39611_072_003','2013-02-05 21:00:00',NULL);
294     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39611_072_004','2013-02-05 21:00:00',NULL);
295     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39611_073_001','2013-02-05 21:00:00',NULL);
296     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39611_074_001','2013-02-05 21:00:00',NULL);
297     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39641_075_001','2013-02-05 21:00:00',NULL);
298     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39592_051_001','2013-08-01 21:00:00',NULL);
299     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39593_071_001','2013-08-01 21:00:00',NULL);
300     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','39592_072_001','2013-08-01 21:00:00',NULL);
301     --
302     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40932_077_001','2013-08-01 21:00:00',NULL);
303     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40947_075_001','2013-08-01 21:00:00',NULL);
304     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40947_078_001','2013-08-01 21:00:00',NULL);
305     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40962_077_001','2013-08-01 21:00:00',NULL);
306     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40978_077_001','2013-08-01 21:00:00',NULL);
307     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40917_071_001','2013-10-29 21:00:00',NULL);
308     INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','40930_071_001','2013-10-29 21:00:00',NULL);
309 mocchiut 1.42
310 mocchiut 1.1 CREATE TABLE `GL_TIMESYNC` (
311     `ID` int(10) unsigned NOT NULL auto_increment,
312     `ID_RAW` int(10) unsigned NOT NULL default '0',
313     `ID_RESURS_OFFSET` int(10) unsigned NOT NULL default '0',
314     `OBT0` int(10) unsigned NOT NULL default '0',
315     `TIMESYNC` int(10) unsigned NOT NULL default '0',
316     `TYPE` smallint(5) unsigned NOT NULL default '0',
317     PRIMARY KEY (`ID`),
318     KEY `ID_RAW_index` (`ID_RAW`),
319     KEY `TYPE_index` (`TYPE`)
320     ) ;
321    
322     CREATE TABLE `GL_PARAM` (
323     `ID` int(10) unsigned NOT NULL auto_increment,
324     `PATH` varchar(255) NOT NULL default '',
325     `NAME` varchar(255) NOT NULL default '',
326     `FROM_TIME` int(10) unsigned NOT NULL default '0',
327     `TO_TIME` int(10) unsigned NOT NULL default '0',
328     `TYPE` smallint(5) unsigned NOT NULL default '0',
329     `DESCR` varchar(255) NOT NULL default '',
330     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
331     PRIMARY KEY (`ID`),
332     KEY `PATH_index` (`PATH`),
333     KEY `NAME_index` (`NAME`),
334     KEY `TYPE_index` (`TYPE`),
335     KEY `DESCR_index` (`DESCR`)
336     ) ;
337    
338     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","field_param-0/",0,0,1,"field",NULL);
339     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mip_param-0/",0,0,2,"trk mip",NULL);
340     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","charge_param-1/",0,0,3,"trk charge",NULL);
341     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","eta_param-2/",0,0,4,"trk pfa",NULL);
342 pam-fi 1.6 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","align_param-080805-GL1from7/",0,0,5,"trk alignment",NULL);
343 pam-fi 1.10 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-id0/",1, 1150876185,6,"trk mask",NULL);
344     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID0/",1150876185,1152619600,6,"trk mask",NULL);
345     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID1/",1152619600,1153273957,6,"trk mask",NULL);
346     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID2/",1153273957,1153307807,6,"trk mask",NULL);
347     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID3/",1153307807,1153439464,6,"trk mask",NULL);
348     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID4/",1153439464,1153447067,6,"trk mask",NULL);
349     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID3/",1153447067,1154385336,6,"trk mask",NULL);
350     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID5/",1154385336,1154390143,6,"trk mask",NULL);
351     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID6/",1154390143,1154746486,6,"trk mask",NULL);
352     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID7/",1154746486,1155728075,6,"trk mask",NULL);
353     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID8/",1155728075,1155987238,6,"trk mask",NULL);
354     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID9/",1155987238,1156179269,6,"trk mask",NULL);
355     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID10/",1156179269,1156184911,6,"trk mask",NULL);
356     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID11/",1156184911,1156438857,6,"trk mask",NULL);
357     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID12/",1156438857,1156591164,6,"trk mask",NULL);
358     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID13/",1156591164,1156833624,6,"trk mask",NULL);
359     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID14/",1156833624,1156839268,6,"trk mask",NULL);
360     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID13/",1156839268,1157165000,6,"trk mask",NULL);
361     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID15/",1157165000,1158610519,6,"trk mask",NULL);
362     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID16/",1158610519,1158659245,6,"trk mask",NULL);
363     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID17/",1158659245,1158661285,6,"trk mask",NULL);
364     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID18/",1158661285,1158666824,6,"trk mask",NULL);
365     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID16/",1158666824,1159135000,6,"trk mask",NULL);
366     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID19/",1159135000,1160246000,6,"trk mask",NULL);
367     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID20/",1160246000,1160454893,6,"trk mask",NULL);
368     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID21/",1160454893,1160578979,6,"trk mask",NULL);
369     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID22/",1160578979,1161554748,6,"trk mask",NULL);
370     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID20/",1161554748,1161605509,6,"trk mask",NULL);
371     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID23/",1161605509,1161639348,6,"trk mask",NULL);
372     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID20/",1161639348,1161955293,6,"trk mask",NULL);
373     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID24/",1161955293,1161994774,6,"trk mask",NULL);
374     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID25/",1161994774,1162000413,6,"trk mask",NULL);
375     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID24/",1162000413,1162022874,6,"trk mask",NULL);
376     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID26/",1162022874,1162232000,6,"trk mask",NULL);
377     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID27/",1162232000,1162338713,6,"trk mask",NULL);
378     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID28/",1162338713,1162434592,6,"trk mask",NULL);
379     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID29/",1162434592,1162550280,6,"trk mask",NULL);
380     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID30/",1162550280,1162682748,6,"trk mask",NULL);
381     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID29/",1162682748,1162987298,6,"trk mask",NULL);
382     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID31/",1162987298,1163184789,6,"trk mask",NULL);
383     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID24/",1163184789,1163280464,6,"trk mask",NULL);
384     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID31/",1163280464,1163387718,6,"trk mask",NULL);
385     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID32/",1163387718,1163568187,6,"trk mask",NULL);
386     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID33/",1163568187,1164585000,6,"trk mask",NULL);
387     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID34/",1164585000,1164622760,6,"trk mask",NULL);
388     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID35/",1164622760,1164791492,6,"trk mask",NULL);
389     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID36/",1164791492,1165011869,6,"trk mask",NULL);
390     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID37/",1165011869,1165137732,6,"trk mask",NULL);
391     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID38/",1165137732,1165141973,6,"trk mask",NULL);
392     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID39/",1165141973,1165152773,6,"trk mask",NULL);
393     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID40/",1165152773,1165158487,6,"trk mask",NULL);
394     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID38/",1165158487,1165840826,6,"trk mask",NULL);
395     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID41/",1165840826,1165950000,6,"trk mask",NULL);
396     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID38/",1165950000,1166308856,6,"trk mask",NULL);
397     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID42/",1166308856,1166703576,6,"trk mask",NULL);
398     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID43/",1166703576,1166815000,6,"trk mask",NULL);
399     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID44/",1166815000,1166912110,6,"trk mask",NULL);
400     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID45/",1166912110,1166934766,6,"trk mask",NULL);
401     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID44/",1166934766,1166951682,6,"trk mask",NULL);
402     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID45/",1166951682,1166957219,6,"trk mask",NULL);
403     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID44/",1166957219,1167053100,6,"trk mask",NULL);
404     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID45/",1167053100,1167058739,6,"trk mask",NULL);
405     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID44/",1167058739,1167075633,6,"trk mask",NULL);
406     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID46/",1167075633,1167081271,6,"trk mask",NULL);
407     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID47/",1167081271,1167109565,6,"trk mask",NULL);
408     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID46/",1167109565,1167115205,6,"trk mask",NULL);
409     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID47/",1167115205,1167126481,6,"trk mask",NULL);
410     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID46/",1167126481,1167137661,6,"trk mask",NULL);
411     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID47/",1167137661,1167154577,6,"trk mask",NULL);
412     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID46/",1167154577,1167234541,6,"trk mask",NULL);
413     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID48/",1167234541,1167256073,6,"trk mask",NULL);
414     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID49/",1167256073,1167335114,6,"trk mask",NULL);
415     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID50/",1167335114,1167728734,6,"trk mask",NULL);
416     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID51/",1167728734,1167730650,6,"trk mask",NULL);
417     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID50/",1167730650,1167735462,6,"trk mask",NULL);
418     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID52/",1167735462,1168051125,6,"trk mask",NULL);
419     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID53/",1168051125,1168118888,6,"trk mask",NULL);
420     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID54/",1168118888,1168124527,6,"trk mask",NULL);
421     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID55/",1168124527,1168502207,6,"trk mask",NULL);
422     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID56/",1168502207,1168609440,6,"trk mask",NULL);
423     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID57/",1168609440,1168660085,6,"trk mask",NULL);
424     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID58/",1168660085,1168727846,6,"trk mask",NULL);
425     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID59/",1168727846,1168795408,6,"trk mask",NULL);
426     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID60/",1168795408,1168874446,6,"trk mask",NULL);
427     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID61/",1168874446,1168891360,6,"trk mask",NULL);
428     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID62/",1168891360,1168896898,6,"trk mask",NULL);
429     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID61/",1168896898,1168959022,6,"trk mask",NULL);
430     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID63/",1168959022,1168970298,6,"trk mask",NULL);
431     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID64/",1168970298,1169060513,6,"trk mask",NULL);
432     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID65/",1169060513,1169534050,6,"trk mask",NULL);
433     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID66/",1169534050,1169861044,6,"trk mask",NULL);
434     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID67/",1169861044,1169996460,6,"trk mask",NULL);
435     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID68/",1169996460,1170019014,6,"trk mask",NULL);
436     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID69/",1170019014,1170126038,6,"trk mask",NULL);
437     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID70/",1170126038,1170408039,6,"trk mask",NULL);
438     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID71/",1170408039,1170419316,6,"trk mask",NULL);
439     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID72/",1170419316,1170892804,6,"trk mask",NULL);
440     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID73/",1170892804,1170937907,6,"trk mask",NULL);
441     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID74/",1170937907,1171265004,6,"trk mask",NULL);
442     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID75/",1171265004,1171366385,6,"trk mask",NULL);
443     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID76/",1171366385,1171890799,6,"trk mask",NULL);
444     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID77/",1171890799,1171997816,6,"trk mask",NULL);
445     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID78/",1171997816,1172009092,6,"trk mask",NULL);
446     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID77/",1172009092,1172088119,6,"trk mask",NULL);
447     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID78/",1172088119,1172093656,6,"trk mask",NULL);
448     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID79/",1172093656,1172217685,6,"trk mask",NULL);
449     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID80/",1172217685,1172257150,6,"trk mask",NULL);
450     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID81/",1172257150,1172268426,6,"trk mask",NULL);
451     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID82/",1172268426,1172291075,6,"trk mask",NULL);
452     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID83/",1172291075,1172403831,6,"trk mask",NULL);
453     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID84/",1172403831,1172482657,6,"trk mask",NULL);
454     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID85/",1172482657,1172561584,6,"trk mask",NULL);
455     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID86/",1172561584,1172668700,6,"trk mask",NULL);
456     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID87/",1172668700,1172674438,6,"trk mask",NULL);
457     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID88/",1172674438,1172809741,6,"trk mask",NULL);
458     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID87/",1172809741,1172821015,6,"trk mask",NULL);
459     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID89/",1172821015,1172860479,6,"trk mask",NULL);
460     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID90/",1172860479,1172995781,6,"trk mask",NULL);
461     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID91/",1172995781,1173164908,6,"trk mask",NULL);
462     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID92/",1173164908,1173305830,6,"trk mask",NULL);
463     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID93/",1173305830,1173700366,6,"trk mask",NULL);
464     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID94/",1173700366,1173739829,6,"trk mask",NULL);
465     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID95/",1173739829,1173754000,6,"trk mask",NULL);
466     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID96/",1173754000,1174241650,6,"trk mask",NULL);
467     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID97/",1174241650,1174280000,6,"trk mask",NULL);
468     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID98/",1174280000,1174309299,6,"trk mask",NULL);
469     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID97/",1174309299,1174399494,6,"trk mask",NULL);
470     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID96/",1174399494,1174489791,6,"trk mask",NULL);
471     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID99/",1174489791,1174574249,6,"trk mask",NULL);
472     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID100/",1174574249,1174613709,6,"trk mask",NULL);
473     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID101/",1174613709,1174675617,6,"trk mask",NULL);
474     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID102/",1174675617,1174799735,6,"trk mask",NULL);
475     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID103/",1174799735,1175732000,6,"trk mask",NULL);
476     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID104/",1175732000,1175741113,6,"trk mask",NULL);
477     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID105/",1175741113,1175746750,6,"trk mask",NULL);
478     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID106/",1175746750,1176141323,6,"trk mask",NULL);
479     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID102/",1176141323,1177110000,6,"trk mask",NULL);
480     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID107/",1177110000,1177477096,6,"trk mask",NULL);
481     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID108/",1177477096,1177634000,6,"trk mask",NULL);
482     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID109/",1177634000,1177883026,6,"trk mask",NULL);
483     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID108/",1177883026,1177977924,6,"trk mask",NULL);
484     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID102/",1177977924,1178012562,6,"trk mask",NULL);
485     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID101/",1178012562,1178159210,6,"trk mask",NULL);
486     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID110/",1178159210,1178204299,6,"trk mask",NULL);
487     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID111/",1178204299,1178677657,6,"trk mask",NULL);
488     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID110/",1178677657,1178767838,6,"trk mask",NULL);
489     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID112/",1178767838,1178875029,6,"trk mask",NULL);
490     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID113/",1178875029,1178942564,6,"trk mask",NULL);
491     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID114/",1178942564,1179179291,6,"trk mask",NULL);
492     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID110/",1179179291,1179325936,6,"trk mask",NULL);
493     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID115/",1179325936,1179511934,6,"trk mask",NULL);
494     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID116/",1179511934,1180143195,6,"trk mask",NULL);
495     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID117/",1180143195,1180154367,6,"trk mask",NULL);
496     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID118/",1180154367,1180160105,6,"trk mask",NULL);
497     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID117/",1180160105,1180537730,6,"trk mask",NULL);
498     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID119/",1180537730,1180734994,6,"trk mask",NULL);
499     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID120/",1180734994,1180746267,6,"trk mask",NULL);
500     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID119/",1180746267,1180904079,6,"trk mask",NULL);
501     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID121/",1180904079,1181022438,6,"trk mask",NULL);
502     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID122/",1181022438,1181033709,6,"trk mask",NULL);
503     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID121/",1181033709,1181264790,6,"trk mask",NULL);
504     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID122/",1181264790,1181315515,6,"trk mask",NULL);
505     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID121/",1181315515,1181326687,6,"trk mask",NULL);
506     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID123/",1181326687,1181349331,6,"trk mask",NULL);
507     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID124/",1181349331,1181411329,6,"trk mask",NULL);
508     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID125/",1181411329,1181416964,6,"trk mask",NULL);
509     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID124/",1181416964,1181422599,6,"trk mask",NULL);
510     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID125/",1181422599,1181445044,6,"trk mask",NULL);
511     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID124/",1181445044,1181462053,6,"trk mask",NULL);
512     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID123/",1181462053,1181484599,6,"trk mask",NULL);
513     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID124/",1181484599,1181620531,6,"trk mask",NULL);
514     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID125/",1181620531,1181625399,6,"trk mask",NULL);
515     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID124/",1181625399,1181681759,6,"trk mask",NULL);
516     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID125/",1181681759,1181715576,6,"trk mask",NULL);
517     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID124/",1181715576,1181839668,6,"trk mask",NULL);
518     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID125/",1181839668,1182902310,6,"trk mask",NULL);
519     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID126/",1182902310,1182933051,6,"trk mask",NULL);
520     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID127/",1182933051,1182949959,6,"trk mask",NULL);
521     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID128/",1182949959,1183034397,6,"trk mask",NULL);
522     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID129/",1183034397,1183389563,6,"trk mask",NULL);
523     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID130/",1183389563,1183406472,6,"trk mask",NULL);
524     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID131/",1183406472,1183474101,6,"trk mask",NULL);
525     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID130/",1183474101,1183780000,6,"trk mask",NULL);
526     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID132/",1183780000,1183784078,6,"trk mask",NULL);
527     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID133/",1183784078,1183795351,6,"trk mask",NULL);
528     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID132/",1183795351,1183834700,6,"trk mask",NULL);
529     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID130/",1183834700,1184009516,6,"trk mask",NULL);
530     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID134/",1184009516,1184026424,6,"trk mask",NULL);
531     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID135/",1184026424,1184032059,6,"trk mask",NULL);
532     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID134/",1184032059,1184657543,6,"trk mask",NULL);
533     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID130/",1184657543,1185460000,6,"trk mask",NULL);
534     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID136/",1185460000,1185829897,6,"trk mask",NULL);
535     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID137/",1185829897,1185874903,6,"trk mask",NULL);
536     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID138/",1185874903,1185926530,6,"trk mask",NULL);
537     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID139/",1185926530,1186049691,6,"trk mask",NULL);
538     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID140/",1186049691,1187216272,6,"trk mask",NULL);
539     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID139/",1187216272,1187221908,6,"trk mask",NULL);
540     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID141/",1187221908,1187695189,6,"trk mask",NULL);
541     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID142/",1187695189,1187892528,6,"trk mask",NULL);
542     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID143/",1187892528,1187942554,6,"trk mask",NULL);
543     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID144/",1187942554,1188106675,6,"trk mask",NULL);
544     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID145/",1188106675,1188117846,6,"trk mask",NULL);
545     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID146/",1188117846,1188247457,6,"trk mask",NULL);
546     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID147/",1188247457,1188292642,6,"trk mask",NULL);
547     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID148/",1188292642,1188315181,6,"trk mask",NULL);
548     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID149/",1188315181,1188422151,6,"trk mask",NULL);
549     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID150/",1188422151,1188433423,6,"trk mask",NULL);
550     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID151/",1188433423,1188605269,6,"trk mask",NULL);
551     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID152/",1188605269,1188827890,6,"trk mask",NULL);
552     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID153/",1188827890,1189188641,6,"trk mask",NULL);
553     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID154/",1189188641,1189273170,6,"trk mask",NULL);
554     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID155/",1189273170,1189335155,6,"trk mask",NULL);
555     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID156/",1189335155,1189498572,6,"trk mask",NULL);
556     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID157/",1189498572,1189510000,6,"trk mask",NULL);
557     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID158/",1189510000,1189532383,6,"trk mask",NULL);
558     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID159/",1189532383,1189583101,6,"trk mask",NULL);
559     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID160/",1189583101,1189616912,6,"trk mask",NULL);
560     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID159/",1189616912,1189639372,6,"trk mask",NULL);
561     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID161/",1189639372,1189892950,6,"trk mask",NULL);
562     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID162/",1189892950,1190135238,6,"trk mask",NULL);
563     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID163/",1190135238,1190676197,6,"trk mask",NULL);
564     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID164/",1190676197,1190721379,6,"trk mask",NULL);
565     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID163/",1190721379,1190760823,6,"trk mask",NULL);
566     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID164/",1190760823,1190850882,6,"trk mask",NULL);
567     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID165/",1190850882,1190969216,6,"trk mask",NULL);
568     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID164/",1190969216,1191160802,6,"trk mask",NULL);
569     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID163/",1191160802,1191205882,6,"trk mask",NULL);
570     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID166/",1191205882,1191307310,6,"trk mask",NULL);
571     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID167/",1191307310,1191955315,6,"trk mask",NULL);
572     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID168/",1191955315,1192287786,6,"trk mask",NULL);
573     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID167/",1192287786,1193285094,6,"trk mask",NULL);
574     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID169/",1193285094,1193583719,6,"trk mask",NULL);
575     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID170/",1193583719,1193611891,6,"trk mask",NULL);
576     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID171/",1193611891,1193837267,6,"trk mask",NULL);
577     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID170/",1193837267,1193875588,6,"trk mask",NULL);
578     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID172/",1193875588,1193882442,6,"trk mask",NULL);
579     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID173/",1193882442,1194062742,6,"trk mask",NULL);
580     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID174/",1194062742,1194090814,6,"trk mask",NULL);
581     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID173/",1194090814,1194254208,6,"trk mask",NULL);
582     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID166/",1194254208,1194259943,6,"trk mask",NULL);
583     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID167/",1194259943,1194648710,6,"trk mask",NULL);
584     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID175/",1194648710,1195031838,6,"trk mask",NULL);
585     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID167/",1195031838,1195212133,6,"trk mask",NULL);
586     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID176/",1195212133,1195437399,6,"trk mask",NULL);
587     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID167/",1195437399,1195945000,6,"trk mask",NULL);
588     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID177/",1195945000,1196090956,6,"trk mask",NULL);
589     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID178/",1196090956,1196243076,6,"trk mask",NULL);
590     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID179/",1196243076,1196260078,6,"trk mask",NULL);
591     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID180/",1196260078,1196305050,6,"trk mask",NULL);
592     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID181/",1196305050,1196383927,6,"trk mask",NULL);
593     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID182/",1196383927,1196688264,6,"trk mask",NULL);
594     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID183/",1196688264,1196902358,6,"trk mask",NULL);
595     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID184/",1196902358,1196941796,6,"trk mask",NULL);
596     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID185/",1196941796,1198276949,6,"trk mask",NULL);
597     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID186/",1198276949,1198282684,6,"trk mask",NULL);
598     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID185/",1198282684,1198423431,6,"trk mask",NULL);
599     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID187/",1198423431,1198462967,6,"trk mask",NULL);
600     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID185/",1198462967,1198694001,6,"trk mask",NULL);
601     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID187/",1198694001,1198958741,6,"trk mask",NULL);
602     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID188/",1198958741,1199550280,6,"trk mask",NULL);
603     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID187/",1199550280,1199612249,6,"trk mask",NULL);
604     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID189/",1199612249,1199871295,6,"trk mask",NULL);
605     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID190/",1199871295,1200048000,6,"trk mask",NULL);
606     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID189/",1200048000,1200070000,6,"trk mask",NULL);
607     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID187/",1200070000,1200367144,6,"trk mask",NULL);
608     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID188/",1200367144,1200860000,6,"trk mask",NULL);
609     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID187/",1200860000,1201544421,6,"trk mask",NULL);
610     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID191/",1201544421,1201769754,6,"trk mask",NULL);
611     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID192/",1201769754,1201786753,6,"trk mask",NULL);
612     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID193/",1201786753,1201978287,6,"trk mask",NULL);
613     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID194/",1201978287,1202040000,6,"trk mask",NULL);
614     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID195/",1202040000,1202062786,6,"trk mask",NULL);
615     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID194/",1202062786,1202107850,6,"trk mask",NULL);
616     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID196/",1202107850,1202141651,6,"trk mask",NULL);
617     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID197/",1202141651,1202214782,6,"trk mask",NULL);
618     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID198/",1202214782,1202502178,6,"trk mask",NULL);
619     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID196/",1202502178,1202868235,6,"trk mask",NULL);
620     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID199/",1202868235,1203054231,6,"trk mask",NULL);
621     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID200/",1203054231,1203127758,6,"trk mask",NULL);
622     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID201/",1203127758,1203285187,6,"trk mask",NULL);
623     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID202/",1203285187,1203470979,6,"trk mask",NULL);
624     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID203/",1203470979,1203600640,6,"trk mask",NULL);
625     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID204/",1203600640,1203713302,6,"trk mask",NULL);
626     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID201/",1203713302,1206326783,6,"trk mask",NULL);
627     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID205/",1206326783,1206383107,6,"trk mask",NULL);
628     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID206/",1206383107,1206563444,6,"trk mask",NULL);
629     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-ID207/",1206563444,1206579876,6,"trk mask",NULL);
630     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-1/", 1206579876,4294967295,6,"trk mask",NULL);
631 mocchiut 1.1 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","default_calib/",0,0,7,"default calibration",NULL);
632     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);
633     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIP.dat",1,1,101,"Calorimeter ADC to MIP from ground data",NULL);
634     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIPfc.dat",2,4294967295,101,"Calorimeter ADC to MIP from flight, relativistic particles",NULL);
635 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);
636 pizzolot 1.20 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_adc2mip_special1.dat",1172976488,1190000000,110,"Calorimeter ADC to MIP from flight, special cases",NULL);
637 mocchiut 1.47 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_adc2mip_special2.dat",1190000000,1345420800,110,"Calorimeter ADC to MIP from flight, special cases",NULL);
638     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_adc2mip_special3.dat",1345420801,4294967295,110,"Calorimeter ADC to MIP from flight, special cases",NULL);
639 mocchiut 1.1 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign.dat",1,1,102,"Calorimeter alignement",NULL);
640     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flight.dat",1,1,102,"Calorimeter alignement with flight data",NULL);
641     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flightEMS.dat",1,1,102,"Calorimeter alignement with flight data EM showers",NULL);
642     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);
643 mocchiut 1.3 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloBadMask.dat",1,1,103,"Calorimeter bad strip offline mask",NULL);
644     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloBadMask18Xgood.dat",2,4294967295,103,"Calorimeter bad strip offline mask",NULL);
645 mocchiut 1.47 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloDefaultCalib.root",1,1345420800,104,"Calorimeter default calibration",NULL);
646     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloDefaultCalib1.root",1345420801,4294967295,104,"Calorimeter default calibration",NULL);
647 mocchiut 1.1 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);
648     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);
649 mocchiut 1.47 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_crosstalk_param_pre_neighbour.dat",1,1345420800,106," Calorimeter pre-amply neighbour correction table",NULL);
650     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_crosstalk_param_pre_neighbour1.dat",1345420801,4294967295,106," Calorimeter pre-amply neighbour correction table",NULL);
651 mocchiut 1.3 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);
652     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_crosstalk_param_si0.dat",1,1167619688,108,"Calorimeter cross-talk silicon effect",NULL);
653     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_crosstalk_param_si1.dat",1167619689,4294967295,108,"Calorimeter cross-talk silicon effect",NULL);
654 mocchiut 1.47 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_maxrms_plane0.dat",1,1345420800,109,"Calorimeter 4*rms threshold for each plane (default 26)",NULL);
655     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_maxrms_plane1.dat",1345420801,4294967295,109,"Calorimeter 4*rms threshold for each plane (default 26)",NULL);
656 mocchiut 1.3 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);
657 mocchiut 1.47 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_emin_strip1.dat",1167619689,1345420800,111,"Calorimeter Emin threshold for each strip (default 0.7)",NULL);
658     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","calo_emin_strip2.dat",1345420801,4294967295,111,"Calorimeter Emin threshold for each strip (default 0.7), new values for 18X",NULL);
659 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);
660     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);
661     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_3.rz",1154375001,1155850000,201," 07-31 - 08-17 - C C standard",NULL);
662     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);
663 mocchiut 1.30 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_5.rz",1156280001,1158700000,201," 08-22 - 09-18 S115B failure E E standard",NULL);
664     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_5B.rz",1158700001,1165400000,201," 09-18 - 12-06 5B 5B standard",NULL);
665 mocchiut 1.1 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);
666     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);
667     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);
668     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);
669     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);
670     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);
671     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);
672     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_13.rz",1175000001,1176120000,201," 03-27 - 04-09 L L standard",NULL);
673     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);
674     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);
675     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);
676     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_17.rz",1181322001,1182100000,201," 06-08 - 06-17 P P standard",NULL);
677     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);
678     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_19.rz",1183030001,1184000000,201," 06-28 - 07-09 R R standard",NULL);
679     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);
680     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_21.rz",1184570001,1185090000,201," 07-16 - 07-22 T T standard",NULL);
681     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);
682     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_23.rz",1185212001,1191100000,201," 07-23 - 09-29 V V standard",NULL);
683     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);
684     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_25.rz",1191940001,1195200000,201," 10-09 - 11-16 25 25 standard",NULL);
685     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);
686     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);
687     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_28.rz",1196280001,1206100000,201," 11-29 - 03-21 28 28 standard",NULL);
688 mocchiut 1.15 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_29.rz",1206100001,1206375600,201," 03-21 - 03-24 HV_C problems 29 29 ",NULL);
689     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_30.rz",1206375601,1217989200,201," 03-24 - 08-06 good 30 30 calper_30 ",NULL);
690     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_31.rz",1217989201,1218550000,201," 08-06 - 08-12 HV_E problems ? 31 31 calper_31",NULL);
691     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_32.rz",1218550001,1225789200,201," 08-12 - 11-04 good 32 32 calper_32",NULL);
692     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_33.rz",1225789201,1226566800,201," 11-04 - 11-13 HV_E problems ? 33 33 calper_33 ",NULL);
693     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_34.rz",1226566801,1229400000,201," 11-13 - 12-16 good 34 34 calper_34",NULL);
694     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_35.rz",1229400001,1229470000,201," 12-16 - 12-17 HV_F probl. + HV_E (?) 35 35 calper_35",NULL);
695     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_36.rz",1229470001,1229730000,201," 12-17 - 12-19 HV_E problems (?) 36 36 calper_36",NULL);
696     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_37.rz",1229730001,1230318000,201," 12-19 - 12-26 good 37 37 calper_37",NULL);
697     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_38.rz",1230318001,1230410000,201," 12-26 - 12-27 HV_H problems 38 38 calper_38",NULL);
698 mocchiut 1.31 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_39.rz",1230410001,1230768000,201," 12-27 - 12-31 good 39 39 calper_39",NULL);
699     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_41.rz",1230768001,1232496000,201," 09-01-01 09-01-20 good",NULL);
700     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_42.rz",1232496001,1235347200,201," 09-01-21 09-02-22 good",NULL);
701     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_43.rz",1235347201,1238544000,201," 09-02-23 09-03-31 good",NULL);
702     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_44.rz",1238544001,1241136000,201," 09-04-01 09-04-30 good",NULL);
703     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_45.rz",1241136001,1243814400,201," 09-05-01 09-05-31 good",NULL);
704     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_46.rz",1243814401,1246406400,201," 09-06-01 09-06-30 good",NULL);
705     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_47.rz",1246406401,1249084800,201," 09-07-01 09-07-31 good",NULL);
706     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_48.rz",1249084801,1251763200,201," 09-08-01 09-08-31 good",NULL);
707     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_49.rz",1251763201,1254355200,201," 09-09-01 09-09-30 good",NULL);
708     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_50.rz",1254355201,1257033600,201," 09-10-01 09-10-31 good",NULL);
709     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_51.rz",1257033601,1259625600,201," 09-11-01 09-11-30 good",NULL);
710     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_52.rz",1259625601,1262304000,201," 09-12-01 09-12-31 good",NULL);
711 mocchiut 1.48 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_53.rz",1262304001,1264464000,201," 10-01-01 10-01-26 good",NULL);
712     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_54.rz",1264464001,1277935200,201," 10-01-26 10-06-30 good",NULL);
713     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_55.rz",1277935201,1293836400,201," 10-06-30 10-12-31 good",NULL);
714     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_56.rz",1293836401,1304200800,201," 11-01-01 11-04-30 good",NULL);
715     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_57.rz",1304200801,1314828000,201," 11-05-01 11-08-31 good",NULL);
716     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_58.rz",1314828001,1320700000,201," 11-09-01 11-11-07 good",NULL);
717     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_59.rz",1320700001,1322020000,201," 11-11-07 11-11-23 HV_D problems",NULL);
718     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_60.rz",1322020001,1325372400,201," 11-11-23 11-12-31 good",NULL);
719     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_61.rz",1325372401,1335823200,201," 12-01-01 12-04-30 good",NULL);
720     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_62.rz",1335823201,1346450400,201," 12-05-01 12-08-31 good",NULL);
721     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_63.rz",1346450401,1356994800,201," 12-08-31 12-12-31 good",NULL);
722     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_64.rz",1356994801,4294967295,201," >13-01-01 good",NULL);
723 mocchiut 1.1 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","ToFCalibParam.txt",1,4294967295,202," GP ToF parameters ",NULL);
724 mocchiut 1.19 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","adcmonitor.100k.cut.dat",1,1,203," ToF dE/dx II order correction parameters ",NULL);
725 mocchiut 1.28 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","dedxmonitor.C.5d.8th.all.dat",1,1,203," ToF dE/dx II order correction parameters ",NULL);
726 mocchiut 1.31 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","dedxmonitor.He.8th.all.dat",1,1,203," ToF dE/dx II order correction parameters based on He",NULL);
727 mocchiut 1.39 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","dedxmonitor.He.9th.all.dat",1,1,203," ToF dE/dx II order correction parameters based on He 9th data reduction",NULL);
728     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","calibfile_tofdedx_x10thred.txt",1,4294967295,203," ToF dE/dx II order correction parameters - Rita",NULL);
729 mocchiut 1.32 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_1.dat",1,1150848001,204," ToF attenuation parameter file period 1 ",NULL);
730     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_2.dat",1150848000,1154995201,204," ToF attenuation parameter file period 2 ",NULL);
731     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_3.dat",1154995200,1158019201,204," ToF attenuation parameter file period 3 ",NULL);
732     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_4.dat",1158019200,1161216001,204," ToF attenuation parameter file period 4 ",NULL);
733     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_5.dat",1161216000,1164499201,204," ToF attenuation parameter file period 5 ",NULL);
734     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_6.dat",1164499200,1167955201,204," ToF attenuation parameter file period 6 ",NULL);
735     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_7.dat",1167955200,1171670401,204," ToF attenuation parameter file period 7 ",NULL);
736     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_8.dat",1171670400,1175472001,204," ToF attenuation parameter file period 8 ",NULL);
737     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_9.dat",1175472000,1179446401,204," ToF attenuation parameter file period 9 ",NULL);
738     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_10.dat",1179446400,1184284801,204," ToF attenuation parameter file period 10 ",NULL);
739     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_11.dat",1184284800,1188691201,204," ToF attenuation parameter file period 11 ",NULL);
740     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_12.dat",1188691200,1193356801,204," ToF attenuation parameter file period 12 ",NULL);
741     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_13.dat",1193356800,1198195201,204," ToF attenuation parameter file period 13 ",NULL);
742     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_14.dat",1198195200,1203292801,204," ToF attenuation parameter file period 14 ",NULL);
743     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_15.dat",1203292800,1208822401,204," ToF attenuation parameter file period 15 ",NULL);
744     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_16.dat",1208822400,1214524801,204," ToF attenuation parameter file period 16 ",NULL);
745     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_17.dat",1214524800,1220659201,204," ToF attenuation parameter file period 17 ",NULL);
746     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_18.dat",1220659200,1228953601,204," ToF attenuation parameter file period 18 ",NULL);
747     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_19.dat",1228953600,1237593601,204," ToF attenuation parameter file period 19 ",NULL);
748     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_20.dat",1237593600,1244592001,204," ToF attenuation parameter file period 20 ",NULL);
749     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_21.dat",1244592000,1252108801,204," ToF attenuation parameter file period 21 ",NULL);
750     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","atten_period_22.dat",1252108800,4294967295,204," ToF attenuation parameter file period 22 ",NULL);
751     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","attenuation.txt",1,1,204," ToF attenuation parameter file ",NULL);
752 mocchiut 1.19 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","desaturation_position.txt",1,4294967295,205," ToF desaturation on position parameter file ",NULL);
753     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","BetheBloch.txt",1,4294967295,206," ToF BetheBloch parameter file ",NULL);
754     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","BetheBloch_betagt1.txt",1,4294967295,207," ToF Bethe-Bloch parameter file for beta gt1 ",NULL);
755     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","desaturation_beta.txt",1,4294967295,208," ToF desaturation on beta parameter file ",NULL);
756     insert into GL_PARAM values(0,"","",1182100001,1183030000,210," A connector ",NULL);
757     insert into GL_PARAM values(0,"","",1174665001,1175000000,211," B connector ",NULL);
758     insert into GL_PARAM values(0,"","",1206100001,1206375600,212," C connector ",NULL);
759     insert into GL_PARAM values(0,"","",1153660001,1154375000,213," D connector ",NULL);
760     insert into GL_PARAM values(0,"","",1168490001,1168940000,213," D connector ",NULL);
761     insert into GL_PARAM values(0,"","",1185090001,1185212000,213," D connector ",NULL);
762     insert into GL_PARAM values(0,"","",1191100001,1191940000,213," D connector ",NULL);
763     insert into GL_PARAM values(0,"","",1176800001,1178330000,214," E connector ",NULL);
764     insert into GL_PARAM values(0,"","",1217989201,1218547800,214," E connector ",NULL);
765     insert into GL_PARAM values(0,"","",1225789201,1226566800,214," E connector ",NULL);
766     insert into GL_PARAM values(0,"","",1229400901,1229700000,214," E connector ",NULL);
767     insert into GL_PARAM values(0,"","",1230318001,1230415200,214," E connector ",NULL);
768     insert into GL_PARAM values(0,"","",1168940001,1169580000,215," F connector ",NULL);
769     insert into GL_PARAM values(0,"","",1155850001,1156280000,217," H connector ",NULL);
770     insert into GL_PARAM values(0,"","",1176120001,1176800000,217," H connector ",NULL);
771     insert into GL_PARAM values(0,"","",1178330001,1181322000,217," H connector ",NULL);
772     insert into GL_PARAM values(0,"","",1184000001,1184570000,217," H connector ",NULL);
773     insert into GL_PARAM values(0,"","",1196230001,1196280000,217," H connector ",NULL);
774     insert into GL_PARAM values(0,"","",1168940001,1169580000,220," M connector ",NULL);
775     insert into GL_PARAM values(0,"","",1155850001,1156280000,221," N connector ",NULL);
776 mocchiut 1.37 insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf00.dat",1,1104537600,301,"igrf 2000",NULL);
777     insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05.dat",1104537601,1264400000,301,"igrf 2005",NULL);
778 mocchiut 1.36 insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf10.dat",1264400001,4294967295,301,"igrf 2010",NULL);
779 mocchiut 1.37 insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf00.dat",1,946684800,302,"igrf 2000 for interpolations",NULL);
780     insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05.dat",946684801,1104537600,302,"igrf 2005 for interpolations",NULL);
781     insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf10.dat",1104537601,1264400000,302,"igrf 2010 for interpolations",NULL);
782     insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf10s.dat",1264400001,4294967295,302,"igrf 2015 estimated",NULL);
783 mocchiut 1.29 insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","SortQuat.txt",0,0,303,"Quaternion from Resurs",NULL);
784 mocchiut 1.45 insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","IGRF.tab",0,0,304,"11th Generation International Geomagnetic Reference Field Schmidt semi-normalised spherical harmonic coefficients",NULL);
785 mocchiut 1.49 insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","RDBCC.txt",0,0,305,"Resurs-DK1 rotations table",NULL);
786 mocchiut 1.1
787     CREATE TABLE `GL_TLE` (
788     `ID` int(10) NOT NULL auto_increment,
789     `TLE1` varchar(255) NOT NULL default '',
790     `TLE2` varchar(255) NOT NULL default '',
791     `TLE3` varchar(255) NOT NULL default '',
792     `FROM_TIME` datetime NOT NULL default '0000-00-00 00:00:00',
793     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
794     PRIMARY KEY (`ID`)
795     ) ;
796    
797     CREATE TABLE `GL_RUN` (
798     `ID` int(10) unsigned NOT NULL auto_increment,
799     `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
800     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
801     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
802     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
803     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
804     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
805     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
806     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
807     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
808     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
809     `EV_FROM` int(10) unsigned NOT NULL default '0',
810     `EV_TO` int(10) unsigned NOT NULL default '0',
811     `NEVENTS` int(10) unsigned NOT NULL default '0',
812     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
813     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
814     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
815     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
816     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
817     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
818     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
819     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
820     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
821     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
822     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
823     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
824     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
825     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
826     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
827 mocchiut 1.2 `PHYSENDRUN_MASK_S3S2S12` int(10) unsigned NOT NULL default '0',
828     `PHYSENDRUN_MASK_S11CRC` int(10) unsigned NOT NULL default '0',
829 mocchiut 1.1 `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
830     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
831     PRIMARY KEY (`ID`),
832     KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`),
833     KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`),
834     KEY `ID_ROOT_L2_index` (`ID_ROOT_L2`),
835     KEY `COMPILATIONTS_index` (`COMPILATIONTIMESTAMP`),
836     KEY `VALID_index` (`VALIDATION`),
837     KEY `TRKCALIB_index` (`TRK_CALIB_USED`),
838     KEY `CALDSPMASK_index` (`CAL_DSP_MASK`),
839     KEY `EFF_WS_index` (`EFF_WRK_SCHEDULE`),
840     KEY `FAV_WS_index` (`FAV_WRK_SCHEDULE`),
841     KEY `RM_ACQ_AFTER_CALIB_index` (`RM_ACQ_AFTER_CALIB`),
842     KEY `RM_ACQ_SETTING_MODE_index` (`RM_ACQ_SETTING_MODE`),
843     KEY `ACQ_VAR_INFO_index` (`ACQ_VAR_INFO`),
844     KEY `TRG_MODE_A_index` (`PRH_VAR_TRG_MODE_A`),
845     KEY `TRG_MODE_B_index` (`PRH_VAR_TRG_MODE_B`),
846     KEY `NEVENTS_index` (`NEVENTS`),
847     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
848     KEY `ID_RUN_fk_constraint` (`ID_ROOT_L0`),
849     KEY `ID_RUN_L2_fk_constraint` (`ID_ROOT_L2`)
850     ) ;
851    
852     CREATE TABLE `GL_RUN_FRAGMENTS` (
853     `ID` int(10) unsigned NOT NULL auto_increment,
854     `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
855     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
856     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
857     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
858     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
859     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
860     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
861     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
862     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
863     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
864     `EV_FROM` int(10) unsigned NOT NULL default '0',
865     `EV_TO` int(10) unsigned NOT NULL default '0',
866     `NEVENTS` int(10) unsigned NOT NULL default '0',
867     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
868     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
869     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
870     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
871     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
872     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
873     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
874     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
875     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
876     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
877     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
878     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
879     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
880     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
881     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
882 mocchiut 1.2 `PHYSENDRUN_MASK_S3S2S12` int(10) unsigned NOT NULL default '0',
883     `PHYSENDRUN_MASK_S11CRC` int(10) unsigned NOT NULL default '0',
884 mocchiut 1.1 `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
885     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
886     PRIMARY KEY (`ID`),
887     KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`),
888     KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`),
889     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
890     KEY `TRKCALIB_index` (`TRK_CALIB_USED`),
891     KEY `NID_RUN_fk_constraint` (`ID_ROOT_L0`)
892     ) ;
893    
894     CREATE TABLE `GL_RUN_TRASH` (
895     `ID_TRASH` int(10) unsigned NOT NULL auto_increment,
896     `ID` int(10) unsigned NOT NULL default '0',
897     `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
898     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
899     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
900     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
901     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
902     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
903     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
904     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
905     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
906     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
907     `EV_FROM` int(10) unsigned NOT NULL default '0',
908     `EV_TO` int(10) unsigned NOT NULL default '0',
909     `NEVENTS` int(10) unsigned NOT NULL default '0',
910     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
911     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
912     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
913     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
914     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
915     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
916     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
917     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
918     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
919     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
920     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
921     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
922     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
923     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
924     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
925 mocchiut 1.2 `PHYSENDRUN_MASK_S3S2S12` int(10) unsigned NOT NULL default '0',
926     `PHYSENDRUN_MASK_S11CRC` int(10) unsigned NOT NULL default '0',
927 mocchiut 1.1 `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
928     `FILENAMEL0` varchar(255) NOT NULL default '',
929     `FILENAMEL2` varchar(255) NOT NULL default '',
930     `BELONGED_TO` varchar(255) NOT NULL default '',
931     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
932     PRIMARY KEY (`ID_TRASH`),
933     KEY `TID_RUN_FRAG_index` (`ID_RUN_FRAG`),
934     KEY `TID_ROOT_L0_index` (`ID_ROOT_L0`),
935     KEY `TBOOTNUMBER_index` (`BOOT_NUMBER`),
936     KEY `TTRKCALIB_index` (`TRK_CALIB_USED`),
937     KEY `TFNAME0_index` (`FILENAMEL0`),
938     KEY `TFNAME2_index` (`FILENAMEL2`),
939     KEY `TBELONG_index` (`BELONGED_TO`)
940     ) ;
941    
942     CREATE TABLE `GL_CALO_CALIB` (
943     `ID` int(10) unsigned NOT NULL auto_increment,
944     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
945     `EV_ROOT` int(10) unsigned NOT NULL default '0',
946     `FROM_TIME` int(10) unsigned NOT NULL default '0',
947     `TO_TIME` int(10) unsigned NOT NULL default '0',
948     `SECTION` tinyint(3) unsigned NOT NULL default '0',
949     `OBT` int(10) unsigned NOT NULL default '0',
950     `PKT` int(10) unsigned NOT NULL default '0',
951     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
952     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
953     PRIMARY KEY (`ID`),
954     KEY `SECTION_index` (`SECTION`),
955     KEY `EV_ROOT_index` (`EV_ROOT`),
956     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
957     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
958     KEY `VALID1_index` (`VALIDATION`)
959     ) ;
960    
961     CREATE TABLE `GL_CALOPULSE_CALIB` (
962     `ID` int(10) unsigned NOT NULL auto_increment,
963     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
964     `EV_ROOT` int(10) unsigned NOT NULL default '0',
965     `FROM_TIME` int(10) unsigned NOT NULL default '0',
966     `TO_TIME` int(10) unsigned NOT NULL default '0',
967     `SECTION` tinyint(3) unsigned NOT NULL default '0',
968     `PULSED_STRIP` tinyint(3) unsigned default NULL,
969     `PULSE_AMPLITUDE` tinyint(3) unsigned default NULL,
970     `OBT` int(10) unsigned NOT NULL default '0',
971     `PKT` int(10) unsigned NOT NULL default '0',
972     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
973     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
974     PRIMARY KEY (`ID`),
975     KEY `PSECTION_index` (`SECTION`),
976     KEY `PULSEDSTRIP_index` (`PULSED_STRIP`),
977     KEY `PULSEAMPL_index` (`PULSE_AMPLITUDE`),
978     KEY `PEV_ROOT_index` (`EV_ROOT`),
979     KEY `PID_ROOT_index` (`ID_ROOT_L0`),
980     KEY `PBOOTNUMBER_index` (`BOOT_NUMBER`),
981     KEY `PVALID1_index` (`VALIDATION`)
982     ) ;
983    
984    
985     CREATE TABLE `GL_TRK_CALIB` (
986     `ID` int(10) unsigned NOT NULL auto_increment,
987     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
988     `EV_ROOT_CALIBTRK1` int(10) unsigned default NULL,
989     `EV_ROOT_CALIBTRK2` int(10) unsigned default NULL,
990     `FROM_TIME` int(10) unsigned NOT NULL default '0',
991     `TO_TIME` int(10) unsigned NOT NULL default '0',
992     `OBT1` int(10) unsigned NOT NULL default '0',
993     `PKT1` int(10) unsigned NOT NULL default '0',
994     `OBT2` int(10) unsigned NOT NULL default '0',
995     `PKT2` int(10) unsigned NOT NULL default '0',
996     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
997     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
998     PRIMARY KEY (`ID`),
999     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
1000     KEY `EV_ROOT_CALIBTRK1index` (`EV_ROOT_CALIBTRK1`),
1001     KEY `EV_ROOT_CALIBTRK2index` (`EV_ROOT_CALIBTRK2`),
1002     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
1003     KEY `VALID2_index` (`VALIDATION`)
1004     ) ;
1005    
1006     CREATE TABLE `GL_S4_CALIB` (
1007     `ID` int(10) unsigned NOT NULL auto_increment,
1008     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
1009     `EV_ROOT` int(10) unsigned NOT NULL default '0',
1010     `FROM_TIME` int(10) unsigned NOT NULL default '0',
1011     `TO_TIME` int(10) unsigned NOT NULL default '0',
1012     `OBT` int(10) unsigned NOT NULL default '0',
1013     `PKT` int(10) unsigned NOT NULL default '0',
1014     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
1015     PRIMARY KEY (`ID`),
1016     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
1017     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`)
1018     ) ;
1019    
1020    
1021     drop table if exists dbname.ROOT_TABLE ;
1022    
1023     CREATE TABLE `dbname`.`ROOT_TABLE` (
1024     `ID_N` int unsigned NOT NULL auto_increment COMMENT 'It is the internal table ID (SERIAL)',
1025     `FOLDER_NAME` varchar(255) default '.' COMMENT 'It is the folder containing the ROOT files',
1026     `FILE_NAME` varchar(255) NOT NULL default 'yoda_nnnnn_mmm_ppp_0' COMMENT 'It is the ROOT filename.',
1027     `PKT_NUMBER_INIT` int unsigned NOT NULL default '0' COMMENT 'The counter value of the first packet ',
1028     `PKT_NUMBER_FINAL` int unsigned NOT NULL default '0' COMMENT 'The counter value of the last packet ',
1029     `PKT_OBT_INIT` int unsigned NOT NULL default '0' COMMENT 'The obt value of the first packet (ms)',
1030     `PKT_OBT_FINAL` int unsigned NOT NULL default '0' COMMENT 'The obt value of the last packet (ms)',
1031     `OBT_TIME_SYNC` int unsigned default '0' COMMENT 'The TIMESYNC used to compute the real time (s)',
1032     `LAST_TIME_SYNC_INFO` int unsigned default '0' COMMENT 'The LAST SYNC used to compute the real time (s)',
1033     `REAL_TIME_INIT` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time of the first packet (s)',
1034     `REAL_TIME_LAST` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time of the last packet (s)',
1035     `BOOT_NUMBER` int unsigned default '0' COMMENT 'The Boot Number',
1036     `TIME_OFFSET` int unsigned default '0' COMMENT 'The time offset used (s)',
1037     `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.',
1038     `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',
1039     `BAD_PKT_CALREAD` int default '0' COMMENT 'The number of Calibration packet that could have problems.',
1040     `NUM_PKT_SAVED` int default '0' COMMENT 'The total number of packet saved in the ROOT file',
1041     `INPUT_NAME` varchar(255) default './nnnnmmm.pam' COMMENT 'It is the filename of the input file',
1042 mocchiut 1.12 `TIME_IS_ESTIMATED` tinyint(1) unsigned NOT NULL default '0' COMMENT 'No timesync was found for this entry, we use a timesync from the same download',
1043 mocchiut 1.1 `INSERT_TIME` timestamp default CURRENT_TIMESTAMP,
1044 mocchiut 1.22 `INSERTED_BY` varchar(4) NOT NULL default 'NONE' COMMENT 'The owner of the file',
1045     `ON_DISK` varchar(3) NOT NULL default 'YES' COMMENT 'The file is on disk (no deleted)',
1046 mocchiut 1.1 PRIMARY KEY (`ID_N`)
1047     )
1048     ;
1049    
1050     drop table if exists dbname.ROOT_TABLE_BAD ;
1051     CREATE TABLE `dbname`.`ROOT_TABLE_BAD` (
1052     `ID_N` int unsigned NOT NULL auto_increment COMMENT 'It is the internal table ID',
1053     `FOLDER_NAME` varchar(255) default '.' COMMENT 'It is the folder containing the ROOT files',
1054     `FILE_NAME` varchar(255) NOT NULL default 'yoda_nnnnn_mmm_ppp_0' COMMENT 'It is the ROOT filename.',
1055     `PKT_NUMBER_INIT` int unsigned NOT NULL default '0' COMMENT 'The counter value of the first packet ',
1056     `PKT_NUMBER_FINAL` int unsigned NOT NULL default '0' COMMENT 'The counter value of the last packet ',
1057     `PKT_OBT_INIT` int unsigned NOT NULL default '0' COMMENT 'The obt value of the first packet ',
1058     `PKT_OBT_FINAL` int unsigned NOT NULL default '0' COMMENT 'The obt value of the last packet ',
1059     `OBT_TIME_SYNC` int unsigned default '0' COMMENT 'The TIMESYNC used to compute the real time',
1060     `LAST_TIME_SYNC_INFO` int unsigned default '0' COMMENT 'The LAST SYNC used to compute the real time',
1061     `REAL_TIME_INIT` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time of the first packet',
1062     `REAL_TIME_LAST` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time of the last packet (s)',
1063     `BOOT_NUMBER` int unsigned default '0' COMMENT 'The Boot Number',
1064     `TIME_OFFSET` int unsigned default '0' COMMENT 'The time offset us ed (s)',
1065     `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.',
1066     `BAD_PKT_READ` int default '0' COMMENT 'The number of packet that could have problems. In general CRC errors detected in the EventReader part',
1067     `BAD_PKT_CALREAD` int default '0' COMMENT 'The number of Calibration packet that could have problems.',
1068     `NUM_PKT_SAVED` int default '0' COMMENT 'The number of packet saved in the ROOT file',
1069     `INPUT_NAME` varchar(255) default './nnnnmmm.pam' COMMENT 'It is the filename of the input file',
1070 mocchiut 1.12 `TIME_IS_ESTIMATED` tinyint(1) unsigned NOT NULL default '0' COMMENT 'No timesync was found for this entry, we use a timesync from the same download',
1071 mocchiut 1.1 `INSERT_TIME` timestamp default CURRENT_TIMESTAMP,
1072 mocchiut 1.22 `INSERTED_BY` varchar(4) NOT NULL default 'NONE' COMMENT 'The owner of the file',
1073     `ON_DISK` varchar(3) NOT NULL default 'YES' COMMENT 'The file is on disk (no deleted)',
1074 mocchiut 1.1 PRIMARY KEY (`ID_N`)
1075     )
1076     ;
1077    
1078     drop table if exists dbname.ROOT_TABLE_MERGING ;
1079     CREATE TABLE `dbname`.`ROOT_TABLE_MERGING` (
1080     `ID_N` int unsigned NOT NULL auto_increment COMMENT 'It is the internal table ID',
1081     `ROOT_ID_N` int unsigned NOT NULL COMMENT 'It is the ID of the ROOT file in table ROOT_TABLE',
1082     `PKT_NUMBER_INIT` int unsigned NOT NULL default '0' COMMENT 'The counter value of the first packet ',
1083     `PKT_NUMBER_FINAL` int unsigned NOT NULL default '0' COMMENT 'The counter value of the last packet ',
1084     `PKT_OBT_INIT` int unsigned NOT NULL default '0' COMMENT 'The obt value of the first packet ',
1085     `PKT_OBT_FINAL` int unsigned NOT NULL default '0' COMMENT 'The obt value of the last packet ',
1086     `REAL_TIME_INIT` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time from where I want to start',
1087     `REAL_TIME_LAST` int unsigned NOT NULL default '0' COMMENT 'The Absolute real time when I want to stop using this ROOT file (s)',
1088     `BOOT_NUMBER` int unsigned default '0' COMMENT 'The Boot Number',
1089     `BAD_PKT_PERCENTAGE` double default '0' COMMENT 'The percentage of bad packets',
1090 mocchiut 1.5 `GOOD` tinyint(1) unsigned NOT NULL default '1' COMMENT 'The entry must be used if and only if GOOD=1',
1091     `INSERTED_BY` varchar(4) NOT NULL default 'NONE' COMMENT 'The owner of the file',
1092 mocchiut 1.1 `INSERT_TIME` timestamp default CURRENT_TIMESTAMP,
1093     PRIMARY KEY (`ID_N`)
1094     )
1095 mocchiut 1.4 ;
1096 mocchiut 1.1

  ViewVC Help
Powered by ViewVC 1.1.23