Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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