HWPLOT 2.0

A routine for displaying the perturbative part of a standard HERWIG event. Written by Christopher Lester
 
 

Pictures

Another GMSB event with no lables.Here are two examples of unlabeled postscript output from HWPLOT: Event 11  and  Event 13.  Here are the same events, but this time with labels turned on:  Event 11  and  Event 13. .These particular events used the GMSB model.

How does HWPLOT work ?

HWPLOT is a module which must be linked with HERWIG and a main program loop. It contains a subroutine hwplot which, if called, creates a .in file containing the event-diagram in a format suitable for input to my modified version of feynfig (which you will need to compile). feynfig can read this file and write it out in xfig format for either direct editing in xfig, or immediate conversion into postscript for viewing or printing. ( xfig can be turned into postscript using
fig2dev -L ps
or similar commands on other systems.)

For example:

You might call hwplot from within your event generation program like this:
      SUBROUTINE myanalysis

      include 'HWPLOT.INC'

      logical iWantTextLabelsToo
      character*(hwpltf) myFilePrefix
      integer MaxGen

      ... lots of analysis ...

      iWantTextLablesToo=.true.
      myFilePrefix='myfile'
      maxGen=5

      CALL hwplot(maxGen, 
     &            iWantTextLabelsToo,
     &            myFilePrefix,
     &            72)      ! Creates a diagram with up to
                           ! five generations of perturbative
                           ! particles. The info is saved in
                           ! a file called myprefix72.in

      ... some more analysis ...
      END
And to generate a whole-page postscript picture of the event from the test.in file generated by hwplot you might do something like:
        
feynfig < test.in | fig2dev -L ps -P > test.ps ; gv test.ps
Or if you have many files called myfileNNN.in (where NNN is a number) then you could try the following script:
#!/bin/bash
for i in myfile*.in
do {
feynfig < $i | fig2dev -L ps -P > ${i}.ps ; gv ${i}.ps &
} done

Options currently supported.

The source code.

Here are the three files you need. Note that HERWIG60.INC will also need to be in the search path for include files.

hwplot.f
HWPLOT.INC
feynfig.f

IMPORTANT

HWPLOT is more finished than it was before, but the label positioning still needs to be improved, it would also be nice to restrict the display of gluons in showering, and there's a lot of other stuff which needs to be fixed as well (notably format statements made true f77 compat.). So use this at your own risk only, or wait for this list of bugs to dwindle.