Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-14 23:39:52

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 # import of standard configurations
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('SimGeneral.MixingModule.mixNoPU_cfi')
0012 process.load('SimG4CMS.HGCalTestBeam.HGCalTB181JuneXML_cfi')
0013 process.load('Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi')
0014 process.load('Geometry.HGCalCommonData.hgcalParametersInitialization_cfi')
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 
0024 process.maxEvents = cms.untracked.PSet(
0025     input = cms.untracked.int32(10)
0026 )
0027 
0028 if 'MessageLogger' in process.__dict__:
0029     process.MessageLogger.HGCSim=dict()
0030     process.MessageLogger.HcalSim=dict()
0031     process.MessageLogger.HcalTB06BeamSD=dict()
0032 
0033 # Input source
0034 process.source = cms.Source("EmptySource")
0035 
0036 process.options = cms.untracked.PSet(
0037 )
0038 
0039 # Production Info
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 # Additional output definition
0047 process.TFileService = cms.Service("TFileService",
0048                                    fileName = cms.string('TBGenSim.root')
0049                                    )
0050 
0051 # Other statements
0052 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0053 from Configuration.AlCa.GlobalTag import GlobalTag
0054 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0055 
0056 process.generator = cms.EDProducer("FlatRandomEThetaGunProducer",
0057     AddAntiParticle = cms.bool(False),
0058     PGunParameters = cms.PSet(
0059         MinE = cms.double(99.99),
0060         MaxE = cms.double(100.01),
0061         MinTheta = cms.double(0.0),
0062         MaxTheta = cms.double(0.0),
0063         MinPhi = cms.double(-3.14159265359),
0064         MaxPhi = cms.double(3.14159265359),
0065         PartID = cms.vint32(11)
0066     ),
0067     Verbosity = cms.untracked.int32(0),
0068     firstRun = cms.untracked.uint32(1),
0069     psethack = cms.string('single muon E 100')
0070 )
0071 process.VtxSmeared.MinZ = -800.0
0072 process.VtxSmeared.MaxZ = -800.0
0073 process.VtxSmeared.MinX = -7.5
0074 process.VtxSmeared.MaxX =  7.5
0075 process.VtxSmeared.MinY = -7.5
0076 process.VtxSmeared.MaxY =  7.5
0077 process.g4SimHits.HGCSD.RejectMouseBite = True
0078 process.g4SimHits.HGCSD.RotatedWafer    = True
0079 
0080 # Path and EndPath definitions
0081 process.generation_step = cms.Path(process.pgen)
0082 process.gunfilter_step  = cms.Path(process.HGCalTBCheckGunPostion)
0083 process.simulation_step = cms.Path(process.psim)
0084 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0085 process.endjob_step = cms.EndPath(process.endOfProcess)
0086 
0087 # Schedule definition
0088 process.schedule = cms.Schedule(process.generation_step,
0089                 process.genfiltersummary_step,
0090                 process.simulation_step,
0091                 process.gunfilter_step,
0092                 process.endjob_step,
0093                 )
0094 # filter all path with the production filter sequence
0095 for path in process.paths:
0096     getattr(process,path)._seq = process.generator * getattr(process,path)._seq 
0097 
0098