Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:56

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0004 process = cms.Process("Sim",Run2_2018)
0005 
0006 process.load("Configuration.Generator.QCD_Pt_3000_3500_cfi")
0007 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0008 process.load('FWCore.MessageService.MessageLogger_cfi')
0009 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0010 process.load('Configuration.Geometry.GeometryExtended2018Reco_cff')
0011 process.load("Configuration.StandardSequences.MagneticField_cff")
0012 process.load("Configuration.EventContent.EventContent_cff")
0013 process.load('Configuration.StandardSequences.Generator_cff')
0014 process.load('Configuration.StandardSequences.SimIdeal_cff')
0015 process.load("SimG4CMS.Calo.CaloSimHitStudy_cfi")
0016 
0017 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0018 from Configuration.AlCa.autoCond import autoCond
0019 process.GlobalTag.globaltag = autoCond['run2_mc']
0020 
0021 process.source = cms.Source("EmptySource")
0022 
0023 process.maxEvents = cms.untracked.PSet(
0024     input = cms.untracked.int32(20)
0025 )
0026 
0027 if 'MessageLogger' in process.__dict__:
0028     process.MessageLogger.G4cerr=dict()
0029 
0030 process.Timing = cms.Service("Timing")
0031 
0032 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
0033     oncePerEventMode = cms.untracked.bool(True),
0034     showMallocInfo = cms.untracked.bool(True),
0035     dump = cms.untracked.bool(True),
0036     ignoreTotal = cms.untracked.int32(1)
0037 )
0038 
0039 process.load("IOMC.RandomEngine.IOMC_cff")
0040 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0041 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0042 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0043 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
0044 
0045 process.TFileService = cms.Service("TFileService",
0046     fileName = cms.string('qcdpt_3000_3500_QGSP_FTFP_BERT_EML.root')
0047 )
0048 
0049 # Event output
0050 process.output = cms.OutputModule("PoolOutputModule",
0051     process.FEVTSIMEventContent,
0052     fileName = cms.untracked.string('simevent_qcdpt_3000_3500_QGSP_FTFP_BERT_EML.root')
0053 )
0054 process.generation_step = cms.Path(process.pgen)
0055 process.simulation_step = cms.Path(process.psim)
0056 process.analysis_step   = cms.Path(process.CaloSimHitStudy)
0057 process.out_step = cms.EndPath(process.output)
0058 
0059 process.generator.pythiaHepMCVerbosity = False
0060 process.generator.pythiaPylistVerbosity = 0
0061 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_FTFP_BERT_EML'
0062 
0063 # process.g4SimHits.ECalSD.IgnoreTrackID      = True
0064 # process.g4SimHits.HCalSD.IgnoreTrackID      = True
0065 # process.g4SimHits.ECalSD.TimeSliceUnit      = 5
0066 # process.g4SimHits.HCalSD.TimeSliceUnit      = 5
0067 
0068 # process.g4SimHits.HCalSD.UseShowerLibrary   = True
0069 # process.g4SimHits.HCalSD.UseParametrize     = False
0070 # process.g4SimHits.HCalSD.UsePMTHits         = False
0071 # process.g4SimHits.HCalSD.UseFibreBundleHits = False
0072 # process.g4SimHits.HFShower.UseShowerLibrary = False
0073 # process.g4SimHits.HFShower.UseHFGflash      = True
0074 # process.g4SimHits.HFShower.TrackEM          = False
0075 # process.g4SimHits.HFShower.OnlyLong         = True
0076 # process.g4SimHits.HFShower.EminLibrary      = 0.0
0077 
0078 # Schedule definition                                                          
0079 process.schedule = cms.Schedule(process.generation_step,
0080                                 process.simulation_step,
0081                                 process.analysis_step,
0082                                 process.out_step
0083                                 )
0084 
0085 # filter all path with the production filter sequence                          
0086 for path in process.paths:
0087         getattr(process,path)._seq = process.generator * getattr(process,path)._seq