Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:04

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