CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #
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 #
38 simulationTask = cms.Task(psimTask)
39 simulation = cms.Sequence(pdigi, simulationTask)
40 
41