Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:48:34

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
0003 
0004 process = cms.Process('SIM',Phase2C9)
0005 
0006 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0007 #process.load("Configuration.Geometry.GeometryExtended2026D49_cff")
0008 process.load("Geometry.HGCalCommonData.testHGCalV11XML_cfi")
0009 process.load("Geometry.HGCalCommonData.hgcalParametersInitialization_cfi")
0010 process.load("Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi")
0011 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0012 process.load("Geometry.HcalCommonData.hcalDDDSimConstants_cff")
0013 process.load('FWCore.MessageService.MessageLogger_cfi')
0014 process.load('Configuration.StandardSequences.MagneticField_cff')
0015 process.load('Configuration.StandardSequences.Generator_cff')
0016 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0017 process.load("Configuration.EventContent.EventContent_cff")
0018 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0019 process.load('Configuration.StandardSequences.SimIdeal_cff')
0020 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0021 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0022 from Configuration.AlCa.autoCond import autoCond
0023 process.GlobalTag.globaltag = autoCond['phase2_realistic']
0024 
0025 if hasattr(process,'MessageLogger'):
0026     process.MessageLogger.HGCalGeom=dict()
0027     process.MessageLogger.HGCSim=dict()
0028 
0029 process.load("IOMC.RandomEngine.IOMC_cff")
0030 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0031 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0032 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0033 
0034 process.Timing = cms.Service("Timing")
0035 process.source = cms.Source("EmptySource",
0036                             firstRun        = cms.untracked.uint32(1),
0037                             firstEvent      = cms.untracked.uint32(1)
0038 )
0039 
0040 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0041                                    PGunParameters = cms.PSet(
0042                                        PartID = cms.vint32(11),
0043                                        MinEta = cms.double(1.60),
0044                                        MaxEta = cms.double(2.95),
0045                                        MinPhi = cms.double(-3.14159265359),
0046                                        MaxPhi = cms.double(3.14159265359),
0047                                        MinE   = cms.double(99.99),
0048                                        MaxE   = cms.double(100.01)
0049                                    ),
0050                                    AddAntiParticle = cms.bool(True),
0051                                    Verbosity       = cms.untracked.int32(0),
0052                                )
0053 
0054 process.maxEvents = cms.untracked.PSet(
0055     input = cms.untracked.int32(2)
0056 )
0057 
0058 process.output = cms.OutputModule("PoolOutputModule",
0059     process.FEVTSIMEventContent,
0060     fileName = cms.untracked.string('simevent.root')
0061 )
0062 
0063 process.ProductionFilterSequence = cms.Sequence(process.generator)
0064 process.g4SimHits.HGCSD.CornerMinMask = 3
0065 
0066 # Path and EndPath definitions
0067 process.generation_step = cms.Path(process.pgen)
0068 process.simulation_step = cms.Path(process.psim)
0069 process.out_step = cms.EndPath(process.output)
0070 
0071 # Schedule definition
0072 process.schedule = cms.Schedule(process.generation_step,
0073                                 process.simulation_step,
0074                                 process.out_step
0075                                 )
0076 
0077 # filter all path with the production filter sequence
0078 for path in process.paths:
0079         getattr(process,path)._seq = process.generator * getattr(process,path)._seq