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,46,47,48,49,50,51,52,53,54,55),
0025              probValue = cms.vdouble(
0026                        2.22595e-08,
0027                        2.00205e-07,
0028                        1.64416e-06,
0029                        1.14116e-05,
0030                        6.40739e-05,
0031                        0.000284833,
0032                        0.000994025,
0033                        0.00272863,
0034                        0.00613133,
0035                        0.0135242,
0036                        0.0322459,
0037                        0.0601265,
0038                        0.0778966,
0039                        0.0818541,
0040                        0.0798978,
0041                        0.0752475,
0042                        0.0687418,
0043                        0.0636304,
0044                        0.0604193,
0045                        0.0571488,
0046                        0.0537445,
0047                        0.050468,
0048                        0.0470076,
0049                        0.04297,
0050                        0.0377791,
0051                        0.0310346,
0052                        0.0231801,
0053                        0.0154523,
0054                        0.00910777,
0055                        0.00473839,
0056                        0.00218447,
0057                        0.000898356,
0058                        0.000331497,
0059                        0.000110006,
0060                        3.27802e-05,
0061                        8.75341e-06,
0062                        2.1002e-06,
0063                        4.58968e-07,
0064                        9.41886e-08,
0065                        1.90252e-08,
0066                        3.95869e-09,
0067                        8.60669e-10,
0068                        1.91046e-10,
0069                        4.18017e-11,
0070                        8.78577e-12,
0071                        1.74995e-12,
0072                        3.28416e-13,
0073                        5.79467e-14,
0074                        9.60488e-15,
0075                        1.49505e-15,
0076                        2.18539e-16,
0077                        2.99303e-17,
0078                        3.87579e-18,
0079                        4.53878e-19,
0080                        3.6847e-20,
0081                        0),
0082           histoFileName = cms.untracked.string('histProbFunction.root'),
0083         ),
0084     sequential = cms.untracked.bool(False),
0085         manage_OOT = cms.untracked.bool(True),  ## manage out-of-time pileup
0086         ## setting this to True means that the out-of-time pileup
0087         ## will have a different distribution than in-time, given
0088         ## by what is described on the next line:
0089         OOT_type = cms.untracked.string('Poisson'),  ## generate OOT with a Poisson matching the number chosen for in-time
0090         #OOT_type = cms.untracked.string('fixed'),  ## generate OOT with a fixed distribution
0091         #intFixed_OOT = cms.untracked.int32(2),
0092         fileNames = FileNames
0093     ),
0094     mixObjects = cms.PSet(theMixObjects)
0095 )
0096 
0097