CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
PFTauMVAInputDiscriminatorTranslator_cfi Namespace Reference

Classes

class  Dummy
 

Functions

def loadMVAInputsIntoPatTauDiscriminants
 

Variables

tuple produceTancMVAInputDiscriminators
 

Function Documentation

def PFTauMVAInputDiscriminatorTranslator_cfi.loadMVAInputsIntoPatTauDiscriminants (   thePatTauProducer)

Definition at line 73 of file PFTauMVAInputDiscriminatorTranslator_cfi.py.

73 
74 def loadMVAInputsIntoPatTauDiscriminants(thePatTauProducer):
75  return
76  " Add all of the MVA inputs discriminators to the tauID inputs of a patTau Producer "
77  print "Embedding MVA inputs into PAT Tau producer "
78  patTauIDConfig = thePatTauProducer.tauIDSources
79  for tancInputInfo in produceTancMVAInputDiscriminators.discriminants:
80  name = tancInputInfo.name.value()
81  if hasattr(tancInputInfo, "indices"):
82  # multiple input
83  for index in tancInputInfo.indices:
84  collectionName = name + str(index)
85  setattr(patTauIDConfig, "TaNC"+collectionName, cms.InputTag(
86  "produceTancMVAInputDiscriminators", collectionName))
87  else:
88  # single input
89  setattr(patTauIDConfig, "TaNC"+name, cms.InputTag(
90  "produceTancMVAInputDiscriminators", name))

Variable Documentation

tuple PFTauMVAInputDiscriminatorTranslator_cfi.produceTancMVAInputDiscriminators

Definition at line 3 of file PFTauMVAInputDiscriminatorTranslator_cfi.py.