Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:22:41

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_cff import Run3
0004 
0005 process = cms.Process('SIM',Run3)
0006 
0007 # import of standard configurations
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0013 process.load('Geometry.TrackerCommonData.cmsExtendedGeometry2021ZeroMaterialXML_cfi')
0014 process.load('Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi')
0015 process.load('Geometry.EcalCommonData.ecalSimulationParameters_cff')
0016 process.load('Geometry.HcalCommonData.hcalDDDSimConstants_cff')
0017 process.load('Geometry.HcalCommonData.hcalDDDRecConstants_cfi')
0018 process.load('Geometry.MuonNumbering.muonGeometryConstants_cff')
0019 process.load('Configuration.StandardSequences.MagneticField_cff')
0020 process.load('Configuration.StandardSequences.Generator_cff')
0021 process.load('IOMC.EventVertexGenerators.VtxSmearedRun3RoundOptics25ns13TeVLowSigmaZ_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 
0027 process.maxEvents = cms.untracked.PSet(
0028     input = cms.untracked.int32(10),
0029     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0030 )
0031 
0032 #if hasattr(process,'MessageLogger'):
0033 #    process.MessageLogger.SimG4CoreGeometry=dict()
0034 
0035 # Input source
0036 process.source = cms.Source("EmptySource")
0037 
0038 process.options = cms.untracked.PSet(
0039     FailPath = cms.untracked.vstring(),
0040     IgnoreCompletely = cms.untracked.vstring(),
0041     Rethrow = cms.untracked.vstring(),
0042     SkipEvent = cms.untracked.vstring(),
0043     allowUnscheduled = cms.obsolete.untracked.bool,
0044     canDeleteEarly = cms.untracked.vstring(),
0045     emptyRunLumiMode = cms.obsolete.untracked.string,
0046     eventSetup = cms.untracked.PSet(
0047         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0048 
0049         ),
0050         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0051     ),
0052     fileMode = cms.untracked.string('FULLMERGE'),
0053     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0054     makeTriggerResults = cms.obsolete.untracked.bool,
0055     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0056     numberOfConcurrentRuns = cms.untracked.uint32(1),
0057     numberOfStreams = cms.untracked.uint32(0),
0058     numberOfThreads = cms.untracked.uint32(1),
0059     printDependencies = cms.untracked.bool(False),
0060     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0061     throwIfIllegalParameter = cms.untracked.bool(True),
0062     wantSummary = cms.untracked.bool(False)
0063 )
0064 
0065 # Production Info
0066 process.configurationMetadata = cms.untracked.PSet(
0067     annotation = cms.untracked.string('TTbar_14TeV_TuneCP5_cfi nevts:10'),
0068     name = cms.untracked.string('Applications'),
0069     version = cms.untracked.string('$Revision: 1.19 $')
0070 )
0071 
0072 # Output definition
0073 
0074 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0075     SelectEvents = cms.untracked.PSet(
0076         SelectEvents = cms.vstring('generation_step')
0077     ),
0078     dataset = cms.untracked.PSet(
0079         dataTier = cms.untracked.string('GEN-SIM'),
0080         filterName = cms.untracked.string('')
0081     ),
0082     fileName = cms.untracked.string('file:ttbar21.root'),
0083     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0084     splitLevel = cms.untracked.int32(0)
0085 )
0086 
0087 # Additional output definition
0088 
0089 # Other statements
0090 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0091 from Configuration.AlCa.GlobalTag import GlobalTag
0092 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0093 
0094 process.load('Configuration.Generator.TTbar_14TeV_TuneCP5_cfi')
0095 process.ProductionFilterSequence = cms.Sequence(process.generator)
0096 
0097 # Path and EndPath definitions
0098 process.generation_step = cms.Path(process.pgen)
0099 process.simulation_step = cms.Path(process.psim)
0100 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0101 process.endjob_step = cms.EndPath(process.endOfProcess)
0102 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0103 
0104 # Schedule definition
0105 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0106 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0107 associatePatAlgosToolsTask(process)
0108 # filter all path with the production filter sequence
0109 for path in process.paths:
0110     getattr(process,path).insert(0, process.ProductionFilterSequence)
0111 
0112 
0113 
0114 # Customisation from command line
0115 
0116 # Add early deletion of temporary data products to reduce peak memory need
0117 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0118 process = customiseEarlyDelete(process)
0119 # End adding early deletion