Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:49:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # REMINDER : det.simulation need a startup seed;
0004 # in your cfg, do NOT forget to give seeds via RandomNumberGeneratorService !!!
0005 # Include Configuration/StandardSequences/data/SimulationRandomNumberGeneratorSeeds.cff
0006 # 
0007 # Vertex smearing is exectuted in the pgen sequence
0008 # Geant4-based detector simulation
0009 # (necessary geometry and mag.field records included)
0010 #
0011 # It retuns label "g4SimHits" that one places in the path
0012 #
0013 # Advise : OscarProducer has a config. parameter to control
0014 # which HepMCProduct (gen.info) to pickup as event input, 
0015 # the original or the one with the vertex smearing applied; 
0016 # the parameter's name is HepMCProductLabel, it belongs to
0017 # the PSet Generator, and the default = "generatorSmeared"
0018 #
0019 from Configuration.StandardSequences.Sim_cff import *
0020 #
0021 # if you want to skip vertex smearing, you need to reset it:
0022 # replace g4SimHits.Generator.HepMCProductLabel = "source"
0023 #
0024 # several other useful parameters are listed in the WorkBook:
0025 # https://twiki.cern.ch/twiki/bin/view/CMS/WorkBookSimDigi
0026 #
0027 # include TrackingParticle Producer
0028 # NOTA BENE: it MUST be run here at the moment, since it depends 
0029 # of the availability of the CrossingFrame in the Event
0030 #
0031 # Digitization (electronics response modeling)
0032 # (all necessary geometry and other records included in the cff's)
0033 #
0034 # returns sequence "doAllDigi"
0035 #
0036 from Configuration.StandardSequences.Digi_cff import *
0037 from SimGeneral.HepPDTESSource.pythiapdt_cfi import *
0038 simulationTask = cms.Task(psimTask)
0039 simulation = cms.Sequence(pdigi, simulationTask)
0040 
0041