Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:23:18

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0005 # with command line options: SingleMuPt10_pythia8_cfi.py -s GEN,SIM,DIGI --pileup=NoPileUp --geometry DB --conditions=auto:run1_mc --eventcontent FEVTDEBUGHLT --no_exec -n 30
0006 import FWCore.ParameterSet.Config as cms
0007 import datetime
0008 import random
0009 
0010 process = cms.Process('DIGI')
0011 
0012 # import of standard configurations
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016 process.load('Configuration.EventContent.EventContent_cff')
0017 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0018 #process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0019 #process.load('Configuration.Geometry.GeometryDB_cff')
0020 #process.load('Configuration.StandardSequences.GeometryExtended_cff')
0021 process.load('Configuration.Geometry.GeometryExtended2016_cff')
0022 process.load('Configuration.Geometry.GeometryExtended2016Reco_cff')
0023 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0024 process.load('Configuration.StandardSequences.Generator_cff')
0025 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi')
0026 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0027 process.load('Configuration.StandardSequences.SimIdeal_cff')
0028 process.load('Configuration.StandardSequences.Digi_cff')
0029 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0030 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0031 
0032 process.load('RecoLocalMuon.RPCRecHit.rpcRecHits_cfi')
0033 from RecoLocalMuon.RPCRecHit.rpcRecHits_cfi import *
0034 
0035 process.load('L1Trigger.L1TMuonCPPF.emulatorCppfDigis_cfi')
0036 from L1Trigger.L1TMuonCPPF.emulatorCppfDigis_cfi import *
0037 
0038 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1)
0039 process.MessageLogger = cms.Service("MessageLogger")
0040 process.maxEvents = cms.untracked.PSet(
0041     input = cms.untracked.int32(300)
0042     )
0043 
0044 
0045 # Input source
0046 process.source = cms.Source("EmptySource"
0047                 )
0048 process.options = cms.untracked.PSet(
0049     )
0050 
0051 # Production Info
0052 process.configurationMetadata = cms.untracked.PSet(
0053     annotation = cms.untracked.string('SingleMuPt10_pythia8_cfi.py nevts:100'),
0054     name = cms.untracked.string('Applications'),
0055     version = cms.untracked.string('$Revision: 1.19 $')
0056     )
0057 
0058 # Output definition
0059 
0060 process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0061                           SelectEvents = cms.untracked.PSet(
0062         SelectEvents = cms.vstring('generation_step')
0063         ),
0064                           dataset = cms.untracked.PSet(
0065         dataTier = cms.untracked.string(''),
0066         filterName = cms.untracked.string('')
0067         ),
0068                           eventAutoFlushCompressedSize = cms.untracked.int32(10485760),
0069                           fileName = cms.untracked.string('SingleMuPt10_pythia8_cfi_py_GEN_SIM_DIGI.root'),
0070                           outputCommands = cms.untracked.vstring('drop *',"keep *_emulatorMuonRPCDigis_*_*", "keep *_emulatorCppfDigis_*_*", 
0071                                              "keep *_rpcRecHits_*_*", "keep *_genParticles_*_*"),
0072                           #outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0073                           splitLevel = cms.untracked.int32(0)
0074                           )
0075 
0076 # Additional output definition
0077 
0078 # Other statements
0079 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0080 from Configuration.AlCa.GlobalTag import GlobalTag
0081 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0082 
0083 
0084 from IOMC.RandomEngine.RandomServiceHelper import  RandomNumberServiceHelper
0085 randHelper =  RandomNumberServiceHelper(process.RandomNumberGeneratorService)
0086 randHelper.populate()
0087 
0088 process.RandomNumberGeneratorService.saveFileName =  cms.untracked.string("RandomEngineState.log")
0089 
0090 
0091 process.generator = cms.EDFilter("Pythia8PtGun",
0092                  PGunParameters = cms.PSet(
0093         AddAntiParticle = cms.bool(True),
0094         MaxEta = cms.double(1.6),
0095         MaxPhi = cms.double(3.14159265359),
0096         MaxPt = cms.double(30.1),
0097         MinEta = cms.double(1.2),
0098         MinPhi = cms.double(-3.14159265359),
0099         MinPt = cms.double(1.1),
0100         ParticleID = cms.vint32(-13)
0101         ),
0102                  PythiaParameters = cms.PSet(
0103         parameterSets = cms.vstring()
0104         ),
0105                  Verbosity = cms.untracked.int32(0),
0106                  firstRun = cms.untracked.uint32(1),
0107                  psethack = cms.string('single mu pt 10')
0108                  )
0109 
0110 process.rpcRecHits.rpcDigiLabel = 'simMuonRPCDigis'
0111 process.emulatorCppfDigis.recHitLabel = 'rpcRecHits'
0112 
0113 # Path and EndPath definitions
0114 process.generation_step = cms.Path(process.pgen)
0115 process.simulation_step = cms.Path(process.psim)
0116 process.digitisation_step = cms.Path(process.pdigi)
0117 process.rpcrechits_step = cms.Path(process.rpcRecHits)
0118 process.emulatorCppfDigis_step = cms.Path(process.emulatorCppfDigis)
0119 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0120 process.endjob_step = cms.EndPath(process.endOfProcess)
0121 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0122 
0123 
0124 # Schedule definition
0125 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.rpcrechits_step,process.emulatorCppfDigis_step,process.endjob_step,process.FEVTDEBUGHLToutput_step)
0126 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0127 associatePatAlgosToolsTask(process)
0128 # filter all path with the production filter sequence
0129 for path in process.paths:
0130     getattr(process,path)._seq = process.generator * getattr(process,path)._seq 
0131     
0132     
0133     # Customisation from command line
0134     # Add early deletion of temporary data products to reduce peak memory need
0135     from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0136     process = customiseEarlyDelete(process)
0137 # End adding early deletion