コード例 #1
0
## Riccardo Di Sipio
##
## See bottom of this file for an example POWHEG config

include("GeneratorUtils/StdEvgenSetup.py")

# ## Control log levels
# svcMgr.MessageSvc.OutputLevel = DEBUG

## Add H++ to the job list
from Herwigpp_i.Herwigpp_iConf import Herwigpp
topAlg += Herwigpp()

from Herwigpp_i import config as hw
## According to Paolo Nason, using NLO PDFs for ME and LO for PS/UE is okay
cmds = hw.energy_cmds(7000) + hw.base_cmds() + hw.lo_pdf_cmds(
    "cteq6ll.LHpdf") + hw.ue_tune_cmds("CTEQ6L1-UE-EE-7000-3")

# TODO: Check that mass resets (to match POWHEG) are approved.
cmds += """
setup /Herwig/Particles/t     6 t    172.5 1.4 14 0  2  3 2 0
#setup /Herwig/Particles/tbar -6 tbar 174.2 1.4 14 0 -2 -3 2 0
set /Herwig/Particles/u:NominalMass 0.320
set /Herwig/Particles/ubar:NominalMass 0.320

set /Herwig/Particles/d:NominalMass 0.320
set /Herwig/Particles/dbar:NominalMass 0.320

set /Herwig/Particles/s:NominalMass 0.5
set /Herwig/Particles/sbar:NominalMass 0.5

set /Herwig/Particles/c:NominalMass 1.55
コード例 #2
0
## Herwig++ config for the CTEQ6L1 UE-EE-5 tune series with an LO ME PDF
include("MC15JobOptions/Herwigpp_Base_Fragment.py")

## Construct command set
from Herwigpp_i import config as hw
cmds = hw.energy_cmds(int(runArgs.ecmEnergy)) + hw.base_cmds() \
    + hw.lo_pdf_cmds("MRSTMCal.LHgrid") \
    + hw.ue_tune_cmds("UE-EE-5-LO**")
genSeq.Herwigpp.Commands += cmds.splitlines()
del cmds

evgenConfig.tune = "LO**-UE-EE-5"
## Generic job options file for Herwig++

include("GeneratorUtils/StdEvgenSetup.py")

# ## Control log levels
# svcMgr.MessageSvc.OutputLevel = DEBUG

## Add H++ to the job list
from Herwigpp_i.Herwigpp_iConf import Herwigpp
topAlg += Herwigpp()

## Get basic Herwig++ Atlas tune params
from Herwigpp_i import config as hw
cmds = hw.energy_cmds(1960) + hw.base_cmds() + hw.lo_pdf_cmds(
    "cteq6ll.LHpdf") + hw.ue_tune_cmds("CTEQ6L1-UE-EE-1800-1")

## Set jet min pT cut: override on Athena command line with e.g. "-c JETPTCUT=30"
JET_PT_CUT = 1
if 'JETPTCUT' in dir():
    JET_PT_CUT = JETPTCUT

## Add to commands
cmds += """
set /Herwig/Generators/LHCGenerator:EventHandler:BeamB /Herwig/Particles/pbar-
insert /Herwig/MatrixElements/SimpleQCD:MatrixElements[0] /Herwig/MatrixElements/MEQCD2to2
set /Herwig/Cuts/JetKtCut:MinKT %f*GeV
set /Herwig/Cuts/QCDCuts:MHatMin %f*GeV
set /Herwig/UnderlyingEvent/MPIHandler:IdenticalToUE 0
""" % (JET_PT_CUT, 2 * JET_PT_CUT)

## Use weighted events with an enhanced pT spectrum
コード例 #4
0
## Herwig++ config for the CTEQ6L1 UE-EE-4 tune series with an LO ME PDF
include("MC15JobOptions/Herwigpp_Base_Fragment.py")

## Construct command set
from Herwigpp_i import config as hw

cmds = (
    hw.energy_cmds(int(runArgs.ecmEnergy))
    + hw.base_cmds()
    + hw.lo_pdf_cmds("cteq6ll.LHpdf")
    + hw.ue_tune_cmds("UE-EE-4-CTEQ6L1")
)
genSeq.Herwigpp.Commands += cmds.splitlines()
del cmds

evgenConfig.tune = "CTEQ6L1-UE-EE-4"
コード例 #5
0
ファイル: LEPHerwigpp.py プロジェクト: jbrosamer/Thesis
## Job options file for Herwig++, LEP1 Z -> qq production

include("GeneratorUtils/StdEvgenSetup.py")
evgenConfig.description = "Herwigpp e+e-"
evgenConfig.generators += ["Herwigpp"]
include("MC12JobOptions/Herwigpp_Base_Fragment.py")

## Construct command set

from Herwigpp_i import config as hw

cmds = hw.energy_cmds(runArgs.ecmEnergy) + hw.base_cmds() + hw.lo_pdf_cmds("cteq6ll.LHpdf")

topAlg.Herwigpp.Commands = cmds.splitlines()
evgenConfig.minevents = 5000
## Add to commands
cmds += """
cd /Herwig/MatrixElements
insert SimpleEE:MatrixElements 0 MEee2gZ2qq
cd /Herwig/Generators
set LEPGenerator:EventHandler:LuminosityFunction:Energy 91.2
set LEPGenerator:EventHandler:CascadeHandler:MPIHandler NULL
set /Herwig/Particles/e-:PDF /Herwig/Partons/LeptonPDF
set /Herwig/Particles/e+:PDF /Herwig/Partons/LeptonPDF

