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 import RecoTauTag.RecoTau.pfRecoTauDiscriminationByIsolationMVA2_cfi as _mod
6 
7 discriminationByIsolationMVA2raw = _mod.pfRecoTauDiscriminationByIsolationMVA2.clone(
8  # tau collection to discriminate
9  PFTauProducer = '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 = True,
16  inputFileName = "RecoTauTag/RecoTau/data/emptyMVAinputFile", # the filename for MVA if it is not loaded from DB
17  mvaName = "tauIdMVAnewDMwLT",
18  mvaOpt = "newDMwLT",
19 
20  # NOTE: tau lifetime reconstruction sequence needs to be run before
21  srcTauTransverseImpactParameters = '',
22 
23  srcBasicTauDiscriminators = 'hpsPFTauBasicDiscriminators',
24  srcChargedIsoPtSumIndex = 0,
25  srcNeutralIsoPtSumIndex = 1,
26  srcPUcorrPtSumIndex = 5,
27 )
28 
29 discriminationByIsolationMVA2 = recoTauDiscriminantCutMultiplexerDefault.clone(
30  PFTauProducer = 'pfTauProducer',
31  Prediscriminants = requireLeadTrack,
32  toMultiplex = 'discriminationByIsolationMVA2raw',
33  loadMVAfromDB = True,
34  mapping = cms.VPSet(
35  cms.PSet(
36  category = cms.uint32(0),
37  cut = cms.string("newDMwLT"),
38  variable = cms.string("pt"),
39  )
40  ),
41  workingPoints = [
42  "Eff80",
43  "Eff70",
44  "Eff60",
45  "Eff50",
46  "Eff40"
47  ]
48 )
49 
50 mvaIsolation2Task = cms.Task(
51  hpsPFTauBasicDiscriminators
52  , discriminationByIsolationMVA2raw
53  , discriminationByIsolationMVA2
54 )
55 mvaIsolation2Seq = cms.Sequence(mvaIsolation2Task)