CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
herwigDefaults_cff.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  '+pdfCTEQ6LL',
14  '+basicSetup',
15  '+cm14TeV',
16  '+setParticlesStableForDetector',
17  ),
18 
19  basicSetup = cms.vstring(
20  'cd /Herwig/Generators',
21  'create ThePEG::RandomEngineGlue /Herwig/RandomGlue',
22  'set LHCGenerator:RandomNumberGenerator /Herwig/RandomGlue',
23  'set LHCGenerator:NumberOfEvents 10000000',
24  'set LHCGenerator:DebugLevel 1',
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 myPDFset ThePEGLHAPDF.so',
60  'set myPDFset:PDFName cteq6ll.LHpdf',
61  'set myPDFset:RemnantHandler HadronRemnants',
62  'set /Herwig/Particles/p+:PDF myPDFset',
63  'set /Herwig/Particles/pbar-:PDF myPDFset',
64  'cd /'
65  ),
66  pdfCT10 = cms.vstring(
67  'cd /Herwig/Partons',
68  'create ThePEG::LHAPDF myPDFset ThePEGLHAPDF.so',
69  'set myPDFset:PDFName CT10.LHgrid',
70  'set myPDFset:RemnantHandler HadronRemnants',
71  'set /Herwig/Particles/p+:PDF myPDFset',
72  'set /Herwig/Particles/pbar-:PDF myPDFset',
73  'cd /'
74  ),
75 
76  # CME presets
77  ##############################
78 
79  cm7TeV = cms.vstring(
80  'set /Herwig/Generators/LHCGenerator:EventHandler:LuminosityFunction:Energy 7000.0',
81  'set /Herwig/Shower/Evolver:IntrinsicPtGaussian 2.0*GeV',
82  ),
83  cm10TeV = cms.vstring(
84  'set /Herwig/Generators/LHCGenerator:EventHandler:LuminosityFunction:Energy 10000.0',
85  'set /Herwig/Shower/Evolver:IntrinsicPtGaussian 2.1*GeV',
86  ),
87  cm14TeV = cms.vstring(
88  'set /Herwig/Generators/LHCGenerator:EventHandler:LuminosityFunction:Energy 14000.0',
89  'set /Herwig/Shower/Evolver:IntrinsicPtGaussian 2.2*GeV',
90  ),
91 
92  # UE tunes
93  ##############################
94 
95  # UE Tune from Herwig++ 2.3 (MRST2001)
96  ue_2_3 = cms.vstring(
97  'cd /Herwig/UnderlyingEvent',
98  'set KtCut:MinKT 4.0',
99  'set UECuts:MHatMin 8.0',
100  'set MPIHandler:InvRadius 1.5',
101  'cd /'
102  ),
103  # UE Tune from Herwig++ 2.4 (MRST2008LO**)
104  ue_2_4 = cms.vstring(
105  'cd /Herwig/UnderlyingEvent',
106  'set KtCut:MinKT 4.3',
107  'set UECuts:MHatMin 8.6',
108  'set MPIHandler:InvRadius 1.2',
109  'cd /'
110  ),
111 
112  # reweight presets
113  ##############################
114 
115  reweightConstant = cms.vstring(
116  'mkdir /Herwig/Weights',
117  'cd /Herwig/Weights',
118  'create ThePEG::ReweightConstant reweightConstant ReweightConstant.so',
119  'cd /',
120  'set /Herwig/Weights/reweightConstant:C 1',
121  'insert SimpleQCD:Reweights[0] /Herwig/Weights/reweightConstant',
122  ),
123  reweightPthat = cms.vstring(
124  'mkdir /Herwig/Weights',
125  'cd /Herwig/Weights',
126  'create ThePEG::ReweightMinPT reweightMinPT ReweightMinPT.so',
127  'cd /',
128  'set /Herwig/Weights/reweightMinPT:Power 4.5',
129  'set /Herwig/Weights/reweightMinPT:Scale 15*GeV',
130  'insert SimpleQCD:Reweights[0] /Herwig/Weights/reweightMinPT',
131  ),
132 
133  # Disable decays of particles with ctau > 10mm
134  setParticlesStableForDetector = cms.vstring(
135  'cd /Herwig/Particles',
136  'set mu-:Stable Stable',
137  'set mu+:Stable Stable',
138  'set Sigma-:Stable Stable',
139  'set Sigmabar+:Stable Stable',
140  'set Lambda0:Stable Stable',
141  'set Lambdabar0:Stable Stable',
142  'set Sigma+:Stable Stable',
143  'set Sigmabar-:Stable Stable',
144  'set Xi-:Stable Stable',
145  'set Xibar+:Stable Stable',
146  'set Xi0:Stable Stable',
147  'set Xibar0:Stable Stable',
148  'set Omega-:Stable Stable',
149  'set Omegabar+:Stable Stable',
150  'set pi+:Stable Stable',
151  'set pi-:Stable Stable',
152  'set K+:Stable Stable',
153  'set K-:Stable Stable',
154  'set K_S0:Stable Stable',
155  'set K_L0:Stable Stable',
156  'cd /',
157  ),
158 
159  # Default settings for using LHE files
160  lheDefaults = cms.vstring(
161  'cd /Herwig/Cuts',
162  'create ThePEG::Cuts NoCuts',
163  'cd /Herwig/EventHandlers',
164  'create ThePEG::LesHouchesInterface LHEReader',
165  'set LHEReader:Cuts /Herwig/Cuts/NoCuts',
166  'create ThePEG::LesHouchesEventHandler LHEHandler',
167  'set LHEHandler:WeightOption VarWeight',
168  'set LHEHandler:PartonExtractor /Herwig/Partons/QCDExtractor',
169  'set LHEHandler:CascadeHandler /Herwig/Shower/ShowerHandler',
170  'set LHEHandler:HadronizationHandler /Herwig/Hadronization/ClusterHadHandler',
171  'set LHEHandler:DecayHandler /Herwig/Decays/DecayHandler',
172  'insert LHEHandler:LesHouchesReaders 0 LHEReader',
173  'cd /Herwig/Generators',
174  'set LHCGenerator:EventHandler /Herwig/EventHandlers/LHEHandler',
175  'cd /Herwig/Shower',
176  'set Evolver:HardVetoScaleSource Read',
177  'set Evolver:MECorrMode No',
178  'cd /',
179  ),
180  lheDefaultPDFs = cms.vstring(
181  'cd /Herwig/EventHandlers',
182  'set LHEReader:PDFA /cmsPDFSet',
183  'set LHEReader:PDFB /cmsPDFSet',
184  'cd /',
185  ),
186 
187  # Default settings for using POWHEG
188  powhegDefaults = cms.vstring(
189  '# Need to use an NLO PDF',
190  'set /Herwig/Particles/p+:PDF /Herwig/Partons/MRST-NLO',
191  'set /Herwig/Particles/pbar-:PDF /Herwig/Partons/MRST-NLO',
192  '# and strong coupling',
193  'create Herwig::O2AlphaS O2AlphaS',
194  'set /Herwig/Generators/LHCGenerator:StandardModelParameters:QCD/RunningAlphaS O2AlphaS',
195  '# Setup the POWHEG shower',
196  'cd /Herwig/Shower',
197  '# use the general recon for now',
198  'set KinematicsReconstructor:ReconstructionOption General',
199  '# create the Powheg evolver and use it instead of the default one',
200  'create Herwig::PowhegEvolver PowhegEvolver HwPowhegShower.so',
201  'set ShowerHandler:Evolver PowhegEvolver',
202  'set PowhegEvolver:ShowerModel ShowerModel',
203  'set PowhegEvolver:SplittingGenerator SplittingGenerator',
204  'set PowhegEvolver:MECorrMode 0',
205  '# create and use the Drell-yan hard emission generator',
206  'create Herwig::DrellYanHardGenerator DrellYanHardGenerator',
207  'set DrellYanHardGenerator:ShowerAlpha AlphaQCD',
208  'insert PowhegEvolver:HardGenerator 0 DrellYanHardGenerator',
209  '# create and use the gg->H hard emission generator',
210  'create Herwig::GGtoHHardGenerator GGtoHHardGenerator',
211  'set GGtoHHardGenerator:ShowerAlpha AlphaQCD',
212  'insert PowhegEvolver:HardGenerator 0 GGtoHHardGenerator',
213  )
214 )