Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FastSimulation
PileUpProducer
python
PileUpProducer_cff.py
Go to the documentation of this file.
1
import
FWCore.ParameterSet.Config
as
cms
2
3
# Copied here so python will auto-translate the names
4
# Now beta function vertex smearing
5
#from FastSimulation.Event.Early10TeVCollisionVertexGenerator_cfi import *
6
#from FastSimulation.Event.Realistic7TeV2011CollisionVertexGenerator_cfi import *
7
#from FastSimulation.Event.Realistic8TeVCollisionVertexGenerator_cfi import *
8
from
FastSimulation.Configuration.CommonInputs_cff
import
*
9
10
# 14 TeV pile-up files
11
#from FastSimulation.PileUpProducer.PileUpSimulator14TeV_cfi import *
12
# 10 TeV pile-up files
13
#from FastSimulation.PileUpProducer.PileUpSimulator10TeV_cfi import *
14
# 7 TeV pile-up files
15
#from FastSimulation.PileUpProducer.PileUpSimulator7TeV_cfi import *
16
# 8 TeV pile-up files
17
#from FastSimulation.PileUpProducer.PileUpSimulator8TeV_cfi import *
18
# Choose according to the beamspot (recommended)
19
if
(fastsimPrimaryVertex==
'Realistic7TeV2011'
):
20
from
FastSimulation.PileUpProducer.PileUpSimulator7TeV_cfi
import
*
21
else
:
# by default, the currently recommended one
22
from
FastSimulation.PileUpProducer.PileUpSimulator8TeV_cfi
import
*
23
###
24
# Gaussian or flat or no primary vertex smearing
25
# include "FastSimulation/Event/data/GaussianVertexGenerator.cfi"
26
# include "FastSimulation/Event/data/FlatVertexGenerator.cfi"
27
# include "FastSimulation/Event/data/NoVertexGenerator.cfi"
28
famosPileUp = cms.EDProducer(
"PileUpProducer"
,
29
# The conditions for pile-up event generation
30
PileUpSimulatorBlock,
31
VertexGenerator = cms.PSet(
32
myVertexGenerator
33
)
34
)
35
36
PileUpSimulator8TeV_cfi
PileUpSimulator7TeV_cfi
Config
CommonInputs_cff
reco::if
if(dp >Float(M_PI)) dp-
Generated for CMSSW Reference Manual by
1.8.5