Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:40

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PremixStage1")
0004 
0005 process.source = cms.Source("EmptySource")
0006 process.maxEvents = cms.untracked.PSet(
0007      input = cms.untracked.int32(10)
0008 )
0009 
0010 process.load("IOMC.RandomEngine.IOMC_cff")
0011 
0012 from SimGeneral.MixingModule.mix_flat_0_10_cfi import mix as _mix
0013 process.mix = _mix.clone(
0014     input = dict(
0015         nbPileupEvents = dict(
0016             probFunctionVariable = [0,1,2,3],
0017             probValue = [0.25, 0.25, 0.25, 0.25]
0018         ),
0019         fileNames = ["file:testFakeMinBias.root"]
0020     ),
0021     digitizers = cms.PSet(),
0022     mixObjects = cms.PSet(),
0023     minBunch = -1,
0024     maxBunch = 1,
0025 )
0026 
0027 process.load("SimGeneral.PileupInformation.AddPileupSummary_cfi")
0028 
0029 process.out = cms.OutputModule("PoolOutputModule",
0030     fileName = cms.untracked.string('testPremixStage1.root'),
0031 )
0032 
0033 process.t = cms.Task(
0034     process.mix,
0035     process.addPileupInfo
0036 )
0037 process.p = cms.Path(process.t)
0038 process.e = cms.EndPath(process.out)