Classes | |
class | Dummy |
Functions | |
def | loadMVAInputsIntoPatTauDiscriminants |
Variables | |
tuple | produceTancMVAInputDiscriminators |
def PFTauMVAInputDiscriminatorTranslator_cfi::loadMVAInputsIntoPatTauDiscriminants | ( | thePatTauProducer | ) |
Definition at line 73 of file PFTauMVAInputDiscriminatorTranslator_cfi.py.
00074 : 00075 return 00076 " Add all of the MVA inputs discriminators to the tauID inputs of a patTau Producer " 00077 print "Embedding MVA inputs into PAT Tau producer " 00078 patTauIDConfig = thePatTauProducer.tauIDSources 00079 for tancInputInfo in produceTancMVAInputDiscriminators.discriminants: 00080 name = tancInputInfo.name.value() 00081 if hasattr(tancInputInfo, "indices"): 00082 # multiple input 00083 for index in tancInputInfo.indices: 00084 collectionName = name + str(index) 00085 setattr(patTauIDConfig, "TaNC"+collectionName, cms.InputTag( 00086 "produceTancMVAInputDiscriminators", collectionName)) 00087 else: 00088 # single input 00089 setattr(patTauIDConfig, "TaNC"+name, cms.InputTag( 00090 "produceTancMVAInputDiscriminators", name))
Definition at line 3 of file PFTauMVAInputDiscriminatorTranslator_cfi.py.