Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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