Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 
0005 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0006 process.load('FWCore.MessageService.MessageLogger_cfi')
0007 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0008 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0009 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0010 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0011 process.load("Geometry.HcalCommonData.hcalDDConstants_cff")
0012 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0013 process.load("Geometry.MuonNumbering.muonOffsetESProducer_cff")
0014 process.load("Configuration.StandardSequences.MagneticField_cff")
0015 process.load("Configuration.EventContent.EventContent_cff")
0016 process.load('Configuration.StandardSequences.Generator_cff')
0017 process.load('Configuration.StandardSequences.SimIdeal_cff')
0018 process.load("SimG4CMS.Calo.CaloSimHitStudy_cfi")
0019 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0020 from Configuration.AlCa.autoCond import autoCond
0021 process.GlobalTag.globaltag = autoCond['run1_mc']
0022 
0023 if 'MessageLogger' in process.__dict__:
0024     process.MessageLogger.G4cerr=dict()
0025     process.MessageLogger.HitStudy=dict()
0026 
0027 process.load("IOMC.RandomEngine.IOMC_cff")
0028 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0029 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0030 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0031 
0032 process.maxEvents = cms.untracked.PSet(
0033     input = cms.untracked.int32(2000)
0034 )
0035 
0036 process.source = cms.Source("EmptySource",
0037     firstRun        = cms.untracked.uint32(1),
0038     firstEvent      = cms.untracked.uint32(1)
0039 )
0040 
0041 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0042     PGunParameters = cms.PSet(
0043         PartID = cms.vint32(211),
0044         MinEta = cms.double(1.2615),
0045         MaxEta = cms.double(1.2615),
0046         MinPhi = cms.double(-3.14159265359),
0047         MaxPhi = cms.double(3.14159265359),
0048         MinE   = cms.double(50.),
0049         MaxE   = cms.double(50.)
0050     ),
0051     Verbosity       = cms.untracked.int32(0),
0052     AddAntiParticle = cms.bool(False)
0053 )
0054 
0055 process.TFileService = cms.Service("TFileService",
0056     fileName = cms.string('runScale14_QGSP_FTFP_BERT_EML.root')
0057 )
0058 
0059 process.generation_step = cms.Path(process.pgen)
0060 process.simulation_step = cms.Path(process.psim)
0061 process.analysis_step   = cms.Path(process.CaloSimHitStudy)
0062 
0063 process.CaloSimHitStudy.MaxEnergy = 60.0
0064 process.CaloSimHitStudy.TimeCut   = 100.0
0065 process.CaloSimHitStudy.MIPCut    = 0.75
0066 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_FTFP_BERT_EML'
0067 
0068 # Schedule definition
0069 process.schedule = cms.Schedule(process.generation_step,
0070                                 process.simulation_step,
0071                                 process.analysis_step
0072                                 )
0073 
0074 # filter all path with the production filter sequence
0075 for path in process.paths:
0076         getattr(process,path)._seq = process.generator * getattr(process,path)._seq