Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-23 02:26:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
0004 process = cms.Process('testHGCalSIMLocal',Phase2C9)
0005 
0006 # import of standard configurations
0007 process.load('Configuration.StandardSequences.Services_cff')
0008 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0013 process.load('Configuration.Geometry.GeometryExtended2026D46Reco_cff')
0014 process.load('Configuration.Geometry.GeometryExtended2026D46_cff')
0015 process.load('Configuration.StandardSequences.MagneticField_cff')
0016 process.load('Configuration.StandardSequences.Generator_cff')
0017 process.load('IOMC.EventVertexGenerators.VtxSmearedGauss_cfi')
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 
0023 process.load("IOMC.RandomEngine.IOMC_cff")
0024 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0025 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0026 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0027 
0028 process.Timing = cms.Service("Timing")
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(10)
0032 )
0033 
0034 process.source = cms.Source("EmptySource",
0035     firstRun        = cms.untracked.uint32(1),
0036     firstEvent      = cms.untracked.uint32(1)
0037 )
0038 
0039 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0040     PGunParameters = cms.PSet(
0041         PartID = cms.vint32(13),
0042         MinEta = cms.double(1.75),
0043         MaxEta = cms.double(2.50),
0044         MinPhi = cms.double(-3.1415926),
0045         MaxPhi = cms.double(3.1415926),
0046         MinE   = cms.double(10.00),
0047         MaxE   = cms.double(10.00)
0048     ),
0049     Verbosity       = cms.untracked.int32(0),
0050     AddAntiParticle = cms.bool(True)
0051 )
0052 
0053 
0054 # Output definition
0055 
0056 
0057 process.ValidationOutput = cms.OutputModule("PoolOutputModule",
0058                                             outputCommands = cms.untracked.vstring('drop *', 'keep *_MEtoEDMConverter_*_*'),
0059                                             fileName = cms.untracked.string('file:output.root'),
0060                                             )
0061 
0062 process.load("DQMServices.Core.DQM_cfg")
0063 process.DQM.collectorHost = ''
0064 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0065 process.load("Validation.HGCalValidation.simhitValidation_cff")
0066 
0067 # Other statements
0068 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0069 from Configuration.AlCa.autoCond import autoCond
0070 process.GlobalTag.globaltag = autoCond['upgradePLS3']
0071 
0072 
0073 # Path and EndPath definitions
0074 process.generation_step = cms.Path(process.generator)
0075 process.simulation_step = cms.Path(process.psim)
0076 process.p1 = cms.Path(process.hgcalSimHitValidationEE+process.hgcalSimHitValidationHEF+process.hgcalSimHitValidationHEB)
0077 process.p2 = cms.Path(process.MEtoEDMConverter)
0078 process.output_step = cms.EndPath(process.ValidationOutput)
0079 
0080 
0081 # Schedule definition
0082 process.schedule = cms.Schedule(process.generation_step,process.simulation_step,process.p1,process.p2,process.output_step)
0083 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_FTFP_BERT_EML'
0084 process.g4SimHits.Physics.DefaultCutValue   = 0.1
0085 process.g4SimHits.HCalSD.TestNumberingScheme = True
0086 
0087 for label, prod in process.producers_().items():
0088         if prod.type_() == "OscarMTProducer":
0089             # ugly hack
0090             prod.__dict__['_TypedParameterizable__type'] = "OscarProducer"