Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-28 03:10:20

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('SIMDIGI')
0004 
0005 # import of standard configurations
0006 process.load('Configuration.StandardSequences.Services_cff')
0007 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0008 process.load('FWCore.MessageService.MessageLogger_cfi')
0009 process.load('Configuration.EventContent.EventContent_cff')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimG4CMS.HGCalTestBeam.HGCalTB160XML_cfi')
0013 process.load('Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi')
0014 process.load('Geometry.HGCalCommonData.hgcalParametersInitialization_cfi')
0015 process.load('Geometry.HcalTestBeamData.hcalTB06Parameters_cff')
0016 process.load('Geometry.CaloEventSetup.HGCalTopology_cfi')
0017 process.load('Geometry.HGCalGeometry.HGCalGeometryESProducer_cfi')
0018 process.load('Configuration.StandardSequences.MagneticField_0T_cff')
0019 process.load('Configuration.StandardSequences.Generator_cff')
0020 process.load('GeneratorInterface.Core.generatorSmeared_cfi')
0021 process.load('IOMC.EventVertexGenerators.VtxSmearedGauss_cfi')
0022 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0023 process.load('Configuration.StandardSequences.SimIdeal_cff')
0024 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0025 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0026 process.load('SimG4CMS.HGCalTestBeam.DigiHGCalTB160_cff')
0027 process.load('SimG4CMS.HGCalTestBeam.HGCalTBAnalyzer_cfi')
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(1000)
0031 )
0032 
0033 # Input source
0034 process.source = cms.Source("EmptySource")
0035 
0036 process.options = cms.untracked.PSet(
0037 
0038 )
0039 
0040 # Production Info
0041 process.configurationMetadata = cms.untracked.PSet(
0042     version = cms.untracked.string('$Revision: 1.20 $'),
0043     annotation = cms.untracked.string('SingleElectronPt10_cfi nevts:10'),
0044     name = cms.untracked.string('Applications')
0045 )
0046 
0047 # Output definition
0048 
0049 process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0050     splitLevel = cms.untracked.int32(0),
0051     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0052 #    outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0053     outputCommands = cms.untracked.vstring('keep *'),
0054     fileName = cms.untracked.string('file:gensimdigi.root'),
0055     dataset = cms.untracked.PSet(
0056         filterName = cms.untracked.string(''),
0057         dataTier = cms.untracked.string('GEN-SIM-DIGI')
0058     ),
0059     SelectEvents = cms.untracked.PSet(
0060         SelectEvents = cms.vstring('generation_step')
0061     )
0062 )
0063 
0064 # Additional output definition
0065 process.TFileService = cms.Service("TFileService",
0066                                    fileName = cms.string('TBGenSimDigi.root')
0067                                    )
0068 
0069 # Other statements
0070 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0071 from Configuration.AlCa.GlobalTag import GlobalTag
0072 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_design', '')
0073 
0074 process.generator = cms.EDProducer("FlatRandomEThetaGunProducer",
0075     AddAntiParticle = cms.bool(False),
0076     PGunParameters = cms.PSet(
0077         MinE = cms.double(99.99),
0078         MaxE = cms.double(100.01),
0079         MinTheta = cms.double(0.0),
0080         MaxTheta = cms.double(0.0),
0081         MinPhi = cms.double(-3.14159265359),
0082         MaxPhi = cms.double(3.14159265359),
0083         PartID = cms.vint32(13)
0084     ),
0085     Verbosity = cms.untracked.int32(0),
0086     firstRun = cms.untracked.uint32(1),
0087     psethack = cms.string('single muon E 100')
0088 )
0089 process.VtxSmeared.MeanX  = 0.0
0090 process.VtxSmeared.SigmaX = 0.55
0091 process.VtxSmeared.MeanY  = 0.0
0092 process.VtxSmeared.SigmaY = 0.65
0093 process.VtxSmeared.MeanZ  = -3500.0
0094 process.VtxSmeared.SigmaZ = 0
0095 process.HGCalTBAnalyzer.doRecHits = False
0096 process.g4SimHits.OnlySDs = ['AHcalSensitiveDetector',
0097                              'HGCSensitiveDetector',
0098                              'HGCalTB1601SensitiveDetector',
0099                              'HcalTB06BeamDetector']
0100 
0101 # Path and EndPath definitions
0102 process.generation_step = cms.Path(process.pgen)
0103 process.simulation_step = cms.Path(process.psim)
0104 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0105 process.digitisation_step = cms.Path(process.mix)
0106 process.analysis_step = cms.Path(process.HGCalTBAnalyzer)
0107 process.endjob_step = cms.EndPath(process.endOfProcess)
0108 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0109 
0110 # Schedule definition
0111 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.analysis_step,process.endjob_step,process.FEVTDEBUGHLToutput_step)
0112 # filter all path with the production filter sequence
0113 for path in process.paths:
0114         getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0115 
0116 for label, prod in process.producers_().items():
0117         if prod.type_() == "OscarMTProducer":
0118             # ugly hack
0119             prod.__dict__['_TypedParameterizable__type'] = "OscarProducer"
0120