diff --git a/src/FxFx-Tree.in b/src/FxFx-Tree.in --- a/src/FxFx-Tree.in +++ b/src/FxFx-Tree.in @@ -1,185 +1,173 @@ ############################################################# # Create an event generator taking the default EventGenerator # # as the starting point ... # ############################################################# cd /Herwig/Generators # Copy the default EventGenerator with its settings to a new # which will be the basis of the one we use for showering: cp EventGenerator theGenerator ############################################################# # Create a LH event handler (set up & assigned below) ... # ############################################################# cd /Herwig/EventHandlers library HwFxFx.so create Herwig::FxFxEventHandler theLesHouchesHandler ############################################################# # Create a LH reader (set up & assigned below) ... # ############################################################# cd /Herwig/EventHandlers library HwFxFx.so create Herwig::FxFxFileReader theLHReader ############################################################# # Create an FxFxHandler (set up & assigned below) ... # ############################################################# cd /Herwig/Shower library HwFxFxHandler.so create Herwig::FxFxHandler FxFxHandler -set /Herwig/Shower/FxFxHandler:ShowerModel /Herwig/Shower/ShowerModel set /Herwig/Shower/FxFxHandler:SplittingGenerator /Herwig/Shower/SplittingGenerator +set /Herwig/Shower/FxFxHandler:KinematicsReconstructor /Herwig/Shower/KinematicsReconstructor +set /Herwig/Shower/FxFxHandler:PartnerFinder /Herwig/Shower/PartnerFinder ############################################################# # Create an LHAPDF (set up & assigned below) ... # ############################################################# cd /Herwig/Partons create ThePEG::LHAPDF thePDFset ThePEGLHAPDF.so ############################################################ # Create a cuts object ... # ############################################################ cd /Herwig/EventHandlers create ThePEG::Cuts /Herwig/Cuts/NoCuts ############################################################# # Setup the LH event handler ... # ############################################################# cd /Herwig/EventHandlers insert theLesHouchesHandler:FxFxReaders[0] theLHReader set theLesHouchesHandler:WeightOption VarNegWeight set theLesHouchesHandler:PartonExtractor /Herwig/Partons/PPExtractor set theLesHouchesHandler:CascadeHandler /Herwig/Shower/FxFxHandler set theLesHouchesHandler:HadronizationHandler /Herwig/Hadronization/ClusterHadHandler set theLesHouchesHandler:DecayHandler /Herwig/Decays/DecayHandler ############################################################ ################################################## # Shower parameters ################################################## # normally, you want # the scale supplied in the event files (SCALUP) # to be used as a pT veto scale in the parton shower set /Herwig/Shower/ShowerHandler:MaxPtIsMuF Yes set /Herwig/Shower/ShowerHandler:RestrictPhasespace Yes ############################################################ ############################################################# # Set up the LH reader ... # ############################################################# cd /Herwig/EventHandlers set theLHReader:WeightWarnings false # Input event file name: # 10 k set theLHReader:FileName NAME_OF_FILE #(the file can be compressed (gziped,bziped)) set theLHReader:MomentumTreatment RescaleEnergy set theLHReader:Cuts /Herwig/Cuts/NoCuts #################################################### # Set up the generator ... # #################################################### cd /Herwig/Generators set theGenerator:EventHandler /Herwig/EventHandlers/theLesHouchesHandler set theGenerator:NumberOfEvents 100000000 set theGenerator:RandomNumberGenerator:Seed 31122001 set theGenerator:PrintEvent 1 set theGenerator:MaxErrors 10000 ######################################################### # Option to off shower / hadronization / decays / MPI. # ######################################################### cd /Herwig/EventHandlers # set theLesHouchesHandler:CascadeHandler NULL #set theLesHouchesHandler:HadronizationHandler NULL # remove the quark check in case hadronization is turned off # set /Herwig/Analysis/Basics:CheckQuark false #set theLesHouchesHandler:DecayHandler NULL # The handler for multiple parton interactions #set /Herwig/Shower/FxFxHandler:MPIHandler NULL ############################################################# # Set up the FxFxHandler ... # ############################################################# cd /Herwig/Shower set /Herwig/Shower/FxFxHandler:MPIHandler /Herwig/UnderlyingEvent/MPIHandler set /Herwig/Shower/FxFxHandler:RemDecayer /Herwig/Partons/RemnantDecayer set /Herwig/Shower/FxFxHandler:ShowerAlpha AlphaQCD # set the heavy quark decay product vetoing process on/off set FxFxHandler:HeavyQVeto Yes # Automatic detection of the hard process (experimental) set FxFxHandler:HardProcessDetection Automatic set FxFxHandler:ihrd 3 # No. of light jets in maximum-multiplicity FxFx process set FxFxHandler:njetsmax 1 # Make sure this is set correctly! # Mimimum parton-parton R-sep used for generation. set FxFxHandler:drjmin 0 ######################################################### # Recommended key merging parameters below # ######################################################### cd /Herwig/Shower # turn the Vetoing On or Off completely set FxFxHandler:VetoIsTurnedOff VetoingIsOn # merging mode: in this case Tree level with MG5 information: set FxFxHandler:MergeMode TreeMG5 # merging scale set FxFxHandler:ETClus 25*GeV # jet radius used in clustering in merging. set FxFxHandler:RClus 1.0 # Max |eta| for jets in clustering in merging. set FxFxHandler:EtaClusMax 10 # Default 1.5 factor used to decide if a jet matches a parton # in merging: if DR(parton,jet) valgrind-$(notdir $(subst .in,,$<))-read.log $(VALGRIND) ./Herwig run $(notdir $(subst .in,.run,$<)) -N 500 -d1 -D &> valgrind-$(notdir $(subst .in,,$<))-run.log valgrind: valgrind-init valgrind-read valgrind-run valgrind-init: $(VALGRIND) ./Herwig init -d1 -D -L$(top_builddir)/lib defaults/HerwigDefaults.in \ &> /tmp/valgrind-init.log valgrind-read: $(VALGRIND) ./Herwig read -d1 -D LHC.in &> /tmp/valgrind-read.log valgrind-run: $(VALGRIND) ./Herwig run -d1 -D -N5 LHC.run &> /tmp/valgrind-run.log CHECKCOMMAND = ./Herwig run $(notdir $(subst .in,.run,$<)) -N500 -d1 -D check-%: $(srcdir)/%.in HerwigDefaults.rpo link-helper-files ./Herwig read -i . $< -D @echo $(CHECKCOMMAND) @$(CHECKCOMMAND) && echo "# $@ OK #" \ || (echo "###### $@ BAD ######"; false) SETUPTHEPEG=$(THEPEGPATH)/bin/setupThePEG THEPEGREPO=$(THEPEGLIBPATH)/ThePEGDefaults.rpo install-data-hook: @echo Creating repository @./Herwig init -L$(DESTDIR)$(pkglibdir) -i$(DESTDIR)$(pkgdatadir) -i$(DESTDIR)$(pkgdatadir)/snippets $(DESTDIR)$(defaultsdir)/HerwigDefaults.in --repo=$(DESTDIR)$(pkgdatadir)/HerwigDefaults.rpo @if test -n "$(DESTDIR)"; \ then sed -i.bak -e "s@$(DESTDIR)@@g" $(DESTDIR)$(pkgdatadir)/HerwigDefaults.rpo; \ rm -f $(DESTDIR)$(pkgdatadir)/HerwigDefaults.rpo.bak; \ fi uninstall-hook: rm -f $(DESTDIR)$(pkgdatadir)/HerwigDefaults.rpo register: register-with-thepeg-repo register-with-thepeg-repo: @if test -x "$(SETUPTHEPEG)" -a -w "$(THEPEGREPO)"; \ then echo Registering with ThePEG; \ "$(SETUPTHEPEG)" --init \ $(DESTDIR)$(defaultsdir)/HerwigDefaults.in \ -r "$(THEPEGREPO)" -o "$(THEPEGREPO)" \ -i $(DESTDIR)$(pkgdatadir) \ -l$(DESTDIR)$(pkglibdir) ; \ if test -n "$(DESTDIR)"; \ then sed -i -e "s@$(DESTDIR)@@g" "$(THEPEGREPO)" ; fi ; \ fi unregister : unregister-from-thepeg-repo unregister-from-thepeg-repo: @if test -x "$(SETUPTHEPEG)" -a -w "$(THEPEGREPO)"; \ then echo Unregistering with ThePEG; \ "$(SETUPTHEPEG)" --init defaults/HerwigCleanup.in \ -r "$(THEPEGREPO)" -o "$(THEPEGREPO)" \ -l$(DESTDIR)$(pkglibdir) ; \ fi EXTRA_DIST = herwigopts.ggo nodist_Herwig_SOURCES = hgstamp.inc BUILT_SOURCES += hgstamp.inc CLEANFILES += hgstamp.inc HGVERSION := $(shell hg -R $(top_srcdir) parents --template '"Herwig {node|short} ({branch})"' 2> /dev/null || echo \"$(PACKAGE_STRING)\" || true ) .PHONY: update_hgstamp hgstamp.inc: update_hgstamp @[ -f $@ ] || touch $@ @echo '$(HGVERSION)' | cmp -s $@ - || echo '$(HGVERSION)' > $@ GENGETOPT = gengetopt %opts.h %opts.c : %opts.ggo $(GENGETOPT) < $<