File indexing completed on 2024-04-06 12:30:09
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("FWCore.MessageService.MessageLogger_cfi")
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('Configuration.EventContent.EventContent_cff')
0011 process.load('Geometry.HGCalTBCommonData.testTB230FEBXML_cfi')
0012 process.load('Geometry.HGCalCommonData.hgcalEENumberingInitialization_cfi')
0013 process.load('Geometry.HGCalCommonData.hgcalEEParametersInitialization_cfi')
0014 process.load('Configuration.StandardSequences.MagneticField_0T_cff')
0015 process.load('Configuration.StandardSequences.Generator_cff')
0016 process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
0017 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0018 process.load('Configuration.StandardSequences.SimIdeal_cff')
0019 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0020 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0021
0022
0023 process.maxEvents = cms.untracked.PSet(
0024 input = cms.untracked.int32(10)
0025 )
0026
0027 if 'MessageLogger' in process.__dict__:
0028 process.MessageLogger.HGCSim=dict()
0029 process.MessageLogger.CaloSim=dict()
0030 process.MessageLogger.FlatThetaGun=dict()
0031
0032
0033
0034 process.source = cms.Source("EmptySource")
0035
0036 process.options = cms.untracked.PSet(
0037 )
0038
0039
0040 process.configurationMetadata = cms.untracked.PSet(
0041 annotation = cms.untracked.string('SingleMuonE200_cfi nevts:10'),
0042 name = cms.untracked.string('Applications'),
0043 version = cms.untracked.string('$Revision: 1.19 $')
0044 )
0045
0046
0047
0048 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0049 SelectEvents = cms.untracked.PSet(
0050 SelectEvents = cms.vstring('generation_step')
0051 ),
0052 dataset = cms.untracked.PSet(
0053 dataTier = cms.untracked.string('GEN-SIM'),
0054 filterName = cms.untracked.string('')
0055 ),
0056 eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0057 fileName = cms.untracked.string('file:gensim.root'),
0058 outputCommands = process.RAWSIMEventContent.outputCommands,
0059 splitLevel = cms.untracked.int32(0)
0060 )
0061
0062
0063 process.TFileService = cms.Service("TFileService",
0064 fileName = cms.string('TBGenSim.root')
0065 )
0066
0067
0068 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0069 from Configuration.AlCa.GlobalTag import GlobalTag
0070 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0071
0072 process.generator = cms.EDProducer("FlatRandomEThetaGunProducer",
0073 AddAntiParticle = cms.bool(False),
0074 PGunParameters = cms.PSet(
0075 MinE = cms.double(9.99),
0076 MaxE = cms.double(10.01),
0077 MinTheta = cms.double(0.0),
0078 MaxTheta = cms.double(0.0),
0079 MinPhi = cms.double(-3.14159265359),
0080 MaxPhi = cms.double(3.14159265359),
0081 PartID = cms.vint32(11)
0082 ),
0083 Verbosity = cms.untracked.int32(1),
0084 firstRun = cms.untracked.uint32(1),
0085 psethack = cms.string('single electron E 10')
0086 )
0087 process.VtxSmeared.MinZ = 0.0
0088 process.VtxSmeared.MaxZ = 0.0
0089
0090
0091
0092
0093 process.g4SimHits.OnlySDs = ['HGCalSensitiveDetector']
0094 process.g4SimHits.HGCSD.Detectors = 1
0095 process.g4SimHits.HGCSD.RejectMouseBite = False
0096 process.g4SimHits.HGCSD.RotatedWafer = False
0097
0098
0099 process.generation_step = cms.Path(process.pgen)
0100 process.simulation_step = cms.Path(process.psim)
0101 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0102
0103 process.endjob_step = cms.EndPath(process.endOfProcess)
0104 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0105
0106
0107 process.schedule = cms.Schedule(process.generation_step,
0108 process.simulation_step,
0109
0110 process.endjob_step,
0111 process.RAWSIMoutput_step,
0112 )
0113
0114 for path in process.paths:
0115 getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0116
0117