CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TauMVADiscriminator_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import copy
3 
4 #Define the mapping of Decay mode IDs onto the names of trained MVA files Note
5 #that one category can apply to multiple decay modes, a decay mode can not have
6 #multiple categories
7 
8 from RecoTauTag.RecoTau.TauDiscriminatorTools import requireLeadTrack
9 from RecoTauTag.RecoTau.RecoTauHPSTancTauProdcuer_cfi import combinatoricRecoTausDiscriminationByTaNC
10 
11 shrinkingConeLeadTrackFinding = copy.deepcopy(requireLeadTrack)
12 shrinkingConeLeadTrackFinding.leadTrack.Producer = \
13  cms.InputTag("shrinkingConePFTauDiscriminationByLeadingTrackFinding")
14 
15 shrinkingConePFTauDiscriminationByTaNC = combinatoricRecoTausDiscriminationByTaNC.clone(
16  PFTauProducer = cms.InputTag("shrinkingConePFTauProducer"),
17  Prediscriminants = shrinkingConeLeadTrackFinding,
18  discriminantOptions = cms.PSet(),
19  dbLabel = cms.string(""), # Allow multiple record types
20  remapOutput = cms.bool(True),
21  mvas = cms.VPSet(
22  cms.PSet(
23  nCharged = cms.uint32(1),
24  nPiZeros = cms.uint32(0),
25  mvaLabel = cms.string("OneProngNoPiZero"),
26  ),
27  cms.PSet(
28  nCharged = cms.uint32(1),
29  nPiZeros = cms.uint32(1),
30  mvaLabel = cms.string("OneProngOnePiZero"),
31  ),
32  cms.PSet(
33  nCharged = cms.uint32(1),
34  nPiZeros = cms.uint32(2),
35  mvaLabel = cms.string("OneProngTwoPiZero"),
36  ),
37  cms.PSet(
38  nCharged = cms.uint32(3),
39  nPiZeros = cms.uint32(0),
40  mvaLabel = cms.string("ThreeProngNoPiZero"),
41  ),
42  cms.PSet(
43  nCharged = cms.uint32(3),
44  nPiZeros = cms.uint32(1),
45  mvaLabel = cms.string("ThreeProngOnePiZero"),
46  ),
47  ),
48  prefailValue = cms.double(-2.0),
49 )