Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-04-27 23:38:31

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0004 from Configuration.ProcessModifiers.dd4hep_cff import dd4hep
0005 process = cms.Process('SIM',Run2_2018,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.GeometryDD4hepExtended2018DD4hep_cff')
0014 process.load('Configuration.Geometry.GeometryDD4hepExtended2018DD4hepReco_cff')
0015 process.load('Configuration.StandardSequences.MagneticField_cff')
0016 process.load('Configuration.StandardSequences.Generator_cff')
0017 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic25ns13TeVEarly2018Collision_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     accelerators = cms.untracked.vstring('*'),
0037     allowUnscheduled = cms.obsolete.untracked.bool,
0038     canDeleteEarly = cms.untracked.vstring(),
0039     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0040     dumpOptions = cms.untracked.bool(False),
0041     emptyRunLumiMode = cms.obsolete.untracked.string,
0042     eventSetup = cms.untracked.PSet(
0043         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0044             allowAnyLabel_=cms.required.untracked.uint32
0045         ),
0046         numberOfConcurrentIOVs = cms.untracked.uint32(0)
0047     ),
0048     fileMode = cms.untracked.string('FULLMERGE'),
0049     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0050     makeTriggerResults = cms.obsolete.untracked.bool,
0051     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(0),
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:step1.root'),
0079     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0080     splitLevel = cms.untracked.int32(0)
0081 )
0082 
0083 # Additional output definition
0084 
0085 # Other statements
0086 if hasattr(process, "XMLFromDBSource"): process.XMLFromDBSource.label="Extended"
0087 if hasattr(process, "DDDetectorESProducerFromDB"): process.DDDetectorESProducerFromDB.label="Extended"
0088 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0089 from Configuration.AlCa.GlobalTag import GlobalTag
0090 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '')
0091 
0092 process.generator = cms.EDFilter("Pythia8ConcurrentGeneratorFilter",
0093     PythiaParameters = cms.PSet(
0094         parameterSets = cms.vstring(
0095             'pythia8CommonSettings',
0096             'pythia8CUEP8M1Settings',
0097             'processParameters'
0098         ),
0099         processParameters = cms.vstring(
0100             'Top:gg2ttbar = on ',
0101             'Top:qqbar2ttbar = on ',
0102             '6:m0 = 175 '
0103         ),
0104         pythia8CUEP8M1Settings = cms.vstring(
0105             'Tune:pp 14',
0106             'Tune:ee 7',
0107             'MultipartonInteractions:pT0Ref=2.4024',
0108             'MultipartonInteractions:ecmPow=0.25208',
0109             'MultipartonInteractions:expPow=1.6'
0110         ),
0111         pythia8CommonSettings = cms.vstring(
0112             'Tune:preferLHAPDF = 2',
0113             'Main:timesAllowErrors = 10000',
0114             'Check:epTolErr = 0.01',
0115             'Beams:setProductionScalesFromLHEF = off',
0116             'SLHA:minMassSM = 1000.',
0117             'ParticleDecays:limitTau0 = on',
0118             'ParticleDecays:tau0Max = 10',
0119             'ParticleDecays:allowPhotonRadiation = on'
0120         )
0121     ),
0122     comEnergy = cms.double(13000.0),
0123     filterEfficiency = cms.untracked.double(1.0),
0124     maxEventsToPrint = cms.untracked.int32(0),
0125     pythiaHepMCVerbosity = cms.untracked.bool(False),
0126     pythiaPylistVerbosity = cms.untracked.int32(0)
0127 )
0128 
0129 
0130 process.ProductionFilterSequence = cms.Sequence(process.generator)
0131 
0132 # Path and EndPath definitions
0133 process.generation_step = cms.Path(process.pgen)
0134 process.simulation_step = cms.Path(process.psim)
0135 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0136 process.endjob_step = cms.EndPath(process.endOfProcess)
0137 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0138 
0139 # Schedule definition
0140 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0141 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0142 associatePatAlgosToolsTask(process)
0143 # filter all path with the production filter sequence
0144 for path in process.paths:
0145     getattr(process,path).insert(0, process.ProductionFilterSequence)
0146 
0147 
0148 
0149 # Customisation from command line
0150 
0151 # Add early deletion of temporary data products to reduce peak memory need
0152 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0153 process = customiseEarlyDelete(process)
0154 # End adding early deletion