To run this, 

1) put PythiaGaplhe.cc into your Pythia user directory and compile it.

2) modify the analyzer-lhe.cc file to point to the jetevents.lhe named pipe file that you will create in your Pythia user directory in your file system.

3) modify analyzer-lhe.cc and analyzer-jets.cc to change MaxLHEevents from 30000000 to whatever you would like.

4) compile the Deductor code with

   deductor --new gaplhe mod-gap-lhe.cc analyzer-gap.h analyzer-gap.cc analyzer-lhe.h analyzer-lhe.cc ductUE.cc local/ 
   deductor --build gaplhe

5) in your Pythia user directory, create a named pipe "file" with

   mkfifo jetevents.lhe

   then run your PythiaJetslhe code. It will wait for events.

4) in your Deductor directory, run the Deductor code with

   deductor --run gaplhe.lhe

5) The Pythia code will produce results in several files.

6) The Deductor code will also produce results recorded in the directory jetslhe.bundle. It will let you know that it has finished its job. It may record a segmentation fault, but that is not a problem since the job has been completed. If the code does not stop, just stop it with control-c. Then execute

   deductor --result jetevents.lhe

to make human readable results files in gaplhe.bundle/result. (These files contain more information than in the Pythia file.)