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_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     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:step1.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.generator = cms.EDFilter("Pythia8GeneratorFilter",
0095     PythiaParameters = cms.PSet(
0096         parameterSets = cms.vstring(
0097             'pythia8CommonSettings', 
0098             'pythia8CP5Settings', 
0099             'processParameters'
0100         ),
0101         processParameters = cms.vstring(
0102             'Top:gg2ttbar = on ', 
0103             'Top:qqbar2ttbar = on ', 
0104             '6:m0 = 175 '
0105         ),
0106         pythia8CP5Settings = cms.vstring(
0107             'Tune:pp 14', 
0108             'Tune:ee 7', 
0109             'MultipartonInteractions:ecmPow=0.03344', 
0110             'MultipartonInteractions:bProfile=2', 
0111             'MultipartonInteractions:pT0Ref=1.41', 
0112             'MultipartonInteractions:coreRadius=0.7634', 
0113             'MultipartonInteractions:coreFraction=0.63', 
0114             'ColourReconnection:range=5.176', 
0115             'SigmaTotal:zeroAXB=off', 
0116             'SpaceShower:alphaSorder=2', 
0117             'SpaceShower:alphaSvalue=0.118', 
0118             'SigmaProcess:alphaSvalue=0.118', 
0119             'SigmaProcess:alphaSorder=2', 
0120             'MultipartonInteractions:alphaSvalue=0.118', 
0121             'MultipartonInteractions:alphaSorder=2', 
0122             'TimeShower:alphaSorder=2', 
0123             'TimeShower:alphaSvalue=0.118', 
0124             'SigmaTotal:mode = 0', 
0125             'SigmaTotal:sigmaEl = 21.89', 
0126             'SigmaTotal:sigmaTot = 100.309', 
0127             'PDF:pSet=LHAPDF6:NNPDF31_nnlo_as_0118'
0128         ),
0129         pythia8CommonSettings = cms.vstring(
0130             'Tune:preferLHAPDF = 2', 
0131             'Main:timesAllowErrors = 10000', 
0132             'Check:epTolErr = 0.01', 
0133             'Beams:setProductionScalesFromLHEF = off', 
0134             'SLHA:minMassSM = 1000.', 
0135             'ParticleDecays:limitTau0 = on', 
0136             'ParticleDecays:tau0Max = 10', 
0137             'ParticleDecays:allowPhotonRadiation = on'
0138         )
0139     ),
0140     comEnergy = cms.double(14000.0),
0141     filterEfficiency = cms.untracked.double(1.0),
0142     maxEventsToPrint = cms.untracked.int32(0),
0143     pythiaHepMCVerbosity = cms.untracked.bool(False),
0144     pythiaPylistVerbosity = cms.untracked.int32(0)
0145 )
0146 
0147 
0148 process.ProductionFilterSequence = cms.Sequence(process.generator)
0149 
0150 # Path and EndPath definitions
0151 process.generation_step = cms.Path(process.pgen)
0152 process.simulation_step = cms.Path(process.psim)
0153 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0154 process.endjob_step = cms.EndPath(process.endOfProcess)
0155 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0156 
0157 # Schedule definition
0158 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0159 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0160 associatePatAlgosToolsTask(process)
0161 # filter all path with the production filter sequence
0162 for path in process.paths:
0163     getattr(process,path).insert(0, process.ProductionFilterSequence)
0164 
0165 
0166 # Customisation from command line
0167 
0168 # Add early deletion of temporary data products to reduce peak memory need
0169 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0170 process = customiseEarlyDelete(process)
0171 # End adding early deletion