CMS 3D CMS Logo

PFRecoTauDiscriminationByMVAIsolation2_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoTauTag.RecoTau.recoTauDiscriminantCutMultiplexerDefault_cfi import recoTauDiscriminantCutMultiplexerDefault
4 from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauBasicDiscriminators
5 
6 discriminationByIsolationMVA2raw = cms.EDProducer("PFRecoTauDiscriminationByIsolationMVA2",
7 
8  # tau collection to discriminate
9  PFTauProducer = cms.InputTag('pfTauProducer'),
10 
11  # Require leading pion ensures that:
12  # 1) these is at least one track above threshold (0.5 GeV) in the signal cone
13  # 2) a track OR a pi-zero in the signal cone has pT > 5 GeV
14  Prediscriminants = requireLeadTrack,
15  loadMVAfromDB = cms.bool(True),
16  inputFileName = cms.FileInPath("RecoTauTag/RecoTau/data/emptyMVAinputFile"), # the filename for MVA if it is not loaded from DB
17  mvaName = cms.string("tauIdMVAnewDMwLT"),
18  mvaOpt = cms.string("newDMwLT"),
19 
20  # NOTE: tau lifetime reconstruction sequence needs to be run before
21  srcTauTransverseImpactParameters = cms.InputTag(''),
22 
23  srcBasicTauDiscriminators = cms.InputTag('hpsPFTauBasicDiscriminators'),
24  srcChargedIsoPtSumIndex = cms.int32(0),
25  srcNeutralIsoPtSumIndex = cms.int32(1),
26  srcPUcorrPtSumIndex = cms.int32(5),
27 
28  verbosity = cms.int32(0)
29 )
30 
31 discriminationByIsolationMVA2 = recoTauDiscriminantCutMultiplexerDefault.clone(
32  PFTauProducer = cms.InputTag('pfTauProducer'),
33  Prediscriminants = requireLeadTrack,
34  toMultiplex = cms.InputTag('discriminationByIsolationMVA2raw'),
35  loadMVAfromDB = cms.bool(True),
36  mapping = cms.VPSet(
37  cms.PSet(
38  category = cms.uint32(0),
39  cut = cms.string("newDMwLT"),
40  variable = cms.string("pt"),
41  )
42  ),
43  workingPoints = cms.vstring(
44  "Eff80",
45  "Eff70",
46  "Eff60",
47  "Eff50",
48  "Eff40"
49  )
50 )
51 
52 mvaIsolation2Task = cms.Task(
53  hpsPFTauBasicDiscriminators
54  , discriminationByIsolationMVA2raw
55  , discriminationByIsolationMVA2
56 )
57 mvaIsolation2Seq = cms.Sequence(mvaIsolation2Task)
HPSPFTaus_cff