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