CMS 3D CMS Logo

PFTauMatching_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 pfTauMatcher = cms.EDProducer(
4  "PFTauMatcher",
5  src = cms.InputTag("your_collection"),
6  matched = cms.InputTag("hpsTancTaus"),
7  mcPdgId = cms.vint32(), # n/a
8  mcStatus = cms.vint32(), # n/a
9  checkCharge = cms.bool(True), # Require charge is correct
10  maxDeltaR = cms.double(0.15), # Minimum deltaR for the match
11  maxDPtRel = cms.double(3.0), # Minimum deltaPt/Pt for the match
12  resolveAmbiguities = cms.bool(False), # Forbid two RECO objects to match to the same GEN object
13  resolveByMatchQuality = cms.bool(False), # False = just match input in order; True = pick lowest deltaR pair first
14 )
15 
16 candViewMatchedToPFTauRefSelector = cms.EDFilter(
17  "CandViewPFTauMatchRefSelector",
18  src = cms.InputTag("kinematicSignalJets"),
19  matching = cms.InputTag("pfTauMatcher"),
20  # keep events with no matches
21  filter = cms.bool(False)
22 )