Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:38

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 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('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),
0025       probValue = cms.vdouble(
0026         0.000829312873542,
0027         0.00124276120498,
0028         0.00339329181587,
0029         0.00408224735376,
0030         0.00383036590008,
0031         0.00659159288946,
0032         0.00816022734493,
0033         0.00943640833116,
0034         0.0137777376066,
0035         0.017059392038,
0036         0.0213193035468,
0037         0.0247343174676,
0038         0.0280848773878,
0039         0.0323308476564,
0040         0.0370394341409,
0041         0.0456917721191,
0042         0.0558762890594,
0043         0.0576956187107,
0044         0.0625325287017,
0045         0.0591603758776,
0046         0.0656650815128,
0047         0.0678329011676,
0048         0.0625142146389,
0049         0.0548068448797,
0050         0.0503893295063,
0051         0.040209818868,
0052         0.0374446988111,
0053         0.0299661572042,
0054         0.0272024759921,
0055         0.0219328403791,
0056         0.0179586571619,
0057         0.0142926728247,
0058         0.00839941654725,
0059         0.00522366397213,
0060         0.00224457976761,
0061         0.000779274977993,
0062         0.000197066585944,
0063         7.16031761328e-05,
0064         0.0,
0065         0.0,
0066         0.0,
0067         0.0,
0068         0.0,
0069         0.0,
0070         0.0,
0071         0.0,
0072         0.0,
0073         0.0,
0074         0.0,
0075         0.0 ),
0076           histoFileName = cms.untracked.string('histProbFunction.root'),
0077         ),
0078     sequential = cms.untracked.bool(False),
0079         manage_OOT = cms.untracked.bool(True),  ## manage out-of-time pileup
0080         ## setting this to True means that the out-of-time pileup
0081         ## will have a different distribution than in-time, given
0082         ## by what is described on the next line:
0083         OOT_type = cms.untracked.string('Poisson'),  ## generate OOT with a Poisson matching the number chosen for in-time
0084         #OOT_type = cms.untracked.string('fixed'),  ## generate OOT with a fixed distribution
0085         #intFixed_OOT = cms.untracked.int32(2),
0086         fileNames = FileNames
0087     ),
0088     mixObjects = cms.PSet(theMixObjects)
0089 )
0090 
0091 
0092