Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-04 02:02:59

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("SimG4CMS.Calo.PythiaMinBias_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 process.load("SimG4CMS.Calo.hcalSimHitDump_cfi")
0017 
0018 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0019 from Configuration.AlCa.autoCond import autoCond
0020 process.GlobalTag.globaltag = autoCond['run2_mc']
0021 
0022 if 'MessageLogger' in process.__dict__:
0023     process.MessageLogger.G4cerr=dict()
0024     process.MessageLogger.HitStudy=dict()
0025     process.MessageLogger.HcalSim=dict()
0026 
0027 process.source = cms.Source("EmptySource")
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(200)
0031 )
0032 
0033 process.Timing = cms.Service("Timing")
0034 
0035 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
0036     oncePerEventMode = cms.untracked.bool(True),
0037     showMallocInfo = cms.untracked.bool(True),
0038     dump = cms.untracked.bool(True),
0039     ignoreTotal = cms.untracked.int32(1)
0040 )
0041 
0042 process.load("IOMC.RandomEngine.IOMC_cff")
0043 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0044 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0045 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0046 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
0047 
0048 process.TFileService = cms.Service("TFileService",
0049     fileName = cms.string('minbias_FTFP_BERT_EMM.root')
0050 )
0051 
0052 # Event output
0053 process.output = cms.OutputModule("PoolOutputModule",
0054     process.FEVTSIMEventContent,
0055     fileName = cms.untracked.string('simevent_minbias_FTFP_BERT_EMM.root')
0056 )
0057 
0058 process.generation_step = cms.Path(process.pgen)
0059 process.simulation_step = cms.Path(process.psim)
0060 process.analysis_step   = cms.Path(process.CaloSimHitStudy+process.hcalSimHitDump)
0061 process.out_step = cms.EndPath(process.output)
0062 
0063 process.generator.pythiaHepMCVerbosity = False
0064 process.generator.pythiaPylistVerbosity = 0
0065 process.g4SimHits.Physics.type = 'SimG4Core/Physics/FTFP_BERT_EMM'
0066 process.CaloSimHitStudy.TestNumbering = True
0067 process.hcalSimHitDump.MaxEvent = 5
0068 
0069 # process.g4SimHits.ECalSD.IgnoreTrackID      = True
0070 # process.g4SimHits.HCalSD.IgnoreTrackID      = True
0071 # process.g4SimHits.ECalSD.TimeSliceUnit      = 5
0072 # process.g4SimHits.HCalSD.TimeSliceUnit      = 5
0073 
0074 # process.g4SimHits.HCalSD.UseShowerLibrary   = True
0075 # process.g4SimHits.HCalSD.UseParametrize     = False
0076 # process.g4SimHits.HCalSD.UsePMTHits         = False
0077 # process.g4SimHits.HCalSD.UseFibreBundleHits = False
0078 # process.g4SimHits.HFShower.UseShowerLibrary = False
0079 # process.g4SimHits.HFShower.UseHFGflash      = True
0080 # process.g4SimHits.HFShower.TrackEM          = False
0081 # process.g4SimHits.HFShower.OnlyLong         = True
0082 # process.g4SimHits.HFShower.EminLibrary      = 0.0
0083 
0084 # Schedule definition                                                          
0085 process.schedule = cms.Schedule(process.generation_step,
0086                                 process.simulation_step,
0087                                 process.analysis_step,
0088                                 process.out_step
0089                                 )
0090 
0091 # filter all path with the production filter sequence                          
0092 for path in process.paths:
0093         getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0094