CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/Validation/GlobalHits/python/ttbarGen_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("Gen")
00004 # setup useful services
00005 #
00006 process.load("Validation.GlobalHits.Random_cfi")
00007 
00008 process.load("Validation.GlobalHits.MessageLogger_cfi")
00009 
00010 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
00011 
00012 # Pythia settings for ttbar generation
00013 #
00014 process.load("Configuration.Generator.PythiaUESettings_cfi")
00015 
00016 # smearing of the MC vertex
00017 #
00018 #module VtxSmeared
00019 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
00020 
00021 process.maxEvents = cms.untracked.PSet(
00022     input = cms.untracked.int32(10000)
00023 )
00024 process.source = cms.Source("PythiaSource",
00025     pythiaHepMCVerbosity = cms.untracked.bool(False),
00026     maxEventsToPrint = cms.untracked.int32(0),
00027     #untracked int32 maxEvents = 10000
00028     pythiaPylistVerbosity = cms.untracked.int32(0),
00029     pythiaVerbosity = cms.untracked.bool(False),
00030     PythiaParameters = cms.PSet(
00031         process.pythiaUESettingsBlock,
00032         processParameters = cms.vstring('MSEL=0                  ! User defined processes', 
00033             'MSUB(81) = 1            ! qqbar to QQbar', 
00034             'MSUB(82) = 1            ! gg to QQbar', 
00035             'MSTP(7) = 6             ! flavour = top', 
00036             'PMAS(6,1) = 175.        ! top quark mass'),
00037         # This is a vector of ParameterSet names to be read, in this order
00038         parameterSets = cms.vstring('pythiaUESettings', 
00039             'processParameters')
00040     )
00041 )
00042 
00043 process.GEN = cms.OutputModule("PoolOutputModule",
00044     dataset = cms.untracked.PSet(
00045         dataTier = cms.untracked.string('GEN')
00046     ),
00047     fileName = cms.untracked.string('MC.root')
00048 )
00049 
00050 process.p1 = cms.Path(process.VtxSmeared)
00051 process.outpath = cms.EndPath(process.GEN)
00052