Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-27 03:18:08

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # here we define part of the configuration of MixingModule
0004 # the rest, notably:
0005 #            "input","bunchspace","minBunch","maxBunch"
0006 # is to be retrieved from database
0007 # see: https://twiki.cern.ch/twiki/bin/viewauth/CMS/PdmVRunDependentMC
0008 
0009 # configuration to model pileup for initial physics phase
0010 from SimGeneral.MixingModule.mixObjects_cfi import theMixObjects 
0011 from SimGeneral.MixingModule.mixPoolSource_cfi import * 
0012 from SimGeneral.MixingModule.digitizers_cfi import *
0013 
0014 mix = cms.EDProducer("MixingModule",
0015 
0016     # this is where you activate reading from DB of: "input","bunchspace","minBunch","maxBunch"
0017     readDB = cms.bool(True),
0018 
0019     digitizers = cms.PSet(theDigitizers),                 
0020     LabelPlayback = cms.string(''),
0021     maxBunch = cms.int32(314159),    ## these three parameters are needed at instantiation time, BUT the actual value will NOT be used
0022     minBunch = cms.int32(-314159),   ## actual values will be retrieved from database
0023 
0024     bunchspace = cms.int32(314159),  ## [ditto] 
0025     mixProdStep1 = cms.bool(False),
0026     mixProdStep2 = cms.bool(False),
0027 
0028     playback = cms.untracked.bool(False),
0029     useCurrentProcessOnly = cms.bool(False),
0030 
0031     input = cms.SecSource("EmbeddedRootSource",
0032         type = cms.string('readDB'),
0033         sequential = cms.untracked.bool(False),                          
0034         fileNames = FileNames 
0035     ),
0036 
0037     mixObjects = cms.PSet(theMixObjects)                 
0038     #mixObjects = cms.PSet(
0039     #    mixCH = cms.PSet(
0040     #        mixCaloHits
0041     #    ),
0042     #    mixTracks = cms.PSet(
0043     #        mixSimTracks
0044     #    ),
0045     #    mixVertices = cms.PSet(
0046     #        mixSimVertices
0047     #    ),
0048     #    mixSH = cms.PSet(
0049     #        mixSimHits
0050     #    ),
0051     #    mixHepMC = cms.PSet(
0052     #        mixHepMCProducts
0053     #    )
0054     #)
0055 )
0056 
0057 
0058 
0059 if mix.readDB == cms.bool(True):
0060     print(' ')
0061     print('MixingModule will be configured from db; this is mix.readDB : ',mix.readDB)
0062 else :
0063     print(' ')
0064     print('MixingModule is NOT going to be configured from db; this is mix.readDB : ',mix.readDB)