/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PhysicsTools/PatAlgos/python/mcMatchLayer0/photonMatch_cfi.py
18 строк
1 KB
Lindsey Gray
point PAT at the new GED collections; this completely breaks the PAT tests unless you point them at pre11 relvals by hand, in which case they work
13 янв 2014, 20:20
13 янв 2014, 20:20
0e57b76
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms # # Example for a configuration of the MC match # for photons (cuts are NOT tuned) # (using old values from TQAF, january 2008) # photonMatch = cms.EDProducer("MCMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR src = cms.InputTag("gedPhotons"), # RECO objects to match matched = cms.InputTag("genParticles"), # mc-truth particle collection mcPdgId = cms.vint32(22), # one or more PDG ID (11 = electron); absolute values (see below) checkCharge = cms.bool(True), # True = require RECO and MC objects to have the same charge mcStatus = cms.vint32(1), # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering) maxDeltaR = cms.double(0.2), # Minimum deltaR for the match maxDPtRel = cms.double(1.0), # Minimum deltaPt/Pt for the match resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object resolveByMatchQuality = cms.bool(False), # False = just match input in order; True = pick lowest deltaR pair first )