Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-04 22:45:30

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.StandardSequences.Eras import eras
0003 process = cms.Process('PPS', eras.Run2_2018)
0004 
0005 process.load('Configuration.StandardSequences.Services_cff')
0006 process.load('Configuration.EventContent.EventContent_cff')
0007 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0008 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0009 process.load('Configuration.StandardSequences.MagneticField_cff')
0010 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0011 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0012 process.load('SimPPS.Configuration.directSimPPS_cff')
0013 process.load('RecoPPS.Configuration.recoCTPPS_cff')
0014 
0015 # minimum of logs
0016 process.load('FWCore.MessageService.MessageLogger_cfi')
0017 process.MessageLogger.cerr.threshold = cms.untracked.string('')
0018 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(100)
0019 
0020 # global tag
0021 from Configuration.AlCa.GlobalTag import GlobalTag
0022 process.GlobalTag = GlobalTag(process.GlobalTag, '106X_upgrade2018_realistic_v16_L1v1', '')
0023 
0024 # raw data source
0025 process.source = cms.Source("PoolSource",
0026     fileNames = cms.untracked.vstring(
0027         #'/store/mc/RunIISummer20UL16MiniAODAPVv2/GGToMuMu_Pt-25_Elastic_13TeV-lpair/MINIAODSIM/106X_mcRun2_asymptotic_preVFP_v11-v1/280000/3870E880-4A47-7440-B122-C76062D2290F.root',
0028         '/store/mc/RunIISummer20UL18MiniAODv2/GGToMuMu_Pt-25_Elastic_13TeV-lpair/MINIAODSIM/106X_upgrade2018_realistic_v16_L1v1-v2/260000/6EC2EE65-77C0-3C43-A51B-7B94FE441894.root',
0029     ),
0030 )
0031 
0032 process.maxEvents = cms.untracked.PSet(
0033     input = cms.untracked.int32(1000)
0034 )
0035 
0036 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0037     beamDivergenceVtxGenerator = cms.PSet(initialSeed = cms.untracked.uint32(3849)),
0038     ppsDirectProtonSimulation = cms.PSet(initialSeed = cms.untracked.uint32(4981))
0039 )
0040 
0041 from SimPPS.DirectSimProducer.matching_cff import matchDirectSimOutputsMiniAOD
0042 matchDirectSimOutputsMiniAOD(process)
0043 
0044 process.p = cms.Path(
0045     process.directSimPPS
0046     * process.recoDirectSimPPS
0047 )
0048 
0049 # output configuration
0050 from RecoPPS.Configuration.RecoCTPPS_EventContent_cff import RecoCTPPSAOD
0051 process.output = cms.OutputModule('PoolOutputModule',
0052     fileName = cms.untracked.string('file:output.root'),
0053     outputCommands = RecoCTPPSAOD.outputCommands
0054 )
0055 
0056 process.outpath = cms.EndPath(process.output)