Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://theory.sinp.msu.ru/comphep_html/tutorial/node28.html
Дата изменения: Wed Aug 9 20:40:47 2000 Дата индексирования: Mon Oct 1 22:37:09 2012 Кодировка: |
CompHEP was created as a program for calculation in the interactive regime. But in practice long-time calculations are typical. Due to this circumstance we have implemented the batch (or, say, `blind') calculation mode into CompHEP.
If one launches s_comphep with an option "-blind", e.g.
$COMPHEP/s_comphep -blind STRING
then CompHEP does not open the X11 window and reads the control characters
from STRING.
For imitating functional keys the following control characters are
defined:
'{': Escape key
']': Right Arrow
'[': Left Arrow key
'}': Enter key
So, the user has a possibility to concatenate into STRING a list of commands which simulate the keyboard and execute s_comphep in the non-interactive mode.
The work of s_comphep in the blind mode is simplified a little. It automatically passes by all warnings and messages answering 'Y' (Yes) any question itself. The CompHEP title screen is missed in this mode and the simulation of keyboard hit, which is used to leave the first screen, is not needed.
An example of the blind session is
realized in your comphep command file.
When you activate the Make n_comphep_c function of Menu 6
then s_comphep ends with an exit code 24 and
$COMPHEP/s_comphep -blind "]}}]]]}9"
is launched. The above command performs symbolical calculations
and writes down the C-code for the squared matrix element
into the directory results. Note that the last symbol '9' simulates
the work of the F9 functional key which in its turn completes the session
(See Section ).