Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:22

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("Configuration.Geometry.GeometryExtended2021_cff")
0013 process.load("Configuration.StandardSequences.MagneticField_cff")
0014 process.load('Configuration.StandardSequences.Generator_cff')
0015 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic25ns13p6TeVEarly2022Collision_cfi')
0016 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0017 process.load('Configuration.StandardSequences.SimIdeal_cff')
0018 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0019 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022     input = cms.untracked.int32(10),
0023 )
0024 
0025 # Input source
0026 process.source = cms.Source("EmptySource")
0027 
0028 # Production Info
0029 process.configurationMetadata = cms.untracked.PSet(
0030     annotation = cms.untracked.string('TTbar_14TeV_TuneCP5_cfi nevts:10'),
0031     name = cms.untracked.string('Applications'),
0032     version = cms.untracked.string('$Revision: 1.19 $')
0033 )
0034 
0035 # Other statements
0036 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0037 from Configuration.AlCa.GlobalTag import GlobalTag
0038 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0039 
0040 process.generator = cms.EDFilter("Pythia8GeneratorFilter",
0041     PythiaParameters = cms.PSet(
0042         parameterSets = cms.vstring(
0043             'pythia8CommonSettings', 
0044             'pythia8CP5Settings', 
0045             'processParameters'
0046         ),
0047         processParameters = cms.vstring(
0048             'Top:gg2ttbar = on ', 
0049             'Top:qqbar2ttbar = on ', 
0050             '6:m0 = 175 '
0051         ),
0052         pythia8CP5Settings = cms.vstring(
0053             'Tune:pp 14', 
0054             'Tune:ee 7', 
0055             'MultipartonInteractions:ecmPow=0.03344', 
0056             'MultipartonInteractions:bProfile=2', 
0057             'MultipartonInteractions:pT0Ref=1.41', 
0058             'MultipartonInteractions:coreRadius=0.7634', 
0059             'MultipartonInteractions:coreFraction=0.63', 
0060             'ColourReconnection:range=5.176', 
0061             'SigmaTotal:zeroAXB=off', 
0062             'SpaceShower:alphaSorder=2', 
0063             'SpaceShower:alphaSvalue=0.118', 
0064             'SigmaProcess:alphaSvalue=0.118', 
0065             'SigmaProcess:alphaSorder=2', 
0066             'MultipartonInteractions:alphaSvalue=0.118', 
0067             'MultipartonInteractions:alphaSorder=2', 
0068             'TimeShower:alphaSorder=2', 
0069             'TimeShower:alphaSvalue=0.118', 
0070             'SigmaTotal:mode = 0', 
0071             'SigmaTotal:sigmaEl = 21.89', 
0072             'SigmaTotal:sigmaTot = 100.309', 
0073             'PDF:pSet=LHAPDF6:NNPDF31_nnlo_as_0118'
0074         ),
0075         pythia8CommonSettings = cms.vstring(
0076             'Tune:preferLHAPDF = 2', 
0077             'Main:timesAllowErrors = 10000', 
0078             'Check:epTolErr = 0.01', 
0079             'Beams:setProductionScalesFromLHEF = off', 
0080             'SLHA:keepSM = on', 
0081             'SLHA:minMassSM = 1000.', 
0082             'ParticleDecays:limitTau0 = on', 
0083             'ParticleDecays:tau0Max = 10', 
0084             'ParticleDecays:allowPhotonRadiation = on'
0085         )
0086     ),
0087     comEnergy = cms.double(14000.0),
0088     filterEfficiency = cms.untracked.double(1.0),
0089     maxEventsToPrint = cms.untracked.int32(0),
0090     pythiaHepMCVerbosity = cms.untracked.bool(False),
0091     pythiaPylistVerbosity = cms.untracked.int32(0)
0092 )
0093 
0094 
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 
0103 # Schedule definition
0104 process.schedule = cms.Schedule(process.generation_step,
0105                                 process.genfiltersummary_step,
0106                                 process.simulation_step,
0107                                 process.endjob_step)
0108 
0109 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0110 associatePatAlgosToolsTask(process)
0111 # filter all path with the production filter sequence
0112 for path in process.paths:
0113         getattr(process,path).insert(0, process.ProductionFilterSequence)
0114 
0115 # Add early deletion of temporary data products to reduce peak memory need
0116 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0117 process = customiseEarlyDelete(process)
0118 # End adding early deletion