CMS 3D CMS Logo

mix_probFunction_25ns_PoissonOOTPU_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # configuration to model pileup with an arbitrary function
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(3),
12  minBunch = cms.int32(-12), ## 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('probFunction'),
23  nbPileupEvents = cms.PSet(
24  # The following lines define a flat distribution from 0-9 interactions
25  probFunctionVariable = cms.vint32(0,1,2,3,4,5,6,7,8,9),
26  # sum of probValues should be 1.0!
27  probValue = cms.vdouble(
28  0.1,
29  0.1,
30  0.1,
31  0.1,
32  0.1,
33  0.1,
34  0.1,
35  0.1,
36  0.1,
37  0.1
38  ),
39 
40  histoFileName = cms.untracked.string('histProbFunction.root'),
41  ),
42  sequential = cms.untracked.bool(False),
43  manage_OOT = cms.untracked.bool(True), ## manage out-of-time pileup
44  ## setting this to True means that the out-of-time pileup
45  ## will have a different distribution than in-time, given
46  ## by what is described on the next line:
47  OOT_type = cms.untracked.string('Poisson'), ## generate OOT with a Poisson matching the number chosen for in-time
48  #OOT_type = cms.untracked.string('fixed'), ## generate OOT with a fixed distribution
49  #intFixed_OOT = cms.untracked.int32(2),
50  fileNames = FileNames
51  ),
52  mixObjects = cms.PSet(theMixObjects)
53 )
54 
55 
56