Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Configuration
StandardSequences
python
Simulation_cff.py
Go to the documentation of this file.
1
import
FWCore.ParameterSet.Config
as
cms
2
3
# REMINDER : det.simulation need a startup seed;
4
# in your cfg, do NOT forget to give seeds via RandomNumberGeneratorService !!!
5
# Include Configuration/StandardSequences/data/SimulationRandomNumberGeneratorSeeds.cff
6
#
7
# Vertex smearing is exectuted in the pgen sequence
8
# Geant4-based detector simulation
9
# (necessary geometry and mag.field records included)
10
#
11
# It retuns label "g4SimHits" that one places in the path
12
#
13
# Advise : OscarProducer has a config. parameter to control
14
# which HepMCProduct (gen.info) to pickup as event input,
15
# the original or the one with the vertex smearing applied;
16
# the parameter's name is HepMCProductLabel, it belongs to
17
# the PSet Generator, and the default = "generatorSmeared"
18
#
19
from
Configuration.StandardSequences.Sim_cff
import
*
20
#
21
# if you want to skip vertex smearing, you need to reset it:
22
# replace g4SimHits.Generator.HepMCProductLabel = "source"
23
#
24
# several other useful parameters are listed in the WorkBook:
25
# https://twiki.cern.ch/twiki/bin/view/CMS/WorkBookSimDigi
26
#
27
# include TrackingParticle Producer
28
# NOTA BENE: it MUST be run here at the moment, since it depends
29
# of the availability of the CrossingFrame in the Event
30
#
31
# Digitization (electronics response modeling)
32
# (all necessary geometry and other records included in the cff's)
33
#
34
# returns sequence "doAllDigi"
35
#
36
from
Configuration.StandardSequences.Digi_cff
import
*
37
from
SimGeneral.HepPDTESSource.pythiapdt_cfi
import
*
38
simulationTask = cms.Task(psimTask)
39
simulation = cms.Sequence(pdigi, simulationTask)
40
41
pythiapdt_cfi
Digi_cff
Sim_cff
Generated for CMSSW Reference Manual by
1.8.5