File indexing completed on 2024-04-06 12:30:39
0001 import FWCore.ParameterSet.Config as cms
0002 from SimGeneral.MixingModule.mixObjects_cfi import *
0003
0004
0005 process = cms.Process("PRODMIXNEW")
0006 process.load("SimGeneral.MixingModule.mixLowLumPU_mixProdStep2_cfi")
0007
0008 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0009 moduleSeeds = cms.PSet(
0010 mix = cms.untracked.uint32(12345)
0011 )
0012 )
0013
0014 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
0015 oncePerEventMode = cms.untracked.bool(True),
0016 ignoreTotal = cms.untracked.int32(1)
0017 )
0018
0019
0020
0021 process.source = cms.Source("PoolSource",
0022 fileNames = cms.untracked.vstring(
0023 'file:/data/becheva/MixingModule/dataFiles/relval/02C5A172-8203-DE11-86D7-001617C3B5D8TTBar.root')
0024 )
0025
0026 process.maxEvents = cms.untracked.PSet(
0027 input = cms.untracked.int32(1)
0028 )
0029
0030 process.CFWriter = cms.EDProducer("CFWriter",
0031 maxBunch = cms.int32(3),
0032 minBunch = cms.int32(-5),
0033
0034 mixObjects = cms.PSet(
0035 mixCH = cms.PSet(
0036 mixCaloHits
0037 ),
0038 mixTracks = cms.PSet(
0039 mixSimTracks
0040 ),
0041 mixVertices = cms.PSet(
0042 mixSimVertices
0043 ),
0044 mixSH = cms.PSet(
0045 mixSimHits
0046 ),
0047 mixHepMC = cms.PSet(
0048 mixHepMCProducts
0049 )
0050 )
0051 )
0052
0053 process.out = cms.OutputModule("PoolOutputModule",
0054 outputCommands = cms.untracked.vstring('drop *_*_*_*',
0055 'keep *_*_*_PRODMIXNEW'),
0056 fileName = cms.untracked.string('file:/tmp/ebecheva/testMixProdStep2New.root')
0057 )
0058
0059 process.MessageLogger = cms.Service("MessageLogger",
0060 debugModules = cms.untracked.vstring('mix'),
0061 cout = cms.untracked.PSet(
0062 threshold = cms.untracked.string('DEBUG'),
0063 DEBUG = cms.untracked.PSet(
0064 limit = cms.untracked.int32(0)
0065 ),
0066 MixingModule = cms.untracked.PSet(
0067 limit = cms.untracked.int32(1000000)
0068 )
0069 ),
0070 categories = cms.untracked.vstring('MixingModule'),
0071 destinations = cms.untracked.vstring('cout')
0072 )
0073
0074 process.p = cms.Path(process.mix+process.CFWriter)
0075 process.outpath = cms.EndPath(process.out)