Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-27 14:07:58

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 process.load("SimG4CMS.Calo.PythiaMinBias_cfi")
0005 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0006 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0007 process.load("Geometry.CMSCommonData.ecalhcalGeometryXML_cfi")
0008 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0009 process.load("Geometry.HcalCommonData.hcalDDConstants_cff")
0010 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0011 process.load("Geometry.MuonNumbering.muonOffsetESProducer_cff")
0012 process.load("Configuration.StandardSequences.MagneticField_cff")
0013 process.load("Configuration.EventContent.EventContent_cff")
0014 process.load('Configuration.StandardSequences.Generator_cff')
0015 process.load('Configuration.StandardSequences.SimIdeal_cff')
0016 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0017 from Configuration.AlCa.autoCond import autoCond
0018 process.GlobalTag.globaltag = autoCond['run1_mc']
0019 
0020 process.MessageLogger = cms.Service("MessageLogger",
0021     cerr = cms.untracked.PSet(
0022         enable = cms.untracked.bool(False)
0023     ),
0024     cout = cms.untracked.PSet(
0025         CaloSim = cms.untracked.PSet(
0026             limit = cms.untracked.int32(0)
0027         ),
0028         DEBUG = cms.untracked.PSet(
0029             limit = cms.untracked.int32(0)
0030         ),
0031         EcalGeom = cms.untracked.PSet(
0032             limit = cms.untracked.int32(0)
0033         ),
0034         EcalSim = cms.untracked.PSet(
0035             limit = cms.untracked.int32(0)
0036         ),
0037         HCalGeom = cms.untracked.PSet(
0038             limit = cms.untracked.int32(0)
0039         ),
0040         HFShower = cms.untracked.PSet(
0041             limit = cms.untracked.int32(-1)
0042         ),
0043         HcalSim = cms.untracked.PSet(
0044             limit = cms.untracked.int32(-1)
0045         ),
0046         INFO = cms.untracked.PSet(
0047             limit = cms.untracked.int32(-1)
0048         ),
0049         enable = cms.untracked.bool(True),
0050         threshold = cms.untracked.string('DEBUG')
0051     ),
0052     debugModules = cms.untracked.vstring('*')
0053 )
0054 
0055 process.load("IOMC.RandomEngine.IOMC_cff")
0056 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0057 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0058 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0059 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
0060 
0061 process.Timing = cms.Service("Timing")
0062 
0063 process.maxEvents = cms.untracked.PSet(
0064     input = cms.untracked.int32(10)
0065 )
0066 
0067 process.source = cms.Source("EmptySource")
0068 
0069 process.output = cms.OutputModule("PoolOutputModule",
0070     process.FEVTSIMEventContent,
0071     fileName = cms.untracked.string('simevent.root')
0072 )
0073 
0074 process.generation_step = cms.Path(process.pgen)
0075 process.simulation_step = cms.Path(process.psim)
0076 process.out_step = cms.EndPath(process.output)
0077 
0078 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0079 process.g4SimHits.Physics.DummyEMPhysics = True
0080 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0081     CheckForHighEtPhotons = cms.untracked.bool(False),
0082     TrackMin     = cms.untracked.int32(0),
0083     TrackMax     = cms.untracked.int32(0),
0084     TrackStep    = cms.untracked.int32(1),
0085     EventMin     = cms.untracked.int32(0),
0086     EventMax     = cms.untracked.int32(0),
0087     EventStep    = cms.untracked.int32(1),
0088     PDGids       = cms.untracked.vint32(),
0089     VerboseLevel = cms.untracked.int32(0),
0090     G4Verbose = cms.untracked.bool(True),
0091     DEBUG        = cms.untracked.bool(False),
0092     type      = cms.string('TrackingVerboseAction')
0093 ))
0094 
0095 # Schedule definition 
0096 process.schedule = cms.Schedule(process.generation_step,
0097                                 process.simulation_step,
0098                                 process.out_step
0099                                 )
0100 
0101 # filter all path with the production filter sequence 
0102 for path in process.paths:
0103         getattr(process,path)._seq = process.generator * getattr(process,path)._seq