# These next lines are put here just to avoid a meaningless error that p and pbar do not have PDF's
##set /Herwig/Particles/p+:PDF /Herwig/Partons/AtlasPDFsetLO
##set /Herwig/Particles/pbar-:PDF /Herwig/Partons/AtlasPDFsetLO

set /Herwig/Generators/LEPGenerator:EventHandler:BeamA /Herwig/Particles/e+
コード例 #6
0
## Herwig++ config for the CTEQ6L1 UE-EE-5 tune series with an LO ME PDF
include("MC15JobOptions/Herwigpp_Base_Fragment.py")

## Construct command set
from Herwigpp_i import config as hw
cmds = hw.energy_cmds(int(runArgs.ecmEnergy)) + hw.base_cmds() \
    + hw.lo_pdf_cmds("cteq6ll.LHpdf") \
    + hw.ue_tune_cmds("UE-EE-5-CTEQ6L1")
genSeq.Herwigpp.Commands += cmds.splitlines()
del cmds

evgenConfig.tune = "CTEQ6L1-UE-EE-5"
コード例 #7
0
## Generic job options file for Herwig++

include("GeneratorUtils/StdEvgenSetup.py")

# ## Control log levels
# svcMgr.MessageSvc.OutputLevel = DEBUG

## Add H++ to the job list
from Herwigpp_i.Herwigpp_iConf import Herwigpp
topAlg += Herwigpp()

## Get basic Herwig++ Atlas tune params
from Herwigpp_i import config as hw
cmds = hw.energy_cmds(7000) + hw.base_cmds() + hw.lo_pdf_cmds(
    "cteq6ll.LHpdf") + hw.ue_tune_cmds("UE-EE-4-CTEQ6L1")

## Add to commands
cmds += """
## Number of events for Herwig++ to print
#set /Herwig/Generators/LHCGenerator:PrintEvent 10

## Amount of info to print in debug output
set /Herwig/Generators/LHCGenerator:DebugLevel 2

## Insert MEs
insert /Herwig/MatrixElements/SimpleQCD:MatrixElements[0] /Herwig/MatrixElements/MEQCD2to2
#insert /Herwig/MatrixElements/SimpleQCD:MatrixElements[0] /Herwig/MatrixElements/MEqq2gZ2ff
#insert /Herwig/MatrixElements/SimpleQCD:MatrixElements[0] /Herwig/MatrixElements/MEqq2W2ff
#insert /Herwig/MatrixElements/SimpleQCD:MatrixElements[0] /Herwig/MatrixElements/MEGammaGamma
#insert /Herwig/MatrixElements/SimpleQCD:MatrixElements[0] /Herwig/MatrixElements/MEGammaJet
#insert /Herwig/MatrixElements/SimpleQCD:MatrixElements[0] /Herwig/MatrixElements/MEHiggs
コード例 #8
0
## Job options file for Herwig++, reading a Les Houches Accord event file

include("GeneratorUtils/StdEvgenSetup.py")

# ## Control log levels
# svcMgr.MessageSvc.OutputLevel = DEBUG

## Add H++ to the job list
from Herwigpp_i.Herwigpp_iConf import Herwigpp
topAlg += Herwigpp()

## Get basic Herwig++ Atlas tune params
from Herwigpp_i import config as hw
cmds = hw.energy_cmds(7000) + hw.base_cmds() + \
       hw.lo_pdf_cmds("cteq6ll.LHpdf") + hw.ue_tune_cmds("CTEQ6L1-UE-EE-7000-3") + \
       hw.lhef_cmds(nlo=False)

## Set commands
topAlg.Herwigpp.Commands = cmds.splitlines()