Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-07 06:13:05

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