next up previous contents
Next: VSDIAG Up: THOR:Sub Programs Previous: THOR:Sub Programs

ODEN and COMPACT

ODEN is a program originally created by Per Jonson to handle the offline reprocessing. The basic function is to launch COMPACT and VSDST from a DCL command file. It also executes a fortran code(oden.exe) that simulates Checkvst and automatically updates the fill number from Fillrun.dat to the next fill that shall be processed. To fit into the framework of THOR it has been heavily modified. The DCL command file only processes one fill at the time and does not run VSDST, also it leaves the waiting for vst files to THOR. A number of extra features is also added to the Fortran file oden.exe to generate some more output information.

Here follows a short summary(see fig on next page) of the execution procedure of ODEN and the time order in which these files are used. If none of the files Endfill.txt and Wait.txt exists in the input directory, THOR will execute ODEN. The first thing ODEN does then, is to execute the Fortran program oden.exe. This program checks which DELANA files that are missing in a fill, and thereby generates one of the files No-cass.txt, Some-cass.txt or All-cass.txt.

ODEN also creates a file Last-vst.txt, which contains the list of found DELANA files. To complement this it updates the file Misscass.txt with the missing DELANA files. It also updates the file New-fill.tmp with the next fill in the Fillrun.dat list and if it has reached the end of this list it generates the file Endfill.txt.

The ODEN.COM DCL command file then checks the existence of the file No-cass.txt and All-cass.txt. If All-cass exists it will immediately start COMPACT, and if No-cass exists it will immediately skip COMPACT and create the Wait.txt file. This will make THOR wait two days before it runs ODEN again, and if the No-cass.txt file still exists ODEN will jump directly to the next fill without executing COMPACT. This continues until ODEN will find some DELANA files, and then Some-cass.txt is created.

\begin{figure}
\centering\epsfig {file=th:oden.eps,height=2.5cm,width=14cm}\end{figure}

If the file Some-cass.txt exists ODEN.com will check the time and date for all the files in the Last-vst.txt list. If it has been two days since the last file arrived, ODEN will start COMPACT, otherwise it generates the file Wait.txt. COMPACT creates the compressed data file called the FX-file and a summary Ntuple of some quantities in the fill. If any bad DELANA files is found COMPACT removes the file Some-cass.txt. This makes ODEN run the Fortran program once again to correct the file Miss-cass.txt for the new corrupted DELANA files.

After this the execution of ODEN is finished and as ODEN is run interactively within THOR, the process will be returned to THOR. It will then directly move the processed vst-files to their proper location. If the file Endfill.txt exists THOR will execute a program that updates the Fillrun.dat file. In this subroutine it also checks if the file No-cass.txt exists and if it is found five times in a row it makes THOR change the DELANA version and rewind the fill number to the first fill of the year.


next up previous contents
Next: VSDIAG Up: THOR:Sub Programs Previous: THOR:Sub Programs
Andreas Nygren
1999-11-11