CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PFRecoTauQualityCuts_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
3 
4 # A set of quality cuts used for the PFTaus. Note that the quality cuts are
5 # different for the signal and isolation regions. (Currently, only in Nhits)
6 
7 PFTauQualityCuts = cms.PSet(
8  signalQualityCuts = cms.PSet(
9  minTrackPt = cms.double(0.5), # filter PFChargedHadrons below given pt
10  maxTrackChi2 = cms.double(100.), # require track Chi2
11  maxTransverseImpactParameter = cms.double(0.1), # wrt. PV
12  maxDeltaZ = cms.double(0.4), # wrt. PV
13  maxDeltaZToLeadTrack = cms.double(-1.), # wrt. leading track (hightest pT track in the jet that seeds the tau reconstruction)
14  #minTrackVertexWeight = cms.double(10e-4), # Tracks weight in vertex
15  minTrackVertexWeight = cms.double(-1.), # Tracks weight in vertex
16  minTrackPixelHits = cms.uint32(0), # pixel-only hits
17  minTrackHits = cms.uint32(3), # total track hits
18  minGammaEt = cms.double(1.0), # filter PFgammas below given Pt
19  #useTracksInsteadOfPFHadrons = cms.bool(False), # if true, use generalTracks, instead of PFChargedHadrons
20  minNeutralHadronEt = cms.double(30.)
21  ),
22  isolationQualityCuts = cms.PSet(
23  minTrackPt = cms.double(1.0),
24  maxTrackChi2 = cms.double(100.),
25  maxTransverseImpactParameter = cms.double(0.03), # wrt. PV
26  maxDeltaZ = cms.double(0.2), # wrt. PV
27  maxDeltaZToLeadTrack = cms.double(-1.), # wrt. leading track (hightest pT track in the jet that seeds the tau reconstruction)
28  minTrackVertexWeight = cms.double(-1.), # Tracks weight in vertex
29  minTrackPixelHits = cms.uint32(0),
30  minTrackHits = cms.uint32(8),
31  minGammaEt = cms.double(1.5),
32  #useTracksInsteadOfPFHadrons = cms.bool(False),
33  ),
34  vxAssocQualityCuts = cms.PSet(
35  minTrackPt = cms.double(0.5), # filter PFChargedHadrons below given pt
36  maxTrackChi2 = cms.double(100.), # require track Chi2
37  maxTransverseImpactParameter = cms.double(0.1), # wrt. PV
38  minTrackVertexWeight = cms.double(-1.), # Tracks weight in vertex
39  minTrackPixelHits = cms.uint32(0), # pixel-only hits
40  minTrackHits = cms.uint32(3), # total track hits
41  minGammaEt = cms.double(1.0) # filter PFgammas below given Pt
42  #useTracksInsteadOfPFHadrons = cms.bool(False), # if true, use generalTracks, instead of PFChargedHadrons
43  ),
44  # The central definition of primary vertex source.
45  primaryVertexSrc = cms.InputTag("offlinePrimaryVertices"),
46  # Possible algorithms are: 'highestPtInEvent', 'closestInDeltaZ', 'highestWeightForLeadTrack' and 'combined'
47  pvFindingAlgo = cms.string("closestInDeltaZ"),
48  vertexTrackFiltering = cms.bool(False),
49  recoverLeadingTrk = cms.bool(False),
50  # produce histograms when running in debug mode
51  # makeHisto = cms.bool(False)
52  leadingTrkOrPFCandOption = cms.string("leadPFCand")
53  ##leadingTrkOrPFCandOption = cms.string("leadTrack")
54  ##leadingTrkOrPFCandOption = cms.string("minLeadTrackOrPFCand")
55  ##leadingTrkOrPFCandOption = cms.string("firstTrack") #default behaviour until 710 (first track in the collection)
56 )
57 phase2_common.toModify(PFTauQualityCuts,
58  isolationQualityCuts = dict(
59  maxDeltaZ = 0.15,
60  maxTransverseImpactParameter = 0.05
61  ) )
62