CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HerwigppLHEFile_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Read in a LHE file from MadGraph5_aMC@NLO
4 
5 herwigppLHEFileSettingsBlock = cms.PSet(
6 
7  hwpp_LHE_Common = cms.vstring(
8 
9  'create ThePEG::Cuts /Herwig/Cuts/NoCuts', # Use no cuts in shower step, just shower
10 
11  'create ThePEG::LesHouchesInterface /Herwig/EventHandlers/LHEReader',
12  'set /Herwig/EventHandlers/LHEReader:Cuts /Herwig/Cuts/NoCuts', # No cuts while read in of LHE file
13  'set /Herwig/EventHandlers/LHEReader:MomentumTreatment RescaleEnergy',
14  'set /Herwig/EventHandlers/LHEReader:WeightWarnings 0', # Suppress weight warnings
15  'set /Herwig/EventHandlers/LHEReader:InitPDFs 0', # Explicitly set PDF of hard subprocess / Do not retrieve PDF from LHEReader
16 
17  'create ThePEG::LesHouchesEventHandler /Herwig/EventHandlers/LHEHandler',
18  'insert /Herwig/EventHandlers/LHEHandler:LesHouchesReaders 0 /Herwig/EventHandlers/LHEReader',
19  'set /Herwig/EventHandlers/LHEHandler:WeightOption VarNegWeight', # Allow positive and negative event weight
20  'set /Herwig/EventHandlers/LHEHandler:PartonExtractor /Herwig/Partons/QCDExtractor',
21  'set /Herwig/EventHandlers/LHEHandler:CascadeHandler /Herwig/Shower/ShowerHandler',
22  'set /Herwig/EventHandlers/LHEHandler:HadronizationHandler /Herwig/Hadronization/ClusterHadHandler', # Switch Hadronization on
23  'set /Herwig/EventHandlers/LHEHandler:DecayHandler /Herwig/Decays/DecayHandler', # Switch Decay on
24  'insert /Herwig/EventHandlers/LHEHandler:PreCascadeHandlers 0 /Herwig/NewPhysics/DecayHandler', # Needed in 2.7, must be removed in 3.0
25 
26  'set /Herwig/Generators/LHCGenerator:EventHandler /Herwig/EventHandlers/LHEHandler', # Activate LHEHandler
27 
28  'set /Herwig/Shower/Evolver:MaxTry 100', # Try to shower an event maximum 100 times
29  'set /Herwig/Shower/Evolver:HardVetoScaleSource Read', # Read event to define hard veto scale
30 
31  'set /Herwig/Shower/KinematicsReconstructor:ReconstructionOption General',
32  'set /Herwig/Shower/KinematicsReconstructor:InitialInitialBoostOption LongTransBoost',
33 
34  '+hwpp_MECorr_Common', # Switch off ME corrections
35  # Or at least require that the user chooses a MECorrection option
36  ),
37 
38  # Showering MadGraph5_aMC@NLO LHE files: The same PDF for the hard subprocess and the shower must be used
39  hwpp_LHE_MadGraph = cms.vstring(
40 
41  '+hwpp_LHE_Common',
42  'set /Herwig/EventHandlers/LHEReader:PDFA /Herwig/Partons/cmsPDFSet', # Shower PDF defined by HerwigppPDF_
43  'set /Herwig/EventHandlers/LHEReader:PDFB /Herwig/Partons/cmsPDFSet',
44  ),
45 
46 
47  # Showering LO MadGraph5_aMC@NLO LHE files with a different PDF for the hard subprocess
48  ############ WARNING ######
49  # This option should only be used with LO MadGraph5_aMC@NLO LHE files.
50  # In case of NLO, MC@NLO matched LHE files this results most likely in a mismatch of phase space
51  ############ WARNING ######
52  # The shower pdf is the standard PDF which one can get including a predefined PDF using HerwigppPDF_
53  # The additional pdf of the hard subprocess is also predefined in HerwigppPDF_. However it has the additional suffix _Hard
54  # E.g. hwpp_pdf_NNPDF30NLO shower pdf, hwpp_pdf_NNPDF30NLO_Hard hard subprocess pdf
55  hwpp_LHE_MadGraph_DifferentPDFs = cms.vstring(
56 
57  '+hwpp_LHE_Common',
58  'set /Herwig/EventHandlers/LHEReader:PDFA /Herwig/Partons/cmsHardPDFSet', # Hard subprocess PDF defined by HerwigppPDF_
59  'set /Herwig/EventHandlers/LHEReader:PDFB /Herwig/Partons/cmsHardPDFSet',
60  ),
61 
62 
63  # Additional common block for Powheg
64  hwpp_LHE_Powheg_Common = cms.vstring(
65 
66  '+hwpp_LHE_Common',
67  'set /Herwig/Shower/Evolver:HardVetoMode Yes', # Treat hardest emission differently
68  'set /Herwig/Shower/Evolver:HardVetoReadOption PrimaryCollision',
69  ),
70 
71  # Showering Powheg LHE files with the same PDF for the hard subprocess and the shower
72  hwpp_LHE_Powheg = cms.vstring(
73 
74  '+hwpp_LHE_Powheg_Common',
75  'set /Herwig/EventHandlers/LHEReader:PDFA /Herwig/Partons/cmsPDFSet', # Shower PDF defined by HerwigppPDF_
76  'set /Herwig/EventHandlers/LHEReader:PDFB /Herwig/Partons/cmsPDFSet',
77  ),
78 
79  # Showering Powheg LHE files with a different PDF for the hard subprocess
80  # The shower pdf is the standard PDF which one can get including a predefined PDF using HerwigppPDF_
81  # The additional pdf of the hard subprocess is also predefined in HerwigppPDF_. However it has the additional suffix _Hard
82  # E.g. hwpp_pdf_NNPDF30NLO shower pdf, hwpp_pdf_NNPDF30NLO_Hard hard subprocess pdf
83  hwpp_LHE_Powheg_DifferentPDFs = cms.vstring(
84 
85  '+hwpp_LHE_Powheg_Common',
86  'set /Herwig/EventHandlers/LHEReader:PDFA /Herwig/Partons/cmsHardPDFSet', # Hard subprocess PDF defined by HerwigppPDF_
87  'set /Herwig/EventHandlers/LHEReader:PDFB /Herwig/Partons/cmsHardPDFSet',
88  ),
89 )
90