CMS 3D CMS Logo

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  #minTrackVertexWeight = cms.double(10e-4), # Tracks weight in vertex
14  minTrackVertexWeight = cms.double(-1.), # Tracks weight in vertex
15  minTrackPixelHits = cms.uint32(0), # pixel-only hits
16  minTrackHits = cms.uint32(3), # total track hits
17  minGammaEt = cms.double(1.0), # filter PFgammas below given Pt
18  #useTracksInsteadOfPFHadrons = cms.bool(False), # if true, use generalTracks, instead of PFChargedHadrons
19  minNeutralHadronEt = cms.double(30.)
20  ),
21  isolationQualityCuts = cms.PSet(
22  minTrackPt = cms.double(1.0),
23  maxTrackChi2 = cms.double(100.),
24  maxTransverseImpactParameter = cms.double(0.03),
25  maxDeltaZ = cms.double(0.2),
26  minTrackVertexWeight = cms.double(-1.), # Tracks weight in vertex
27  minTrackPixelHits = cms.uint32(0),
28  minTrackHits = cms.uint32(8),
29  minGammaEt = cms.double(1.5),
30  #useTracksInsteadOfPFHadrons = cms.bool(False),
31  ),
32  vxAssocQualityCuts = cms.PSet(
33  minTrackPt = cms.double(0.5), # filter PFChargedHadrons below given pt
34  maxTrackChi2 = cms.double(100.), # require track Chi2
35  maxTransverseImpactParameter = cms.double(0.1), # wrt. PV
36  minTrackVertexWeight = cms.double(-1.), # Tracks weight in vertex
37  minTrackPixelHits = cms.uint32(0), # pixel-only hits
38  minTrackHits = cms.uint32(3), # total track hits
39  minGammaEt = cms.double(1.0) # filter PFgammas below given Pt
40  #useTracksInsteadOfPFHadrons = cms.bool(False), # if true, use generalTracks, instead of PFChargedHadrons
41  ),
42  # The central definition of primary vertex source.
43  primaryVertexSrc = cms.InputTag("offlinePrimaryVertices"),
44  # Possible algorithms are: 'highestPtInEvent', 'closestInDeltaZ', 'highestWeightForLeadTrack' and 'combined'
45  pvFindingAlgo = cms.string("closestInDeltaZ"),
46  vertexTrackFiltering = cms.bool(False),
47  recoverLeadingTrk = cms.bool(False),
48  # produce histograms when running in debug mode
49  # makeHisto = cms.bool(False)
50  leadingTrkOrPFCandOption = cms.string("leadPFCand")
51  ##leadingTrkOrPFCandOption = cms.string("leadTrack")
52  ##leadingTrkOrPFCandOption = cms.string("minLeadTrackOrPFCand")
53  ##leadingTrkOrPFCandOption = cms.string("firstTrack") #default behaviour until 710 (first track in the collection)
54 )
55 phase2_common.toModify(PFTauQualityCuts,
56  isolationQualityCuts = dict( maxDeltaZ = cms.double(0.1) ) )
57