CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFRecoTauDiscriminationLowPt_cff.py
Go to the documentation of this file.
2 
3 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByTrackIsolation_cfi import pfRecoTauDiscriminationByTrackIsolation
4 lowptpfTauDiscrByTrackIsolation = pfRecoTauDiscriminationByTrackIsolation.clone()
5 lowptpfTauDiscrByTrackIsolation.PFTauProducer = cms.InputTag('pfLayer0Taus')
6 lowptpfTauDiscrByTrackIsolation.Prediscriminants.leadTrack.Producer = cms.InputTag('fixedConePFTauDiscriminationByLeadingTrackFinding')
7 lowptpfTauDiscrByTrackIsolation.ApplySumPtCut = cms.bool(True)
8 lowptpfTauDiscrByTrackIsolation.ApplyRelativeSumPtCut = cms.bool(False)
9 lowptpfTauDiscrByTrackIsolation.maximumSumPtCut = cms.double(1.0)
10 lowptpfTauDiscrByTrackIsolation.applyOccupancyCut = cms.bool(False)
11 lowptpfTauDiscrByTrackIsolation.qualityCuts.isolationQualityCuts.minTrackPt=cms.double(0.0)
12 
13 lowptpfTauDiscrByRelTrackIsolation = pfRecoTauDiscriminationByTrackIsolation.clone()
14 lowptpfTauDiscrByRelTrackIsolation.PFTauProducer = cms.InputTag('pfLayer0Taus')
15 lowptpfTauDiscrByRelTrackIsolation.Prediscriminants.leadTrack.Producer = cms.InputTag('fixedConePFTauDiscriminationByLeadingTrackFinding')
16 lowptpfTauDiscrByRelTrackIsolation.ApplySumPtCut = cms.bool(False)
17 lowptpfTauDiscrByRelTrackIsolation.ApplyRelativeSumPtCut = cms.bool(True)
18 lowptpfTauDiscrByRelTrackIsolation.maximumSumPtCut = cms.double(0.05)
19 lowptpfTauDiscrByRelTrackIsolation.applyOccupancyCut = cms.bool(True)
20 lowptpfTauDiscrByRelTrackIsolation.qualityCuts.isolationQualityCuts.minTrackPt=cms.double(0.0)
21 
22 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByCharge_cfi import pfRecoTauDiscriminationByCharge
23 pfRecoTauByCharge = pfRecoTauDiscriminationByCharge.clone()
24 pfRecoTauByCharge.PFTauProducer = cms.InputTag('pfLayer0Taus')
25 pfRecoTauByCharge.ApplyOneOrThreeProngCut = cms.bool(True)
26 
27 
28 DiscrLowPtTau = cms.EDProducer(
29  "PFTauDiscriminatorLogicalAndProducer",
30  PFTauProducer = cms.InputTag('pfLayer0Taus'),
31  Prediscriminants = cms.PSet(
32  BooleanOperator = cms.string("and"),
33  isCharge = cms.PSet( Producer = cms.InputTag('pfRecoTauByCharge'),
34  cut = cms.double(0.5)
35  ),
36  lowptrel = cms.PSet( Producer = cms.InputTag('lowptpfTauDiscrByRelTrackIsolation'),
37  cut = cms.double(0.5)
38  ),
39  lowpt = cms.PSet( Producer = cms.InputTag('lowptpfTauDiscrByRelTrackIsolation'),
40  cut = cms.double(0.5)
41  ),
42  ),
43  PassValue = cms.double(1.),
44  FailValue = cms.double(0.)
45  )
46 
47 
48 TauDiscrForLowPt = cms.Sequence(
49  pfRecoTauByCharge+
50  lowptpfTauDiscrByRelTrackIsolation+
51  lowptpfTauDiscrByTrackIsolation+
52  DiscrLowPtTau
53  )