CMS 3D CMS Logo

TauMVAConfigurations_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 """
4  TauMVAConfigurations_cfi.py
5  Author: Evan K. Friis, UC Davis (friis@physics.ucdavis.edu)
6 
7  Define names, locations, and decay mode mappings of different MVA configurations
8 
9  At the bottom of this file the collections of individual neural nets are defined (eg TaNC).
10  These collections are the inputs to the actual discriminator
11 
12 Example:
13 
14  OneProngs = cms.PSet( # name
15  decayModeIndices = cms.vint32(0, 1, 2, 3, 4), # Decay modes this MVA applies to. In this case, decay modes with 1 track and 0, 1, 2, 3, 4 pi zeros.
16  # Please see DataFormats/TauReco/interface/PFTauDecayMode.h
17  # for the definition of the decay mode indexing system. [DecayMode# = (#ChargedPions-1) * 5 + #PiZeros]
18  computerName = cms.string('OneProngs') # Identifier string. Will be used to store the trainined MVA data in the database
19  # When training, the corresponding training xml file must be in RecoTauTag/TauTagTools/xml/[computerName].xml (i.e. OneProngs.xml)
20  applyIsolation = cms.bool(False), # Determines if isolation criteria is applied (for both training and final discrimination)
21 
22  cut = cms.double(-10.) # Serves as a place holder for when the user wishes to specify the cuts they wish to use
23  )
24 
25 """
26 
27 OneProngNoPiZero = cms.PSet(
28  decayModeIndices = cms.vint32(0),
29  computerName = cms.string('OneProngNoPiZero'),
30  applyIsolation = cms.bool(False),
31  cut = cms.double(-10.)
32  )
33 
34 OneProngOnePiZero = cms.PSet(
35  decayModeIndices = cms.vint32(1),
36  computerName = cms.string('OneProngOnePiZero'),
37  applyIsolation = cms.bool(False),
38  cut = cms.double(-10.)
39  )
40 
41 OneProngTwoPiZero = cms.PSet(
42  decayModeIndices = cms.vint32(2),
43  computerName = cms.string('OneProngTwoPiZero'),
44  applyIsolation = cms.bool(False),
45  cut = cms.double(-10.)
46  )
47 
48 ThreeProngNoPiZero = cms.PSet(
49  decayModeIndices = cms.vint32(10),
50  computerName = cms.string('ThreeProngNoPiZero'),
51  applyIsolation = cms.bool(False),
52  cut = cms.double(-10.)
53  )
54 
55 ThreeProngOnePiZero = cms.PSet(
56  decayModeIndices = cms.vint32(11),
57  computerName = cms.string('ThreeProngOnePiZero'),
58  applyIsolation = cms.bool(False),
59  cut = cms.double(-10.)
60  )
61 
62 SingleNet = cms.PSet(
63  decayModeIndices = cms.vint32(0, 1, 2, 10, 11),
64  computerName = cms.string('SingleNet'),
65  applyIsolation = cms.bool(False),
66  cut = cms.double(-10.)
67  )
68 
69 #ISOLATED versions
70 
71 OneProngNoPiZeroIso = cms.PSet(
72  decayModeIndices = cms.vint32(0),
73  computerName = cms.string('OneProngNoPiZeroIso'),
74  applyIsolation = cms.bool(True),
75  cut = cms.double(-10.)
76  )
77 
78 OneProngOnePiZeroIso = cms.PSet(
79  decayModeIndices = cms.vint32(1),
80  computerName = cms.string('OneProngOnePiZeroIso'),
81  applyIsolation = cms.bool(True),
82  cut = cms.double(-10.)
83  )
84 
85 OneProngTwoPiZeroIso = cms.PSet(
86  decayModeIndices = cms.vint32(2),
87  computerName = cms.string('OneProngTwoPiZeroIso'),
88  applyIsolation = cms.bool(True),
89  cut = cms.double(-10.)
90  )
91 
92 ThreeProngNoPiZeroIso = cms.PSet(
93  decayModeIndices = cms.vint32(10),
94  computerName = cms.string('ThreeProngNoPiZeroIso'),
95  applyIsolation = cms.bool(True),
96  cut = cms.double(-10.)
97  )
98 
99 ThreeProngOnePiZeroIso = cms.PSet(
100  decayModeIndices = cms.vint32(11),
101  computerName = cms.string('ThreeProngOnePiZeroIso'),
102  applyIsolation = cms.bool(True),
103  cut = cms.double(-10.)
104  )
105 
106 SingleNetIso = cms.PSet(
107  decayModeIndices = cms.vint32(0, 1, 2, 10, 11),
108  computerName = cms.string('SingleNetIso'),
109  applyIsolation = cms.bool(True),
110  cut = cms.double(-10.)
111  )
112 
113 #Define collections of Neural nets
114 # Define vectors of the DecayMode->MVA implementaions associations you want to use
115 # Note: any decay mode not associated to an MVA will be marked as failing the MVA!
116 TaNC = cms.VPSet(
117  OneProngNoPiZero,
118  OneProngOnePiZero,
119  OneProngTwoPiZero,
120  ThreeProngNoPiZero,
121  ThreeProngOnePiZero
122  )
123 
124 MultiNetIso = cms.VPSet(
125  OneProngNoPiZeroIso,
126  OneProngOnePiZeroIso,
127  OneProngTwoPiZeroIso,
128  ThreeProngNoPiZeroIso,
129  ThreeProngOnePiZeroIso
130  )
131 
132 SingleNetBasedTauID = cms.VPSet(
133  SingleNet
134 )