File indexing completed on 2023-09-02 06:14:34
0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb
0003
0004 process = cms.Process('SIM', hgcaltb)
0005
0006
0007 process.load('Configuration.StandardSequences.Services_cff')
0008 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0009 process.load('Configuration.EventContent.EventContent_cff')
0010 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0011 process.load('SimG4CMS.HGCalTestBeam.HGCalTB161Module8XML_cfi')
0012 process.load('Geometry.HGCalTBCommonData.hgcalTBNumberingInitialization_cfi')
0013 process.load('Geometry.HGCalTBCommonData.hgcalTBParametersInitialization_cfi')
0014 process.load('Geometry.HcalTestBeamData.hcalTB06Parameters_cff')
0015 process.load('Configuration.StandardSequences.MagneticField_0T_cff')
0016 process.load('Configuration.StandardSequences.Generator_cff')
0017 process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_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 process.load('SimG4CMS.HGCalTestBeam.HGCalTBCheckGunPosition_cfi')
0023 process.load('SimG4CMS.HGCalTestBeam.HGCalTBAnalyzer_cfi')
0024
0025 process.maxEvents = cms.untracked.PSet(
0026 input = cms.untracked.int32(1000)
0027 )
0028
0029 process.MessageLogger = cms.Service("MessageLogger",
0030 cout = cms.untracked.PSet(
0031 default = cms.untracked.PSet(
0032 limit = cms.untracked.int32(0)
0033 ),
0034 HGCSim = cms.untracked.PSet(
0035 limit = cms.untracked.int32(-1)
0036 ),
0037 ),
0038 categories = cms.untracked.vstring('HGCSim'),
0039 destinations = cms.untracked.vstring('cout','cerr')
0040 )
0041
0042
0043 process.source = cms.Source("EmptySource")
0044
0045 process.options = cms.untracked.PSet(
0046
0047 )
0048
0049
0050 process.configurationMetadata = cms.untracked.PSet(
0051 annotation = cms.untracked.string('SingleElectronE1000_cfi nevts:10'),
0052 name = cms.untracked.string('Applications'),
0053 version = cms.untracked.string('$Revision: 1.19 $')
0054 )
0055
0056
0057
0058 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0059 SelectEvents = cms.untracked.PSet(
0060 SelectEvents = cms.vstring('generation_step')
0061 ),
0062 dataset = cms.untracked.PSet(
0063 dataTier = cms.untracked.string('GEN-SIM'),
0064 filterName = cms.untracked.string('')
0065 ),
0066 eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0067 fileName = cms.untracked.string('file:gensim.root'),
0068 outputCommands = process.RAWSIMEventContent.outputCommands,
0069 splitLevel = cms.untracked.int32(0)
0070 )
0071
0072
0073 process.TFileService = cms.Service("TFileService",
0074 fileName = cms.string('TBGenSim.root')
0075 )
0076
0077
0078 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0079 from Configuration.AlCa.GlobalTag import GlobalTag
0080 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0081
0082 process.generator = cms.EDProducer("FlatRandomEThetaGunProducer",
0083 AddAntiParticle = cms.bool(False),
0084 PGunParameters = cms.PSet(
0085 MinE = cms.double(9.99),
0086 MaxE = cms.double(10.01),
0087 MinTheta = cms.double(0.0),
0088 MaxTheta = cms.double(0.0),
0089 MinPhi = cms.double(-3.14159265359),
0090 MaxPhi = cms.double(3.14159265359),
0091 PartID = cms.vint32(13)
0092 ),
0093 Verbosity = cms.untracked.int32(0),
0094 firstRun = cms.untracked.uint32(1),
0095 psethack = cms.string('single muon E 100')
0096 )
0097 process.VtxSmeared.MinZ = -800.0
0098 process.VtxSmeared.MaxZ = -800.0
0099 process.VtxSmeared.MinX = -7.5
0100 process.VtxSmeared.MaxX = 7.5
0101 process.VtxSmeared.MinY = -7.5
0102 process.VtxSmeared.MaxY = 7.5
0103 process.HGCalTBAnalyzer.doDigis = False
0104 process.HGCalTBAnalyzer.doRecHits = False
0105 process.g4SimHits.HGCSD.Detectors = 1
0106 process.g4SimHits.HGCSD.UseDetector = 1
0107
0108
0109 process.generation_step = cms.Path(process.pgen)
0110 process.gunfilter_step = cms.Path(process.HGCalTBCheckGunPostion)
0111 process.simulation_step = cms.Path(process.psim)
0112 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0113 process.analysis_step = cms.Path(process.HGCalTBAnalyzer)
0114 process.endjob_step = cms.EndPath(process.endOfProcess)
0115 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0116
0117
0118 process.schedule = cms.Schedule(process.generation_step,
0119 process.genfiltersummary_step,
0120 process.simulation_step,
0121 process.gunfilter_step,
0122 process.analysis_step,
0123 process.endjob_step,
0124 process.RAWSIMoutput_step,
0125 )
0126
0127 for path in process.paths:
0128 getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0129
0130