How to make a generator HEPG file (*.gen) from a *.PEV file (CompHep LesHouches output)
To make a generator file *.gen from a *.PEV file (e.g. CompHep file)
follow these simple steps. I used the tcsh shell to do this.
setenv USESHLIBS 1
setup cdfsoft2 4.11.1
newrel -t $BFCURRENT wzgamma
Then remove "-lpythia_services" at the line 10 in the
override LOADLIBES += $(LUND_DIR)/lib/liblund.a -lLesHouches
Then create a cdfGen executable:
Run cdfGen with your tcl file:
I've made two simple scripts to create gen files(see the examples below):
Please modify them in a way you like.
./generate_sample.sh Zeegamma_events.PEV 5
1st argument is a filename, 2nd - number of events to process.
The total event number is written at the top of a *.PEV file.
So the script takes Zeegamma_events.PEV from the input directory
$MY_INPUTDIR (/cdf/scratch/frisch/) and puts the output file(gen
file!)to the output directory $MY_OUTPUTDIR(/cdf/scratch/loginov/).
5 events are processed.
The name of the gen file(output file) in our example will be
Zeegamma_events.gen, i.e. "PEV" changes to "gen".
Different variables(like input/output locations) are defined in the
To run generate_sample.sh on the several files you may use generate_samples.sh as an example.
Questions, suggestion, comments, abuse direct to