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