CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/SimGeneral/MixingModule/python/mix_fromDB_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # here we define part of the configuration of MixingModule
00004 # the rest, notably:
00005 #            "input","bunchspace","minBunch","maxBunch"
00006 # is to be retrieved from database
00007 # see: https://twiki.cern.ch/twiki/bin/viewauth/CMS/PdmVRunDependentMC
00008 
00009 # configuration to model pileup for initial physics phase
00010 from SimGeneral.MixingModule.mixObjects_cfi import * 
00011 from SimGeneral.MixingModule.mixPoolSource_cfi import * 
00012 
00013 mix = cms.EDProducer("MixingModule",
00014 
00015     # this is where you activate reading from DB of: "input","bunchspace","minBunch","maxBunch"
00016     readDB = cms.bool(True),
00017                      
00018     LabelPlayback = cms.string(''),
00019 
00020     maxBunch = cms.int32(314159),    ## these three parameters are needed at instantiation time, BUT the actual value will NOT be used
00021     minBunch = cms.int32(-314159),   ## actual values will be retrieved from database
00022     bunchspace = cms.int32(314159),  ## [ditto] 
00023 
00024     mixProdStep1 = cms.bool(False),
00025     mixProdStep2 = cms.bool(False),
00026 
00027     playback = cms.untracked.bool(False),
00028     useCurrentProcessOnly = cms.bool(False),
00029 
00030     input = cms.SecSource("PoolSource",
00031         type = cms.string('readDB'),
00032         sequential = cms.untracked.bool(False),                          
00033         fileNames = FileNames 
00034     ),
00035 
00036     mixObjects = cms.PSet(
00037         mixCH = cms.PSet(
00038             mixCaloHits
00039         ),
00040         mixTracks = cms.PSet(
00041             mixSimTracks
00042         ),
00043         mixVertices = cms.PSet(
00044             mixSimVertices
00045         ),
00046         mixSH = cms.PSet(
00047             mixSimHits
00048         ),
00049         mixHepMC = cms.PSet(
00050             mixHepMCProducts
00051         )
00052     )
00053 )
00054 
00055 
00056 
00057 if mix.readDB == cms.bool(True):
00058     print ' '
00059     print 'MixingModule will be configured from db; this is mix.readDB : ',mix.readDB
00060 else :
00061     print ' '
00062     print 'MixingModule is NOT going to be configured from db; this is mix.readDB : ',mix.readDB