CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
mix_OOT_Muons_and_minbias_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # configuration to model pileup for initial physics phase
4 from SimGeneral.MixingModule.mixObjects_cfi import theMixObjects
7 
8 mix = cms.EDProducer("MixingModule",
9  digitizers = cms.PSet(theDigitizers),
10  LabelPlayback = cms.string(''),
11  maxBunch = cms.int32(4),
12  minBunch = cms.int32(-4), ## in terms of 25 nsec
13 
14  bunchspace = cms.int32(25), ##ns
15  mixProdStep1 = cms.bool(False),
16  mixProdStep2 = cms.bool(False),
17 
18  playback = cms.untracked.bool(False),
19  useCurrentProcessOnly = cms.bool(False),
20 
21  input = cms.SecSource("EmbeddedRootSource",
22  type = cms.string('fixed'),
23  nbPileupEvents = cms.PSet(
24  averageNumber = cms.double(40.0)
25  ),
26 
27  sequential = cms.untracked.bool(False),
28  manage_OOT = cms.untracked.bool(True), ## manage out-of-time pileup
29  ## setting this to True means that the out-of-time pileup
30  ## will have a different distribution than in-time, given
31  ## by what is described on the next line:
32  #OOT_type = cms.untracked.string('Poisson'), ## generate OOT with a Poisson matching the number chosen for in-time
33  OOT_type = cms.untracked.string('fixed'), ## generate OOT with a fixed distribution
34  intFixed_OOT = cms.untracked.int32(0), ## we only want in-time pileup, but muons
35  ## need out of time bunch crossings
36  fileNames = FileNames
37  ),
38  cosmics = cms.SecSource("EmbeddedRootSource",
39  nbPileupEvents = cms.PSet(
40  averageNumber = cms.double(1.)
41  ),
42  type = cms.string('fixed'),
43  sequential = cms.untracked.bool(False),
44  maxBunch_cosmics = cms.untracked.int32(4),
45  minBunch_cosmics = cms.untracked.int32(4),
46  fileNames = cms.untracked.vstring('file:SingleMuPt2_50_cfi_GEN_SIM.root')
47  ),
48  mixObjects = cms.PSet(theMixObjects)
49 )
50 
51 
52