Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:25

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