The main THOR program is a pure standard DCL command file, which heavily limits the tasks it can perform. THOR therefore uses a lot of small Fortran programs to perform specific task and other DCL command files for bigger tasks. All these programs is compiled and linked once at the start of THOR and then the executables are used. This chapter will describe these subprograms and the output and input files that is connected to them, A summary chart can be found in App. A.1.
To structure the sub programs and their input and output files, the THOR directory has been split into a number of subdirectories according to figure 2. All programs and output files that are specific for a certain year are collected in the 'year' directory. This takes the name '1997' for 1997, '1998' for 1998 and so on. The names of the files and programs in these directories are the same to make it easy to switch from processing one year to another.
The Fortran codes for all non year dependent programs, that is all programs except COMPACT and VSDIAG, are collected in the 'FORD' directory. The executables and some other DCL command files are collected in the 'PROG' directory. The input files to THOR are collected in the 'INPUT' directory and the output files from THOR end up in the 'OUTPUT' directory. The 'DATA' directory contains the histograms and ntuples produced by VSDIAG during the current year. This directory will link the output to the disk WSED2$DKA400:[VSAT.XXXX.HIST], where XXXX is the current year.