CMS 3D CMS Logo

PATTauDiscriminantCutMultiplexer_cfi.py
Go to the documentation of this file.
1 '''
2 
3 Multiplex a cut on a PATTauDiscriminator using another PATTauDiscriminator as the
4 index.
5 
6 Used by the anti-electron MVA, which needs to choose what cut to apply on the
7 MVA output depending on what the category is.
8 
9 '''
10 
11 import FWCore.ParameterSet.Config as cms
12 
13 patTauDiscriminantCutMultiplexer = cms.EDProducer(
14  "PATTauDiscriminantCutMultiplexer",
15  PATTauProducer = cms.InputTag("fixme"),
16  toMultiplex = cms.InputTag("fixme"),
17  Prediscriminants = cms.PSet(
18  BooleanOperator = cms.string("and"),
19  decayMode = cms.PSet(
20  Producer = cms.InputTag("fixme"),
21  cut = cms.double(0.)
22  )
23  ),
24  key = cms.InputTag("fixme"), # a discriminator
25  loadMVAfromDB = cms.bool(True),
26  inputFileName = cms.FileInPath("RecoTauTag/RecoTau/data/emptyMVAinputFile"), # the filename for MVA if it is not loaded from DB
27  mvaOutput_normalization = cms.string(""), # the special value for not using a string parameter is empty string ""
28  # it's the same value as the atribute of this plugin class is initialized with anyway
29  # and throughout configs this parameter is everywhere set to non-empty value
30 
31  mapping = cms.VPSet(
32  cms.PSet(
33  category = cms.uint32(0),
34  cut = cms.double(0.5),
35  ),
36  cms.PSet(
37  category = cms.uint32(1),
38  cut = cms.double(0.2),
39  ),
40  ),
41  verbosity = cms.int32(0)
42 )