If one has many subprocesses to calculate and does not want to manually go through each and everyone of them with the GUI for the VEGAS calculation there is a much easier alternative that comes with compHEP, num_batch.pl.
How to use num_batch.pl
1) First set up all the diagrams you want calculated and do the symbolic calculations and run the c code so it brings you to the window that includes VEGAS as an option. At this point you can set any of the parameters in the theory that you want calculated. Press F9 to quit out of all your comphep sessions. Make sure you noted how many subprocesses there were or what the numbers of the ones you wanted to compute are.
2) In your user directory there exists a file num_batch.pl. To run vegas integration on all subprocesses if there are N of them you want use the command(a list can be inserted if only certain subprocess are to be run i.e 1-3,6-N)
./num_batch.pl –run vegas –proc 1-N
3) If you want to get at any of the individual results other than posted on the screen they are stored in the results directory under prt_n where n is the monte carlo run #. If the sum of all the subprocesses is all you are interested in then use the command
./num_batch.pl –lcs results/prt* > temp.out
(this will sum all the cross sections together and pipe it to an output file temp.out(you can remove the > temp.out if you just want to see it on the screen, if one just wants to sum several cross sections a list can be used in place of prt*)
4) At this point if one wants to run another batch job for the same subprocesses but different parameters first delete batch.dat and all the prt files from your results directory. Then from your results directory run
./n_comphep
This brings up the GUI for the numerical calculations, change any parameters here, exit with F9 and then run the batch jobs you want again