CMS 3D CMS Logo

matching_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def matchDirectSimOutputs(process, AOD=False, miniAOD=False):
4  # match sources of rechits with direct simulation outputs
5  process.totemRPUVPatternFinder.tagRecHit = cms.InputTag('ppsDirectProtonSimulation')
6  process.ctppsPixelLocalTracks.tag = cms.InputTag('ppsDirectProtonSimulation')
7  process.ctppsDiamondLocalTracks.recHitsTag = cms.InputTag('ppsDirectProtonSimulation')
8  # handle clashes between simulation and GT conditions
9  process.es_prefer_composrc = cms.ESPrefer('CTPPSCompositeESSource', 'ctppsCompositeESSource')
10  process.es_prefer_pixtopo = cms.ESPrefer('PPSPixelTopologyESSource', 'ppsPixelTopologyESSource')
11  process.es_prefer_lhcinfo = cms.ESPrefer('CTPPSBeamParametersFromLHCInfoESSource', 'ctppsBeamParametersFromLHCInfoESSource')
12  process.es_prefer_assocuts = cms.ESPrefer('PPSAssociationCutsESSource', 'ppsAssociationCutsESSource')
13  return process
14 
16  matchDirectSimOutputs(process)
17  process.beamDivergenceVtxGenerator.src = cms.InputTag('')
18  process.beamDivergenceVtxGenerator.srcGenParticle = cms.VInputTag(
19  cms.InputTag('genPUProtons', 'genPUProtons'),
20  cms.InputTag('genParticles')
21  )
22  return process
23 
25  matchDirectSimOutputs(process)
26  process.beamDivergenceVtxGenerator.src = cms.InputTag('')
27  process.beamDivergenceVtxGenerator.srcGenParticle = cms.VInputTag(
28  cms.InputTag('genPUProtons', 'genPUProtons'),
29  cms.InputTag('prunedGenParticles')
30  )
31  return process
def matchDirectSimOutputsMiniAOD(process)
Definition: matching_cff.py:24
def matchDirectSimOutputsAOD(process)
Definition: matching_cff.py:15
def matchDirectSimOutputs(process, AOD=False, miniAOD=False)
Definition: matching_cff.py:3