CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HerwigppDefaults_cfi.py
Go to the documentation of this file.
2 
3 herwigDefaultsBlock = cms.PSet(
4  dataLocation = cms.string('${HERWIGPATH}'),
5 
6  repository = cms.string('HerwigDefaults.rpo'),
7  eventHandlers = cms.string('/Herwig/EventHandlers'),
8  generatorModule = cms.string('/Herwig/Generators/LHCGenerator'),
9 
10  run = cms.string('LHC'),
11 
12  cmsDefaults = cms.vstring(
13  '+pdfMRST2001',
14  '+cm14TeV',
15  '+ue_2_3',
16  '+basicSetup',
17  '+setParticlesStableForDetector',
18  ),
19 
20  basicSetup = cms.vstring(
21  'cd /Herwig/Generators',
22  'create ThePEG::RandomEngineGlue /Herwig/RandomGlue',
23  'set LHCGenerator:RandomNumberGenerator /Herwig/RandomGlue',
24  'set LHCGenerator:NumberOfEvents 10000000',
25  'set LHCGenerator:DebugLevel 1',
26  'set LHCGenerator:PrintEvent 0',
27  'set LHCGenerator:MaxErrors 10000',
28  'cd /Herwig/Particles',
29  'set p+:PDF /Herwig/Partons/cmsPDFSet',
30  'set pbar-:PDF /Herwig/Partons/cmsPDFSet',
31  'set K0:Width 1e300*GeV',
32  'set Kbar0:Width 1e300*GeV',
33  'cd /',
34  ),
35 
36  # PDF presets
37  ##############################
38 
39  # Default pdf for Herwig++ 2.3
40  pdfMRST2001 = cms.vstring(
41  'cd /Herwig/Partons',
42  'create Herwig::MRST MRST2001 HwMRST.so',
43  'setup MRST2001 ${HERWIGPATH}/PDF/mrst/2001/lo2002.dat',
44  'set MRST2001:RemnantHandler HadronRemnants',
45  'cp MRST2001 cmsPDFSet',
46  'cd /',
47  ),
48  # Default pdf for Herwig++ 2.4
49  pdfMRST2008LOss = cms.vstring(
50  'cp /Herwig/Partons/MRST /Herwig/Partons/cmsPDFSet',
51  ),
52  pdfCTEQ5L = cms.vstring(
53  'cd /Herwig/Partons',
54  'create ThePEG::LHAPDF CTEQ5L ThePEGLHAPDF.so',
55  'set CTEQ5L:PDFName cteq5l.LHgrid',
56  'set CTEQ5L:RemnantHandler HadronRemnants',
57  'cp CTEQ5L cmsPDFSet',
58  'cd /',
59  ),
60  pdfCTEQ6L1 = cms.vstring(
61  'cd /Herwig/Partons',
62  'create ThePEG::LHAPDF CTEQ6L1 ThePEGLHAPDF.so',
63  'set CTEQ6L1:PDFName cteq6ll.LHpdf',
64  'set CTEQ6L1:RemnantHandler HadronRemnants',
65  'cp CTEQ6L1 cmsPDFSet',
66  'cd /',
67  ),
68 
69  # CME presets
70  ##############################
71 
72  cm7TeV = cms.vstring(
73  'set /Herwig/Generators/LHCGenerator:EventHandler:LuminosityFunction:Energy 7000.0',
74  'set /Herwig/Shower/Evolver:IntrinsicPtGaussian 2.0*GeV',
75  ),
76  cm8TeV = cms.vstring(
77  'set /Herwig/Generators/LHCGenerator:EventHandler:LuminosityFunction:Energy 8000.0',
78  'set /Herwig/Shower/Evolver:IntrinsicPtGaussian 2.0*GeV',
79  ),
80  cm10TeV = cms.vstring(
81  'set /Herwig/Generators/LHCGenerator:EventHandler:LuminosityFunction:Energy 10000.0',
82  'set /Herwig/Shower/Evolver:IntrinsicPtGaussian 2.1*GeV',
83  ),
84  cm14TeV = cms.vstring(
85  'set /Herwig/Generators/LHCGenerator:EventHandler:LuminosityFunction:Energy 14000.0',
86  'set /Herwig/Shower/Evolver:IntrinsicPtGaussian 2.2*GeV',
87  ),
88 
89  # UE tunes
90  ##############################
91 
92  # UE Tune from Herwig++ 2.3 (MRST2001)
93  ue_2_3 = cms.vstring(
94  'cd /Herwig/UnderlyingEvent',
95  'set KtCut:MinKT 4.0',
96  'set UECuts:MHatMin 8.0',
97  'set MPIHandler:InvRadius 1.5',
98  'cd /',
99  ),
100  # UE Tune from Herwig++ 2.4 (MRST2008LO**)
101  ue_2_4 = cms.vstring(
102  'cd /Herwig/UnderlyingEvent',
103  'set KtCut:MinKT 4.3',
104  'set UECuts:MHatMin 8.6',
105  'set MPIHandler:InvRadius 1.2',
106  'cd /',
107  ),
108 
109  # reweight presets
110  ##############################
111 
112  reweightConstant = cms.vstring(
113  'mkdir /Herwig/Weights',
114  'cd /Herwig/Weights',
115  'create ThePEG::ReweightConstant reweightConstant ReweightConstant.so',
116  'cd /',
117  'set /Herwig/Weights/reweightConstant:C 1',
118  'insert SimpleQCD:Reweights[0] /Herwig/Weights/reweightConstant',
119  ),
120  reweightPthat = cms.vstring(
121  'mkdir /Herwig/Weights',
122  'cd /Herwig/Weights',
123  'create ThePEG::ReweightMinPT reweightMinPT ReweightMinPT.so',
124  'cd /',
125  'set /Herwig/Weights/reweightMinPT:Power 4.5',
126  'set /Herwig/Weights/reweightMinPT:Scale 15*GeV',
127  'insert SimpleQCD:Reweights[0] /Herwig/Weights/reweightMinPT',
128  ),
129 
130  # Disable decays of particles with ctau > 10mm
131  setParticlesStableForDetector = cms.vstring(
132  'cd /Herwig/Particles',
133  'set mu-:Stable Stable',
134  'set mu+:Stable Stable',
135  'set Sigma-:Stable Stable',
136  'set Sigmabar+:Stable Stable',
137  'set Lambda0:Stable Stable',
138  'set Lambdabar0:Stable Stable',
139  'set Sigma+:Stable Stable',
140  'set Sigmabar-:Stable Stable',
141  'set Xi-:Stable Stable',
142  'set Xibar+:Stable Stable',
143  'set Xi0:Stable Stable',
144  'set Xibar0:Stable Stable',
145  'set Omega-:Stable Stable',
146  'set Omegabar+:Stable Stable',
147  'set pi+:Stable Stable',
148  'set pi-:Stable Stable',
149  'set K+:Stable Stable',
150  'set K-:Stable Stable',
151  'set K_S0:Stable Stable',
152  'set K_L0:Stable Stable',
153  'cd /',
154  ),
155 
156  # Default settings for using LHE files
157  lheDefaults = cms.vstring(
158  'cd /Herwig/Cuts',
159  'create ThePEG::Cuts NoCuts',
160  'cd /Herwig/EventHandlers',
161  'create ThePEG::LesHouchesInterface LHEReader',
162  'set LHEReader:Cuts /Herwig/Cuts/NoCuts',
163  'create ThePEG::LesHouchesEventHandler LHEHandler',
164  'set LHEHandler:WeightOption VarWeight',
165  'set LHEHandler:PartonExtractor /Herwig/Partons/QCDExtractor',
166  'set LHEHandler:CascadeHandler /Herwig/Shower/ShowerHandler',
167  'set LHEHandler:HadronizationHandler /Herwig/Hadronization/ClusterHadHandler',
168  'set LHEHandler:DecayHandler /Herwig/Decays/DecayHandler',
169  'insert LHEHandler:LesHouchesReaders 0 LHEReader',
170  'cd /Herwig/Generators',
171  'set LHCGenerator:EventHandler /Herwig/EventHandlers/LHEHandler',
172  'cd /Herwig/Shower',
173  'set Evolver:HardVetoScaleSource Read',
174  'set Evolver:MECorrMode No',
175  'cd /',
176  ),
177  lheDefaultPDFs = cms.vstring(
178  'cd /Herwig/EventHandlers',
179  'set LHEReader:PDFA /cmsPDFSet',
180  'set LHEReader:PDFB /cmsPDFSet',
181  'cd /',
182  ),
183 
184  # Default settings for using POWHEG
185  powhegDefaults = cms.vstring(
186  # Need to use an NLO PDF
187  'cp /Herwig/Partons/MRST-NLO /cmsPDFSet',
188  'set /Herwig/Particles/p+:PDF /Herwig/Partons/MRST-NLO',
189  'set /Herwig/Particles/pbar-:PDF /Herwig/Partons/MRST-NLO',
190  # and strong coupling
191  'create Herwig::O2AlphaS O2AlphaS',
192  'set /Herwig/Generators/LHCGenerator:StandardModelParameters:QCD/RunningAlphaS O2AlphaS',
193  # Setup the POWHEG shower
194  'cd /Herwig/Shower',
195  # use the general recon for now
196  'set KinematicsReconstructor:ReconstructionOption General',
197  # create the Powheg evolver and use it instead of the default one
198  'create Herwig::PowhegEvolver PowhegEvolver HwPowhegShower.so',
199  'set ShowerHandler:Evolver PowhegEvolver',
200  'set PowhegEvolver:ShowerModel ShowerModel',
201  'set PowhegEvolver:SplittingGenerator SplittingGenerator',
202  'set PowhegEvolver:MECorrMode 0',
203  # create and use the Drell-yan hard emission generator
204  'create Herwig::DrellYanHardGenerator DrellYanHardGenerator',
205  'set DrellYanHardGenerator:ShowerAlpha AlphaQCD',
206  'insert PowhegEvolver:HardGenerator 0 DrellYanHardGenerator',
207  # create and use the gg->H hard emission generator
208  'create Herwig::GGtoHHardGenerator GGtoHHardGenerator',
209  'set GGtoHHardGenerator:ShowerAlpha AlphaQCD',
210  'insert PowhegEvolver:HardGenerator 0 GGtoHHardGenerator',
211  )
212 )