File indexing completed on 2023-03-17 11:10:13
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process('TestVertex')
0004
0005
0006 process.load('Configuration.StandardSequences.Services_cff')
0007 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0008 process.load('FWCore.MessageService.MessageLogger_cfi')
0009 process.load('Configuration.EventContent.EventContent_cff')
0010 process.load('Configuration.StandardSequences.Generator_cff')
0011 process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi')
0012 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0013 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0014
0015 process.maxEvents = cms.untracked.PSet(
0016 input = cms.untracked.int32(200000),
0017
0018 output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0019 )
0020
0021
0022 process.source = cms.Source("EmptySource")
0023
0024
0025
0026 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0027 fileName = cms.untracked.string('file:step1.root'),
0028 outputCommands = process.RAWSIMEventContent.outputCommands,
0029 )
0030
0031
0032
0033
0034 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0035
0036 process.generator = cms.EDFilter("Pythia8PtGun",
0037 PGunParameters = cms.PSet(
0038 AddAntiParticle = cms.bool(True),
0039 MaxEta = cms.double(2.85),
0040 MaxPhi = cms.double(3.14159265359),
0041 MaxPt = cms.double(100.0),
0042 MinEta = cms.double(-2.85),
0043 MinPhi = cms.double(-3.14159265359),
0044 MinPt = cms.double(2.0),
0045 ParticleID = cms.vint32(-13)
0046 ),
0047 PythiaParameters = cms.PSet(
0048 parameterSets = cms.vstring()
0049 ),
0050 Verbosity = cms.untracked.int32(0),
0051 firstRun = cms.untracked.uint32(1),
0052 psethack = cms.string('single mu pt 2 to 100')
0053 )
0054
0055 process.vtxtester = cms.EDAnalyzer("VtxTester")
0056
0057 process.TFileService = cms.Service("TFileService",
0058 fileName = cms.string('vtxTester.root')
0059 )
0060
0061
0062 process.generation_step = cms.Path(process.pgen+process.vtxtester)
0063 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0064 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0065
0066
0067 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.RAWSIMoutput_step)
0068
0069 for path in process.paths:
0070 getattr(process,path).insert(0, process.generator)
0071
0072 process.MessageLogger.cerr.FwkReport.reportEvery = 10000