CMS 3D CMS Logo

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