Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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