Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:06

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # configuration to model pileup for initial physics phase
0004 from SimGeneral.MixingModule.mixObjects_cfi import theMixObjects
0005 from SimGeneral.MixingModule.mixPoolSource_cfi import *
0006 from SimGeneral.MixingModule.digitizers_cfi import *
0007 
0008 mix = cms.EDProducer("MixingModule",
0009     digitizers = cms.PSet(theDigitizers),
0010     LabelPlayback = cms.string(''),
0011     maxBunch = cms.int32(4),
0012     minBunch = cms.int32(-4), ## in terms of 25 nsec
0013 
0014     bunchspace = cms.int32(25), ##ns
0015     mixProdStep1 = cms.bool(False),
0016     mixProdStep2 = cms.bool(False),
0017 
0018     playback = cms.untracked.bool(False),
0019     useCurrentProcessOnly = cms.bool(False),
0020 
0021     input = cms.SecSource("EmbeddedRootSource",
0022         type = cms.string('fixed'),
0023         nbPileupEvents = cms.PSet(
0024             averageNumber = cms.double(40.0)
0025         ),
0026 
0027     sequential = cms.untracked.bool(False),
0028         manage_OOT = cms.untracked.bool(True),  ## manage out-of-time pileup
0029         ## setting this to True means that the out-of-time pileup
0030         ## will have a different distribution than in-time, given
0031         ## by what is described on the next line:
0032         #OOT_type = cms.untracked.string('Poisson'),  ## generate OOT with a Poisson matching the number chosen for in-time
0033         OOT_type = cms.untracked.string('fixed'),  ## generate OOT with a fixed distribution
0034         intFixed_OOT = cms.untracked.int32(0), ## we only want in-time pileup, but muons
0035                                                ## need out of time bunch crossings
0036         fileNames = FileNames
0037     ),
0038     cosmics = cms.SecSource("EmbeddedRootSource",
0039         nbPileupEvents = cms.PSet(
0040             averageNumber = cms.double(1.)
0041         ),
0042         type = cms.string('fixed'),
0043         sequential = cms.untracked.bool(False),
0044         maxBunch_cosmics = cms.untracked.int32(4),
0045         minBunch_cosmics = cms.untracked.int32(4),
0046         fileNames = cms.untracked.vstring('file:SingleMuPt2_50_cfi_GEN_SIM.root')
0047     ),
0048     mixObjects = cms.PSet(theMixObjects)
0049 )
0050 
0051 
0052