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.
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 
10 shrinkingConeLeadTrackFinding = copy.deepcopy(requireLeadTrack)
11 shrinkingConeLeadTrackFinding.leadTrack.Producer = \
12  cms.InputTag("shrinkingConePFTauDiscriminationByLeadingTrackFinding")
13 
14 shrinkingConePFTauDiscriminationByTaNC = cms.EDProducer(
15  "RecoTauMVADiscriminator",
16  PFTauProducer = cms.InputTag("shrinkingConePFTauProducer"),
17  Prediscriminants = shrinkingConeLeadTrackFinding,
18  dbLabel = cms.string(""), # Allow multiple record types
19  remapOutput = cms.bool(True),
20  mvas = cms.VPSet(
21  cms.PSet(
22  nCharged = cms.uint32(1),
23  nPiZeros = cms.uint32(0),
24  mvaLabel = cms.string("OneProngNoPiZero"),
25  ),
26  cms.PSet(
27  nCharged = cms.uint32(1),
28  nPiZeros = cms.uint32(1),
29  mvaLabel = cms.string("OneProngOnePiZero"),
30  ),
31  cms.PSet(
32  nCharged = cms.uint32(1),
33  nPiZeros = cms.uint32(2),
34  mvaLabel = cms.string("OneProngTwoPiZero"),
35  ),
36  cms.PSet(
37  nCharged = cms.uint32(3),
38  nPiZeros = cms.uint32(0),
39  mvaLabel = cms.string("ThreeProngNoPiZero"),
40  ),
41  cms.PSet(
42  nCharged = cms.uint32(3),
43  nPiZeros = cms.uint32(1),
44  mvaLabel = cms.string("ThreeProngOnePiZero"),
45  ),
46  ),
47  prefailValue = cms.double(-2.0),
48 )