Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:22:57

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