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 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0003 
0004 process = cms.Process("PROD",phase2_common)
0005 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0006 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0007 process.load("Geometry.ForwardCommonData.testHFNoseXML_cfi")
0008 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cff")
0009 #process.load("SLHCUpgradeSimulations.Geometry.fakeConditions_phase2TkT6_cff")
0010 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0011 process.load("Geometry.HcalCommonData.hcalDDConstants_cff")
0012 process.load("Geometry.HGCalCommonData.hgcalParametersInitialization_cfi")
0013 process.load("Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi")
0014 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0015 process.load("Geometry.MuonNumbering.muonOffsetESProducer_cff")
0016 process.load("Geometry.ForwardCommonData.hfnoseParametersInitialization_cfi")
0017 process.load("Geometry.ForwardCommonData.hfnoseNumberingInitialization_cfi")
0018 process.load("Configuration.StandardSequences.MagneticField_cff")
0019 process.load("Configuration.EventContent.EventContent_cff")
0020 process.load('Configuration.StandardSequences.Generator_cff')
0021 process.load('Configuration.StandardSequences.SimIdeal_cff')
0022 process.load('FWCore.MessageService.MessageLogger_cfi')
0023 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0024 from Configuration.AlCa.autoCond import autoCond
0025 process.GlobalTag.globaltag = autoCond['phase2_realistic']
0026 
0027 if hasattr(process,'MessageLogger'):
0028     process.MessageLogger.HGCalGeom=dict()
0029     process.MessageLogger.HFNSim=dict()
0030     process.MessageLogger.HGCalValidation=dict()
0031 
0032 process.load("IOMC.RandomEngine.IOMC_cff")
0033 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0034 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0035 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0036 
0037 process.Timing = cms.Service("Timing")
0038 
0039 process.maxEvents = cms.untracked.PSet(
0040     input = cms.untracked.int32(100)
0041 )
0042 
0043 process.source = cms.Source("EmptySource",
0044     firstRun        = cms.untracked.uint32(1),
0045     firstEvent      = cms.untracked.uint32(1)
0046 )
0047 
0048 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0049     PGunParameters = cms.PSet(
0050         PartID = cms.vint32(13),
0051         MinEta = cms.double(3.00),
0052         MaxEta = cms.double(4.30),
0053         MinPhi = cms.double(-3.1415926),
0054         MaxPhi = cms.double(3.1415926),
0055         MinE   = cms.double(100.00),
0056         MaxE   = cms.double(100.00)
0057     ),
0058     Verbosity       = cms.untracked.int32(0),
0059     AddAntiParticle = cms.bool(True)
0060 )
0061 
0062 process.output = cms.OutputModule("PoolOutputModule",
0063     process.FEVTSIMEventContent,
0064     fileName = cms.untracked.string('simevent.root')
0065 )
0066 
0067 process.TFileService = cms.Service("TFileService",
0068     fileName = cms.string('hfnose.root')
0069 )
0070 
0071 process.load('Validation.HGCalValidation.hfnoseSimHitStudy_cfi')
0072 
0073 process.generation_step = cms.Path(process.pgen)
0074 process.simulation_step = cms.Path(process.psim)
0075 process.analysis_step   = cms.Path(process.hgcalSimHitStudy)
0076 process.out_step        = cms.EndPath(process.output)
0077 
0078 process.g4SimHits.Physics.type = 'SimG4Core/Physics/FTFP_BERT_EMM'
0079 process.g4SimHits.Physics.DefaultCutValue   = 0.1
0080 process.hgcalSimHitStudy.verbosity = 0
0081 
0082 # Schedule definition
0083 process.schedule = cms.Schedule(process.generation_step,
0084                                 process.simulation_step,
0085                                 process.analysis_step,
0086                                 process.out_step
0087                                 )
0088 
0089 # filter all path with the production filter sequence
0090 for path in process.paths:
0091         getattr(process,path)._seq = process.generator * getattr(process,path)._seq