Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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('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.HGCalTB161TimingLayerXML_cfi')
0012 process.load('Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi')
0013 process.load('Geometry.HGCalCommonData.hgcalParametersInitialization_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.VtxSmearedGauss_cfi')
0018 process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
0019 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0020 process.load('Configuration.StandardSequences.SimIdeal_cff')
0021 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0022 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0023 process.load('SimG4CMS.HGCalTestBeam.HGCalTimingAnalyzer_cfi')
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026         input = cms.untracked.int32(10)
0027 )
0028 
0029 process.MessageLogger = cms.Service("MessageLogger",
0030     cout = cms.untracked.PSet(
0031         HGCSim = cms.untracked.PSet(
0032             limit = cms.untracked.int32(-1)
0033         ),
0034         default = cms.untracked.PSet(
0035             limit = cms.untracked.int32(0)
0036         ),
0037         enable = cms.untracked.bool(True)
0038     )
0039 )
0040 
0041 # Input source
0042 process.source = cms.Source("EmptySource")
0043 
0044 process.options = cms.untracked.PSet(
0045 
0046 )
0047 
0048 # Production Info
0049 process.configurationMetadata = cms.untracked.PSet(
0050     annotation = cms.untracked.string('SingleElectronE4_cfi'),
0051     name = cms.untracked.string('Applications'),
0052     version = cms.untracked.string('$Revision: 1.19 $')
0053 )
0054 
0055 # Output definition
0056 
0057 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0058     SelectEvents = cms.untracked.PSet(
0059         SelectEvents = cms.vstring('generation_step')
0060     ),
0061     dataset = cms.untracked.PSet(
0062         dataTier = cms.untracked.string('GEN-SIM'),
0063         filterName = cms.untracked.string('')
0064     ),
0065     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0066     fileName = cms.untracked.string('file:gensim.root'),
0067     outputCommands = process.RAWSIMEventContent.outputCommands,
0068     splitLevel = cms.untracked.int32(0)
0069 )
0070 
0071 # Additional output definition
0072 process.TFileService = cms.Service("TFileService",
0073                                    fileName = cms.string('TBGenSim.root')
0074                                    )
0075 
0076 # Other statements
0077 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0078 from Configuration.AlCa.GlobalTag import GlobalTag
0079 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0080 
0081 process.generator = cms.EDProducer("GaussRandomPThetaGunProducer",
0082                    AddAntiParticle = cms.bool(False),
0083                    PGunParameters = cms.PSet(
0084         MeanP    = cms.double(100.0),
0085         SigmaP   = cms.double(0.108),
0086         MinTheta = cms.double(0.0),
0087         MaxTheta = cms.double(0.0),
0088         MinPhi = cms.double(-3.14159265359),
0089         MaxPhi = cms.double(3.14159265359),
0090         PartID = cms.vint32(11)
0091         ),
0092                    Verbosity = cms.untracked.int32(0),
0093                    firstRun = cms.untracked.uint32(1),
0094                    psethack = cms.string('single electron E 250')
0095                    )
0096 
0097 
0098 process.VtxSmeared.MinZ = -800.0
0099 process.VtxSmeared.MaxZ = -800.0
0100 process.VtxSmeared.MinX = -7.5
0101 process.VtxSmeared.MaxX =  7.5
0102 process.VtxSmeared.MinY = -7.5
0103 process.VtxSmeared.MaxY =  7.5
0104 process.g4SimHits.HGCSD.StoreAllG4Hits = True
0105 process.HGCalTimingAnalyzer.GroupHits = False
0106 
0107 process.g4SimHits.HGCSD.Detectors = 1
0108 process.g4SimHits.HGCSD.UseDetector = 1
0109 
0110 # Path and EndPath definitions
0111 process.generation_step = cms.Path(process.pgen)
0112 process.simulation_step = cms.Path(process.psim)
0113 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0114 process.analysis_step = cms.Path(process.HGCalTimingAnalyzer)
0115 process.endjob_step = cms.EndPath(process.endOfProcess)
0116 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0117 
0118 # Schedule definition
0119 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.analysis_step,process.endjob_step,process.RAWSIMoutput_step)
0120 # filter all path with the production filter sequence
0121 for path in process.paths:
0122     getattr(process,path)._seq = process.generator * getattr(process,path)._seq 
0123 
0124