CMS 3D CMS Logo

PFRecoTauDiscriminationByMVAIsolationRun2_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 from RecoTauTag.RecoTau.pfRecoTauDiscriminationByMVAIsolationRun2_cfi import pfRecoTauDiscriminationByMVAIsolationRun2
5 from RecoTauTag.RecoTau.recoTauDiscriminantCutMultiplexerDefault_cfi import recoTauDiscriminantCutMultiplexerDefault
6 from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauBasicDiscriminators
7 
8 discriminationByIsolationMVArun2v1raw = pfRecoTauDiscriminationByMVAIsolationRun2.clone(
9 
10  # tau collection to discriminate
11  PFTauProducer = cms.InputTag('pfTauProducer'),
12 
13  # Require leading pion ensures that:
14  # 1) these is at least one track above threshold (0.5 GeV) in the signal cone
15  # 2) a track OR a pi-zero in the signal cone has pT > 5 GeV
16  Prediscriminants = requireLeadTrack,
17  loadMVAfromDB = cms.bool(True),
18 
19  srcBasicTauDiscriminators = cms.InputTag('hpsPFTauBasicDiscriminators')
20 )
21 
22 discriminationByIsolationMVArun2v1 = recoTauDiscriminantCutMultiplexerDefault.clone(
23  PFTauProducer = cms.InputTag('pfTauProducer'),
24  Prediscriminants = requireLeadTrack,
25  toMultiplex = cms.InputTag('discriminationByIsolationMVArun2v1raw'),
26  loadMVAfromDB = cms.bool(True),
27  mapping = cms.VPSet(
28  cms.PSet(
29  category = cms.uint32(0),
30  cut = cms.string("newDMwLT"),
31  variable = cms.string("pt"),
32  )
33  ),
34  workingPoints = cms.vstring(
35  "Eff80",
36  "Eff70",
37  "Eff60",
38  "Eff50",
39  "Eff40"
40  )
41 )
42 
43 mvaIsolation2TaskRun2 = cms.Task(
44  hpsPFTauBasicDiscriminators
45  , discriminationByIsolationMVArun2v1raw
46  , discriminationByIsolationMVArun2v1
47 )
48 mvaIsolation2SeqRun2 = cms.Sequence(mvaIsolation2TaskRun2)
HPSPFTaus_cff
TauDiscriminatorTools