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(3),
0012     minBunch = cms.int32(-12), ## in 50ns spacing, go 150ns into past
0013 
0014     bunchspace = cms.int32(50), ##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('probFunction'),
0023         nbPileupEvents = cms.PSet(
0024              probFunctionVariable = cms.vint32(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45),
0025              probValue = cms.vdouble(
0026                                0,
0027                                0,
0028                                0,
0029                                0,
0030                                0,
0031                                9.66474e-17,
0032                                1.21114e-12,
0033                                2.94126e-09,
0034                                1.44281e-06,
0035                                0.000151792,
0036                                0.00376088,
0037                                0.0254935,
0038                                0.0610745,
0039                                0.0769054,
0040                                0.076596,
0041                                0.0737104,
0042                                0.0720484,
0043                                0.0702428,
0044                                0.065689,
0045                                0.0601684,
0046                                0.05682,
0047                                0.0557221,
0048                                0.0551615,
0049                                0.0541009,
0050                                0.051686,
0051                                0.0460924,
0052                                0.0368461,
0053                                0.0261355,
0054                                0.0164099,
0055                                0.0089456,
0056                                0.00410306,
0057                                0.00153858,
0058                                0.000462258,
0059                                0.000109812,
0060                                2.04474e-05,
0061                                2.96742e-06,
0062                                3.34444e-07,
0063                                2.9214e-08,
0064                                1.97586e-09,
0065                                1.03436e-10,
0066                                4.19123e-12,
0067                                1.31456e-13,
0068                                3.19116e-15,
0069                                5.99601e-17,
0070                                8.75296e-19,
0071                                0),
0072           histoFileName = cms.untracked.string('histProbFunction.root'),
0073         ),
0074     sequential = cms.untracked.bool(False),
0075         manage_OOT = cms.untracked.bool(True),  ## manage out-of-time pileup
0076         ## setting this to True means that the out-of-time pileup
0077         ## will have a different distribution than in-time, given
0078         ## by what is described on the next line:
0079         OOT_type = cms.untracked.string('Poisson'),  ## generate OOT with a Poisson matching the number chosen for in-time
0080         #OOT_type = cms.untracked.string('fixed'),  ## generate OOT with a fixed distribution
0081         #intFixed_OOT = cms.untracked.int32(2),
0082         fileNames = FileNames
0083     ),
0084     mixObjects = cms.PSet(theMixObjects)
0085 )
0086 
0087