Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-09 23:32:00

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