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

Annotation of /YodaProfiler/docs/PAMELAProductionDB.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.27 - (hide annotations) (download)
Mon Mar 3 09:53:04 2008 UTC (16 years, 9 months ago) by mocchiut
Branch: MAIN
Changes since 1.26: +23 -15 lines
New ToF calibration in the DB

1 mocchiut 1.1 DROP DATABASE IF EXISTS dbname;
2    
3     CREATE DATABASE dbname;
4    
5     USE dbname;
6    
7 mocchiut 1.6 SET time_zone='+0:00';
8    
9 mocchiut 1.3 CREATE TABLE `_RUNID_GEN` (
10     `ID` int(10) unsigned NOT NULL auto_increment,
11     PRIMARY KEY (`ID`)
12     ) ENGINE=InnoDB;
13    
14 mocchiut 1.1 CREATE TABLE `GL_RAW` (
15     `ID` int(10) unsigned NOT NULL auto_increment,
16     `PATH` varchar(255) NOT NULL default '',
17     `NAME` varchar(255) NOT NULL default '',
18     `BOOT_NUMBER` smallint(5) unsigned default NULL,
19     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
20     PRIMARY KEY (`ID`),
21     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
22     KEY `PATH_index` (`PATH`)
23     ) ENGINE=InnoDB;
24    
25 mocchiut 1.12 INSERT INTO GL_RAW VALUES(0,'$PAM_L2','level2 files',NULL,NULL);
26 mocchiut 1.7
27 mocchiut 1.1 CREATE TABLE `GL_ROOT` (
28     `ID` int(10) unsigned NOT NULL auto_increment,
29     `ID_RAW` int(10) unsigned NOT NULL default '0',
30     `ID_TIMESYNC` int(10) unsigned NOT NULL default '0',
31     `PATH` varchar(255) NOT NULL default '',
32     `NAME` varchar(255) NOT NULL default '',
33     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
34     PRIMARY KEY (`ID`),
35     KEY `ID_RAW_index` (`ID_RAW`),
36     KEY `PATH_index` (`PATH`),
37     CONSTRAINT `ROOT_fk` FOREIGN KEY (`ID_RAW`) REFERENCES `GL_RAW` (`ID`) ON DELETE CASCADE
38     ) ENGINE=InnoDB;
39    
40     CREATE TABLE `GL_RESURS_OFFSET` (
41     `ID` int(10) unsigned NOT NULL auto_increment,
42 mocchiut 1.3 `FROM_ORBIT` int(10) unsigned NOT NULL default '0',
43     `SPECIAL_FILE` varchar(255) NOT NULL default '',
44 mocchiut 1.1 `OFFSET_DATE` timestamp default '0000-00-00 00:00:00',
45     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
46     PRIMARY KEY (`ID`)
47     ) ENGINE=InnoDB;
48    
49 mocchiut 1.3 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 mocchiut 1.9 INSERT INTO GL_RESURS_OFFSET VALUES(0,'2797','','2006-12-12 21:00:00',NULL);
52 mocchiut 1.10 INSERT INTO GL_RESURS_OFFSET VALUES(0,'3221','','2007-01-08 21:00:00',NULL);
53 mocchiut 1.11 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 mocchiut 1.18 INSERT INTO GL_RESURS_OFFSET VALUES(0,'5960','','2007-07-08 21:00:00',NULL);
59 mocchiut 1.22 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 mocchiut 1.26 INSERT INTO GL_RESURS_OFFSET VALUES(0,'8580','','2007-12-26 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 mocchiut 1.22
67 mocchiut 1.1
68     CREATE TABLE `GL_TIMESYNC` (
69     `ID` int(10) unsigned NOT NULL auto_increment,
70     `ID_RAW` int(10) unsigned NOT NULL default '0',
71 mocchiut 1.23 `ID_RESURS_OFFSET` int(10) unsigned NOT NULL default '0',
72 mocchiut 1.1 `OBT0` int(10) unsigned NOT NULL default '0',
73     `TIMESYNC` int(10) unsigned NOT NULL default '0',
74     `TYPE` smallint(5) unsigned NOT NULL default '0',
75     PRIMARY KEY (`ID`),
76     KEY `ID_RAW_index` (`ID_RAW`),
77     KEY `TYPE_index` (`TYPE`),
78     CONSTRAINT `TIME_RAW_fk` FOREIGN KEY (`ID_RAW`) REFERENCES `GL_RAW` (`ID`) ON DELETE CASCADE
79     ) ENGINE=InnoDB;
80    
81     CREATE TABLE `GL_PARAM` (
82     `ID` int(10) unsigned NOT NULL auto_increment,
83     `PATH` varchar(255) NOT NULL default '',
84     `NAME` varchar(255) NOT NULL default '',
85     `FROM_TIME` int(10) unsigned NOT NULL default '0',
86     `TO_TIME` int(10) unsigned NOT NULL default '0',
87 mocchiut 1.2 `TYPE` smallint(5) unsigned NOT NULL default '0',
88 mocchiut 1.1 `DESCR` varchar(255) NOT NULL default '',
89     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
90     PRIMARY KEY (`ID`),
91     KEY `PATH_index` (`PATH`),
92     KEY `NAME_index` (`NAME`),
93     KEY `TYPE_index` (`TYPE`),
94     KEY `DESCR_index` (`DESCR`)
95     ) ENGINE=InnoDB;
96    
97 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","field_param-0/",0,0,1,"field",NULL);
98     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mip_param-0/",0,0,2,"trk mip",NULL);
99     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","charge_param-1/",0,0,3,"trk charge",NULL);
100 pam-fi 1.19 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","eta_param-2/",0,0,4,"trk pfa",NULL);
101     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","align_param-Q.A/",0,0,5,"trk alignment",NULL);
102 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-1/",0,0,6,"trk mask",NULL);
103     insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","default_calib/",0,0,7,"default calibration",NULL);
104     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);
105 mocchiut 1.14 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIP.dat",1,1,101,"Calorimeter ADC to MIP from ground data",NULL);
106     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIPfc.dat",2,4294967295,101,"Calorimeter ADC to MIP from flight, relativistic particles",NULL);
107 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign.dat",1,1,102,"Calorimeter alignement",NULL);
108 mocchiut 1.13 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flight.dat",1,1,102,"Calorimeter alignement with flight data",NULL);
109 mocchiut 1.25 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flightEMS.dat",1,1,102,"Calorimeter alignement with flight data EM showers",NULL);
110     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);
111 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloBadMask.dat",0,0,103,"Calorimeter bad strip offline mask",NULL);
112     insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloDefaultCalib.root",0,0,104,"Calorimeter default calibration",NULL);
113 mocchiut 1.24 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);
114     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);
115 mocchiut 1.27 insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_1.rz",1,1153660000,201," 0 - 07-23 - A A standard",NULL);
116     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);
117     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_3.rz",1154375001,1155850000,201," 07-31 - 08-17 - C C standard",NULL);
118     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);
119     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_5.rz",1156280001,1165400000,201," 08-22 - 12-06 E E standard",NULL);
120     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);
121     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);
122     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);
123     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);
124     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);
125     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);
126     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);
127     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_13.rz",1175000001,1176120000,201," 03-27 - 04-09 L L standard",NULL);
128     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);
129     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);
130     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);
131     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_17.rz",1181322001,1182100000,201," 06-08 - 06-17 P P standard",NULL);
132     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);
133     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_19.rz",1183030001,1184000000,201," 06-28 - 07-09 R R standard",NULL);
134     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);
135     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_21.rz",1184570001,1185090000,201," 07-16 - 07-22 T T standard",NULL);
136     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);
137     insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_23.rz",1185212001,4294967295,201," > 07-23 V V standard",NULL);
138 mocchiut 1.12 insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05.dat",0,0,301,"igrf 2005",NULL);
139     insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05s.dat",0,0,302,"igrf 2010",NULL);
140    
141 mocchiut 1.1 CREATE TABLE `GL_TLE` (
142     `ID` int(10) NOT NULL auto_increment,
143     `TLE1` varchar(255) NOT NULL default '',
144     `TLE2` varchar(255) NOT NULL default '',
145     `TLE3` varchar(255) NOT NULL default '',
146 mocchiut 1.2 `FROM_TIME` datetime NOT NULL default '0000-00-00 00:00:00',
147 mocchiut 1.1 `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
148     PRIMARY KEY (`ID`)
149     ) ENGINE=InnoDB;
150    
151     CREATE TABLE `GL_RUN` (
152     `ID` int(10) unsigned NOT NULL auto_increment,
153     `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
154     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
155     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
156     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
157     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
158     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
159     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
160     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
161     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
162     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
163     `EV_FROM` int(10) unsigned NOT NULL default '0',
164     `EV_TO` int(10) unsigned NOT NULL default '0',
165     `NEVENTS` int(10) unsigned NOT NULL default '0',
166     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
167     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
168     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
169     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
170     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
171     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
172     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
173     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
174     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
175     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
176     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
177     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
178     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
179     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
180     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
181     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
182     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
183     PRIMARY KEY (`ID`),
184     KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`),
185     KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`),
186     KEY `ID_ROOT_L2_index` (`ID_ROOT_L2`),
187     KEY `COMPILATIONTS_index` (`COMPILATIONTIMESTAMP`),
188     KEY `VALID_index` (`VALIDATION`),
189     KEY `TRKCALIB_index` (`TRK_CALIB_USED`),
190     KEY `CALDSPMASK_index` (`CAL_DSP_MASK`),
191     KEY `EFF_WS_index` (`EFF_WRK_SCHEDULE`),
192     KEY `FAV_WS_index` (`FAV_WRK_SCHEDULE`),
193     KEY `RM_ACQ_AFTER_CALIB_index` (`RM_ACQ_AFTER_CALIB`),
194     KEY `RM_ACQ_SETTING_MODE_index` (`RM_ACQ_SETTING_MODE`),
195     KEY `ACQ_VAR_INFO_index` (`ACQ_VAR_INFO`),
196     KEY `TRG_MODE_A_index` (`PRH_VAR_TRG_MODE_A`),
197     KEY `TRG_MODE_B_index` (`PRH_VAR_TRG_MODE_B`),
198     KEY `NEVENTS_index` (`NEVENTS`),
199     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
200     KEY `ID_RUN_fk_constraint` (`ID_ROOT_L0`),
201 mocchiut 1.5 KEY `ID_RUN_L2_fk_constraint` (`ID_ROOT_L2`)
202 mocchiut 1.1 ) ENGINE=InnoDB;
203    
204     CREATE TABLE `GL_RUN_FRAGMENTS` (
205     `ID` int(10) unsigned NOT NULL auto_increment,
206     `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
207     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
208     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
209     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
210     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
211     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
212     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
213     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
214     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
215     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
216     `EV_FROM` int(10) unsigned NOT NULL default '0',
217     `EV_TO` int(10) unsigned NOT NULL default '0',
218     `NEVENTS` int(10) unsigned NOT NULL default '0',
219     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
220     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
221     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
222     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
223     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
224     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
225     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
226     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
227     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
228     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
229     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
230     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
231     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
232     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
233     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
234     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
235     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
236     PRIMARY KEY (`ID`),
237     KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`),
238     KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`),
239     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
240     KEY `TRKCALIB_index` (`TRK_CALIB_USED`),
241 mocchiut 1.5 KEY `NID_RUN_fk_constraint` (`ID_ROOT_L0`)
242 mocchiut 1.1 ) ENGINE=InnoDB;
243    
244 mocchiut 1.4 CREATE TABLE `GL_RUN_TRASH` (
245 mocchiut 1.5 `ID_TRASH` int(10) unsigned NOT NULL auto_increment,
246     `ID` int(10) unsigned NOT NULL default '0',
247 mocchiut 1.4 `ID_RUN_FRAG` int(10) unsigned NOT NULL default '0',
248     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
249     `ID_ROOT_L2` int(10) unsigned NOT NULL default '0',
250     `RUNHEADER_TIME` int(10) unsigned NOT NULL default '0',
251     `RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0',
252     `RUNHEADER_OBT` int(10) unsigned NOT NULL default '0',
253     `RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0',
254     `RUNHEADER_PKT` int(10) unsigned NOT NULL default '0',
255     `RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0',
256     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
257     `EV_FROM` int(10) unsigned NOT NULL default '0',
258     `EV_TO` int(10) unsigned NOT NULL default '0',
259     `NEVENTS` int(10) unsigned NOT NULL default '0',
260     `PKT_COUNTER` int(10) unsigned NOT NULL default '0',
261     `PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0',
262     `COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0',
263     `FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
264     `EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0',
265     `PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0',
266     `PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0',
267     `ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0',
268     `ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0',
269     `RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0',
270     `RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0',
271     `TRK_CALIB_USED` int(10) unsigned NOT NULL default '0',
272     `CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0',
273     `LAST_TIMESYNC` int(10) unsigned NOT NULL default '0',
274     `OBT_TIMESYNC` int(10) unsigned NOT NULL default '0',
275     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
276     `FILENAMEL0` varchar(255) NOT NULL default '',
277     `FILENAMEL2` varchar(255) NOT NULL default '',
278     `BELONGED_TO` varchar(255) NOT NULL default '',
279     `INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP,
280 mocchiut 1.5 PRIMARY KEY (`ID_TRASH`),
281 mocchiut 1.4 KEY `TID_RUN_FRAG_index` (`ID_RUN_FRAG`),
282     KEY `TID_ROOT_L0_index` (`ID_ROOT_L0`),
283     KEY `TBOOTNUMBER_index` (`BOOT_NUMBER`),
284     KEY `TTRKCALIB_index` (`TRK_CALIB_USED`),
285     KEY `TFNAME0_index` (`FILENAMEL0`),
286     KEY `TFNAME2_index` (`FILENAMEL2`),
287     KEY `TBELONG_index` (`BELONGED_TO`)
288     ) ENGINE=InnoDB;
289    
290 mocchiut 1.1 CREATE TABLE `GL_CALO_CALIB` (
291     `ID` int(10) unsigned NOT NULL auto_increment,
292     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
293     `EV_ROOT` int(10) unsigned NOT NULL default '0',
294     `FROM_TIME` int(10) unsigned NOT NULL default '0',
295     `TO_TIME` int(10) unsigned NOT NULL default '0',
296     `SECTION` tinyint(3) unsigned NOT NULL default '0',
297     `OBT` int(10) unsigned NOT NULL default '0',
298     `PKT` int(10) unsigned NOT NULL default '0',
299     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
300     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
301     PRIMARY KEY (`ID`),
302     KEY `SECTION_index` (`SECTION`),
303     KEY `EV_ROOT_index` (`EV_ROOT`),
304     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
305     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
306 mocchiut 1.5 KEY `VALID1_index` (`VALIDATION`)
307 mocchiut 1.1 ) ENGINE=InnoDB;
308    
309 mocchiut 1.24 CREATE TABLE `GL_CALOPULSE_CALIB` (
310     `ID` int(10) unsigned NOT NULL auto_increment,
311     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
312     `EV_ROOT` int(10) unsigned NOT NULL default '0',
313     `FROM_TIME` int(10) unsigned NOT NULL default '0',
314     `TO_TIME` int(10) unsigned NOT NULL default '0',
315     `SECTION` tinyint(3) unsigned NOT NULL default '0',
316     `PULSED_STRIP` tinyint(3) unsigned default NULL,
317     `PULSE_AMPLITUDE` tinyint(3) unsigned default NULL,
318     `OBT` int(10) unsigned NOT NULL default '0',
319     `PKT` int(10) unsigned NOT NULL default '0',
320     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
321     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
322     PRIMARY KEY (`ID`),
323     KEY `PSECTION_index` (`SECTION`),
324     KEY `PULSEDSTRIP_index` (`PULSED_STRIP`),
325     KEY `PULSEAMPL_index` (`PULSE_AMPLITUDE`),
326     KEY `PEV_ROOT_index` (`EV_ROOT`),
327     KEY `PID_ROOT_index` (`ID_ROOT_L0`),
328     KEY `PBOOTNUMBER_index` (`BOOT_NUMBER`),
329     KEY `PVALID1_index` (`VALIDATION`)
330     ) ENGINE=InnoDB;
331    
332    
333 mocchiut 1.1 CREATE TABLE `GL_TRK_CALIB` (
334     `ID` int(10) unsigned NOT NULL auto_increment,
335     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
336     `EV_ROOT_CALIBTRK1` int(10) unsigned default NULL,
337     `EV_ROOT_CALIBTRK2` int(10) unsigned default NULL,
338     `FROM_TIME` int(10) unsigned NOT NULL default '0',
339     `TO_TIME` int(10) unsigned NOT NULL default '0',
340     `OBT1` int(10) unsigned NOT NULL default '0',
341     `PKT1` int(10) unsigned NOT NULL default '0',
342     `OBT2` int(10) unsigned NOT NULL default '0',
343     `PKT2` int(10) unsigned NOT NULL default '0',
344     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
345     `VALIDATION` tinyint(3) unsigned NOT NULL default '0',
346     PRIMARY KEY (`ID`),
347     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
348     KEY `EV_ROOT_CALIBTRK1index` (`EV_ROOT_CALIBTRK1`),
349     KEY `EV_ROOT_CALIBTRK2index` (`EV_ROOT_CALIBTRK2`),
350     KEY `BOOTNUMBER_index` (`BOOT_NUMBER`),
351 mocchiut 1.5 KEY `VALID2_index` (`VALIDATION`)
352 mocchiut 1.1 ) ENGINE=InnoDB;
353    
354     CREATE TABLE `GL_S4_CALIB` (
355     `ID` int(10) unsigned NOT NULL auto_increment,
356     `ID_ROOT_L0` int(10) unsigned NOT NULL default '0',
357     `EV_ROOT` int(10) unsigned NOT NULL default '0',
358     `FROM_TIME` int(10) unsigned NOT NULL default '0',
359     `TO_TIME` int(10) unsigned NOT NULL default '0',
360     `OBT` int(10) unsigned NOT NULL default '0',
361     `PKT` int(10) unsigned NOT NULL default '0',
362     `BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0',
363     PRIMARY KEY (`ID`),
364     KEY `ID_ROOT_index` (`ID_ROOT_L0`),
365 mocchiut 1.5 KEY `BOOTNUMBER_index` (`BOOT_NUMBER`)
366 mocchiut 1.1 ) ENGINE=InnoDB;
367    
368    

  ViewVC Help
Powered by ViewVC 1.1.23