Документ взят из кэша поисковой машины. Адрес оригинального документа : http://theory.sinp.msu.ru/comphep_html/tutorial/node39.html
Дата изменения: Wed Aug 9 20:40:47 2000
Дата индексирования: Mon Oct 1 22:43:19 2012
Кодировка:
Batch calculations Integration by
 means of the Simpson method Numerical
 calculation by CompHEP VEGAS menu Contents


Batch calculations

CompHEP  was created as a program for calculation in an interactive mode. But in practice long-time calculations are typical and it is reasonable to perform them in a batch queue regime. According to this requirement we have implemented the batch (or, say, `blind') calculation mode in CompHEP.

During the work with the n_comphep_f(c) program in the interactive mode you have a possibility to store all current settings and task parameters in the f(c)_batch.dat file. The function Batch of the main menu is used to define such a task and save it in a file. It opens the Menu 8 (see Fig.6.8). Its first function appends parameters of the current session to the f(c)_batch.dat file. It is possible to join several tasks in one f(c)_batch.dat file.

For the batch mode you are provided with a possibility to perform two sessions of Vegas  calculation with automatic call for the Clear statistic function between the sessions. These sessions are driven by the Itmx1, nCall1, Itmx2, nCall2 parameters which in their turn may be defined by means of functions of Menu 8. The meanings of these parameters are similar to the same name parameters of the Vegas  menu. If you put one of these parameters equal to zero then only one session will be launched.

If you set the Generate events switch ON, then the squared matrix elements calculated during the last Vegas  session will be saved in a file for further processing (see Section CompHEP  event generator).

There is a possibility to organize cycle calculation within one task. The Table size function defines a number of steps for the cycle calculation. The user may choose a parameter to scan by means of the Table param function. The last two menu functions allow to set the extreme values for the scanning parameter.

Every time when you start n_comphep_f  it checks a presence of the f_batch.dat file. If it exists you will be prompted:
Would you like to use the BATCH mode?

If you answer 'y' then n_comphep reads the tasks from the f_batch.dat file and performs requested calculations.

So, if the f_batch.dat file exists the batch calculations can be launched by the pipe command:
echo y |n_comphep_f

The batch calculation in the case of n_comphep_c is started by
n_comphep_c -batch

CompHEP  has an internal counter for Monte Carlo sessions which accrues after each Monte Carlo session. All output files have this session number as a part of their names. Hence, outputs from different tasks are written down in different files and all results are safely remembered after the n_comphep run. In the case of cycle calculation the additional joint file f(c)_table_N_M with results of calculation will be created. Here N and M are the first and the last number of session for the current cycle.


Integration by
 means of the Simpson method Numerical
 calculation by CompHEP VEGAS menu Contents