CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ttbarGen_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("Gen")
4 # setup useful services
5 #
6 process.load("Validation.GlobalHits.Random_cfi")
7 
8 process.load("Validation.GlobalHits.MessageLogger_cfi")
9 
10 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
11 
12 # Pythia settings for ttbar generation
13 #
14 process.load("Configuration.Generator.PythiaUESettings_cfi")
15 
16 # smearing of the MC vertex
17 #
18 #module VtxSmeared
19 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
20 
21 process.maxEvents = cms.untracked.PSet(
22  input = cms.untracked.int32(10000)
23 )
24 process.source = cms.Source("PythiaSource",
25  pythiaHepMCVerbosity = cms.untracked.bool(False),
26  maxEventsToPrint = cms.untracked.int32(0),
27  #untracked int32 maxEvents = 10000
28  pythiaPylistVerbosity = cms.untracked.int32(0),
29  pythiaVerbosity = cms.untracked.bool(False),
30  PythiaParameters = cms.PSet(
31  process.pythiaUESettingsBlock,
32  processParameters = cms.vstring('MSEL=0 ! User defined processes',
33  'MSUB(81) = 1 ! qqbar to QQbar',
34  'MSUB(82) = 1 ! gg to QQbar',
35  'MSTP(7) = 6 ! flavour = top',
36  'PMAS(6,1) = 175. ! top quark mass'),
37  # This is a vector of ParameterSet names to be read, in this order
38  parameterSets = cms.vstring('pythiaUESettings',
39  'processParameters')
40  )
41 )
42 
43 process.GEN = cms.OutputModule("PoolOutputModule",
44  dataset = cms.untracked.PSet(
45  dataTier = cms.untracked.string('GEN')
46  ),
47  fileName = cms.untracked.string('MC.root')
48 )
49 
50 process.p1 = cms.Path(process.VtxSmeared)
51 process.outpath = cms.EndPath(process.GEN)
52