Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:24:48

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0004 
0005 process = cms.Process('SIM',Run3_dd4hep)
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('Configuration.Geometry.GeometryDD4hepExtended2021Reco_cff')
0014 process.load('Configuration.StandardSequences.MagneticField_cff')
0015 process.load('Configuration.StandardSequences.Generator_cff')
0016 process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi')
0017 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0018 process.load('Configuration.StandardSequences.SimIdeal_cff')
0019 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0020 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0021 
0022 process.maxEvents = cms.untracked.PSet(
0023     input = cms.untracked.int32(10),
0024     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0025 )
0026 
0027 # Input source
0028 process.source = cms.Source("EmptySource")
0029 
0030 process.options = cms.untracked.PSet(
0031     FailPath = cms.untracked.vstring(),
0032     IgnoreCompletely = cms.untracked.vstring(),
0033     Rethrow = cms.untracked.vstring(),
0034     SkipEvent = cms.untracked.vstring(),
0035     allowUnscheduled = cms.obsolete.untracked.bool,
0036     canDeleteEarly = cms.untracked.vstring(),
0037     emptyRunLumiMode = cms.obsolete.untracked.string,
0038     eventSetup = cms.untracked.PSet(
0039         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0040 
0041         ),
0042         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0043     ),
0044     fileMode = cms.untracked.string('FULLMERGE'),
0045     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0046     makeTriggerResults = cms.obsolete.untracked.bool,
0047     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0048     numberOfConcurrentRuns = cms.untracked.uint32(1),
0049     numberOfStreams = cms.untracked.uint32(0),
0050     numberOfThreads = cms.untracked.uint32(1),
0051     printDependencies = cms.untracked.bool(False),
0052     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0053     throwIfIllegalParameter = cms.untracked.bool(True),
0054     wantSummary = cms.untracked.bool(False)
0055 )
0056 
0057 # Production Info
0058 process.configurationMetadata = cms.untracked.PSet(
0059     annotation = cms.untracked.string('TTbar_14TeV_TuneCP5_cfi nevts:10'),
0060     name = cms.untracked.string('Applications'),
0061     version = cms.untracked.string('$Revision: 1.19 $')
0062 )
0063 
0064 # Output definition
0065 
0066 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0067     SelectEvents = cms.untracked.PSet(
0068         SelectEvents = cms.vstring('generation_step')
0069     ),
0070     dataset = cms.untracked.PSet(
0071         dataTier = cms.untracked.string('GEN-SIM'),
0072         filterName = cms.untracked.string('')
0073     ),
0074     fileName = cms.untracked.string('file:step1.root'),
0075     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0076     splitLevel = cms.untracked.int32(0)
0077 )
0078 
0079 # Additional output definition
0080 
0081 # Other statements
0082 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0083 from Configuration.AlCa.GlobalTag import GlobalTag
0084 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0085 
0086 process.generator = cms.EDFilter("Pythia8GeneratorFilter",
0087     PythiaParameters = cms.PSet(
0088         parameterSets = cms.vstring(
0089             'pythia8CommonSettings', 
0090             'pythia8CP5Settings', 
0091             'processParameters'
0092         ),
0093         processParameters = cms.vstring(
0094             'Top:gg2ttbar = on ', 
0095             'Top:qqbar2ttbar = on ', 
0096             '6:m0 = 175 '
0097         ),
0098         pythia8CP5Settings = cms.vstring(
0099             'Tune:pp 14', 
0100             'Tune:ee 7', 
0101             'MultipartonInteractions:ecmPow=0.03344', 
0102             'MultipartonInteractions:bProfile=2', 
0103             'MultipartonInteractions:pT0Ref=1.41', 
0104             'MultipartonInteractions:coreRadius=0.7634', 
0105             'MultipartonInteractions:coreFraction=0.63', 
0106             'ColourReconnection:range=5.176', 
0107             'SigmaTotal:zeroAXB=off', 
0108             'SpaceShower:alphaSorder=2', 
0109             'SpaceShower:alphaSvalue=0.118', 
0110             'SigmaProcess:alphaSvalue=0.118', 
0111             'SigmaProcess:alphaSorder=2', 
0112             'MultipartonInteractions:alphaSvalue=0.118', 
0113             'MultipartonInteractions:alphaSorder=2', 
0114             'TimeShower:alphaSorder=2', 
0115             'TimeShower:alphaSvalue=0.118', 
0116             'SigmaTotal:mode = 0', 
0117             'SigmaTotal:sigmaEl = 21.89', 
0118             'SigmaTotal:sigmaTot = 100.309', 
0119             'PDF:pSet=LHAPDF6:NNPDF31_nnlo_as_0118'
0120         ),
0121         pythia8CommonSettings = cms.vstring(
0122             'Tune:preferLHAPDF = 2', 
0123             'Main:timesAllowErrors = 10000', 
0124             'Check:epTolErr = 0.01', 
0125             'Beams:setProductionScalesFromLHEF = off', 
0126             'SLHA:minMassSM = 1000.', 
0127             'ParticleDecays:limitTau0 = on', 
0128             'ParticleDecays:tau0Max = 10', 
0129             'ParticleDecays:allowPhotonRadiation = on'
0130         )
0131     ),
0132     comEnergy = cms.double(14000.0),
0133     filterEfficiency = cms.untracked.double(1.0),
0134     maxEventsToPrint = cms.untracked.int32(0),
0135     pythiaHepMCVerbosity = cms.untracked.bool(False),
0136     pythiaPylistVerbosity = cms.untracked.int32(0)
0137 )
0138 
0139 
0140 process.ProductionFilterSequence = cms.Sequence(process.generator)
0141 
0142 # Path and EndPath definitions
0143 process.generation_step = cms.Path(process.pgen)
0144 process.simulation_step = cms.Path(process.psim)
0145 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0146 process.endjob_step = cms.EndPath(process.endOfProcess)
0147 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0148 
0149 # Schedule definition
0150 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0151 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0152 associatePatAlgosToolsTask(process)
0153 # filter all path with the production filter sequence
0154 for path in process.paths:
0155     getattr(process,path).insert(0, process.ProductionFilterSequence)
0156 
0157 
0158 # Customisation from command line
0159 
0160 # Add early deletion of temporary data products to reduce peak memory need
0161 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0162 process = customiseEarlyDelete(process)
0163 # End adding early deletion