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