test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TauRecoTruthMatchers_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 ## RECO-Truth standard matching criteria
4 tauTruthMatchingReqs = cms.PSet(
5  maxDPtRel = cms.double(10000000.0), #don't apply a Pt resolution cut
6  resolveByMatchQuality = cms.bool(True),
7  resolveAmbiguities = cms.bool(True),
8  maxDeltaR = cms.double(0.15)
9 )
10 qcdTruthMatchingReqs = cms.PSet(
11  maxDPtRel = cms.double(10000000.0),
12  resolveByMatchQuality = cms.bool(True),
13  resolveAmbiguities = cms.bool(True),
14  maxDeltaR = cms.double(0.3)
15 )
16 
17 #########################
18 # Tau Truth matchers #
19 #########################
20 
21 matchMCTausInsideOut = cms.EDProducer("PFTauDecayModeTruthMatcher",
22  tauTruthMatchingReqs,
23  src = cms.InputTag("makeMCTauDecayModes"),
24  matched = cms.InputTag("pfRecoTauProducerInsideOut")
25 )
26 
27 matchMCTausShrinkingCone = matchMCTausInsideOut.clone(
28 # tauTruthMatchingReqs,
29  src = cms.InputTag("makeMCTauDecayModes"),
30  matched = cms.InputTag("shrinkingConePFTauProducer")
31 )
32 
33 matchMCTaus = cms.Sequence(matchMCTausShrinkingCone)
34 
35 #########################
36 # QCD Truth matchers #
37 #########################
38 
39 matchMCQCDInsideOut = cms.EDProducer("PFTauDecayModeTruthMatcher",
40  qcdTruthMatchingReqs,
41  src = cms.InputTag("makeMCQCDTauDecayModes"),
42  matched = cms.InputTag("pfRecoTauProducerInsideOut")
43 )
44 
45 matchMCQCDShrinkingCone = matchMCQCDInsideOut.clone(
46 # qcdTruthMatchingReqs,
47  src = cms.InputTag("makeMCQCDTauDecayModes"),
48  matched = cms.InputTag("shrinkingConePFTauProducer")
49 )
50 
51 matchMCQCD = cms.Sequence(matchMCQCDShrinkingCone)
52