next up previous contents
Next: Offline quality checking Up: THOR:Structure Previous: THOR:Structure

Data compression

The COMPACT program is executed by a modified version of the ODEN program. If all files in a fill exists this program starts COMPACT, which then creates a compressed FX-file and a summary ntuple. In case some but not all files are present ODEN checks the date of the last DELANA file received on the VSAT disk. If it is less than two days ago since this file was created, ODEN asks THOR to wait 2 days before ODEN is run again. If it was more than two days since the last DELANA files was created ODEN starts COMPACT anyway.

After COMPACT and ODEN has finished their work on a certain fill, THOR will automatically move the processed DELANA files to a data bank for backup. Fills which contain all files will be separated from fill with files missing. THOR will also keep track of the total size in the data bank, to be able to generate an output message when its time to backup the data.

If no DELANA files in a given fill are present on the VSAT disk, ODEN will once again ask THOR to wait two days before ODEN is run again. If still no files are present after these days, ODEN will skip this fill from the COMPACT processing. If the next fill does not contain any files either, this fill will be skipped directly without waiting. This will continue until ODEN finds a fill which contain some DELANA files.

If there is a change of the DELANA version in the processing, ODEN will not find any more files with the Old DELANA version. THOR will then walk through the whole list of fills until it reaches the last one. At the last fill THOR calls a subroutine which accesses the DELPHI database over the Web and updates the fill list from the DRDB command. If more than the 5 last fills in a row were missing in connection with this update, THOR changes the DELANA version and start from the first fill.


next up previous contents
Next: Offline quality checking Up: THOR:Structure Previous: THOR:Structure
Andreas Nygren
1999-11-11