CMS 3D CMS Logo

SimExample_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("Sim")
00004 # this example configuration offers some minimum
00005 # annotation, to help users get through; please
00006 # don't hesitate to read through the comments
00007 # use messageLogger to redirect/suppress multiple
00008 # service messages coming from the system
00009 #
00010 # in this config below, we use the replace option to make
00011 # the logger let out messages of severity ERROR (INFO level
00012 # will be suppressed), and we want to limit the number to 10
00013 #
00014 process.load("Configuration.StandardSequences.Services_cff")
00015 
00016 process.load("Configuration.StandardSequences.Geometry_cff")
00017 
00018 process.load("Configuration.StandardSequences.MagneticField_cff")
00019 
00020 process.load("Configuration.StandardSequences.FakeConditions_cff")
00021 
00022 process.load("FWCore.MessageService.MessageLogger_cfi")
00023 
00024 # this config frament brings you 3 steps of the detector simulation:
00025 # -- vertex smearing (IR modeling)
00026 # -- G4-based hit level detector simulation
00027 # -- digitization (electronics readout modeling)
00028 # it returns 2 sequences :
00029 # -- psim (vtx smearing + G4 sim)
00030 # -- pdigi (digitization in all subsystems, i.e. tracker=pix+sistrips,
00031 #           cal=ecal+ecal-0-suppression+hcal), muon=csc+dt+rpc)
00032 #
00033 process.load("Configuration.StandardSequences.Simulation_cff")
00034 
00035 # Event output
00036 process.load("Configuration.eventContent.EventContent_cff")
00037 
00038 process.maxEvents = cms.untracked.PSet(
00039     input = cms.untracked.int32(1)
00040 )
00041 process.source = cms.Source("PoolSource",
00042     catalog = cms.untracked.string('PoolFileCatalog.xml'),
00043     fileNames = cms.untracked.vstring('file:gen.root')
00044 )
00045 
00046 process.FEVT = cms.OutputModule("PoolOutputModule",
00047     process.FEVTSIMEventContent,
00048     fileName = cms.untracked.string(' sim.root')
00049 )
00050 
00051 process.p1 = cms.Path(process.psim)
00052 process.outpath = cms.EndPath(process.FEVT)
00053 process.schedule = cms.Schedule(process.p1,process.outpath)
00054 
00055 

Generated on Tue Jun 9 17:26:58 2009 for CMSSW by  doxygen 1.5.4