00001 import FWCore.ParameterSet.Config as cms 00002 00003 # Copied here so python will auto-translate the names 00004 # Now beta function vertex smearing 00005 #from FastSimulation.Event.Early10TeVCollisionVertexGenerator_cfi import * 00006 #from FastSimulation.Event.Realistic7TeV2011CollisionVertexGenerator_cfi import * 00007 #from FastSimulation.Event.Realistic8TeVCollisionVertexGenerator_cfi import * 00008 from FastSimulation.Configuration.CommonInputs_cff import * 00009 00010 # 14 TeV pile-up files 00011 #from FastSimulation.PileUpProducer.PileUpSimulator14TeV_cfi import * 00012 # 10 TeV pile-up files 00013 #from FastSimulation.PileUpProducer.PileUpSimulator10TeV_cfi import * 00014 # 7 TeV pile-up files 00015 #from FastSimulation.PileUpProducer.PileUpSimulator7TeV_cfi import * 00016 # 8 TeV pile-up files 00017 #from FastSimulation.PileUpProducer.PileUpSimulator8TeV_cfi import * 00018 # Choose according to the beamspot (recommended) 00019 if(fastsimPrimaryVertex=='Realistic7TeV2011'): 00020 from FastSimulation.PileUpProducer.PileUpSimulator7TeV_cfi import * 00021 else: # by default, the currently recommended one 00022 from FastSimulation.PileUpProducer.PileUpSimulator8TeV_cfi import * 00023 ### 00024 # Gaussian or flat or no primary vertex smearing 00025 # include "FastSimulation/Event/data/GaussianVertexGenerator.cfi" 00026 # include "FastSimulation/Event/data/FlatVertexGenerator.cfi" 00027 # include "FastSimulation/Event/data/NoVertexGenerator.cfi" 00028 famosPileUp = cms.EDProducer("PileUpProducer", 00029 # The conditions for pile-up Event generation 00030 PileUpSimulatorBlock, 00031 VertexGenerator = cms.PSet( 00032 myVertexGenerator 00033 ) 00034 ) 00035 00036