Public Member Functions | |
def | __init__ (self) |
def | __str__ (self) |
def | genDecayModeFromJetInt (self, c) |
def | genDecayModeInt (self, daughters) |
def | intToName (self, anInt) |
def | nameToInt (self, aName) |
def | translateGenModeToInt (self, dm) |
Static Public Member Functions | |
def | genDecayMode (daughters) |
def | genDecayModeFromGenJet (c) |
Public Attributes | |
decayModeNames | |
decayModes | |
Private Member Functions | |
def | _decayModes (self) |
Definition at line 2 of file TauDecayModes.py.
def TauDecayModes.TauDecayModes.__init__ | ( | self | ) |
Definition at line 4 of file TauDecayModes.py.
References TauDecayModes.TauDecayModes._decayModes().
def TauDecayModes.TauDecayModes.__str__ | ( | self | ) |
Definition at line 42 of file TauDecayModes.py.
References TauDecayModes.TauDecayModes.decayModes, and str.
|
private |
Builds the internal dictionaries from the enum defined in http://cmslxr.fnal.gov/lxr/source/DataFormats/TauReco/interface/PFTau.h
Definition at line 7 of file TauDecayModes.py.
Referenced by TauDecayModes.TauDecayModes.__init__().
|
static |
Returns the generated tau decay mode based on a passed list of all final daughters before further decay (as contained in miniAOD).
Definition at line 80 of file TauDecayModes.py.
References funct.abs().
Referenced by TauDecayModes.TauDecayModes.genDecayModeInt().
|
static |
Returns generated tau decay mode. Needs to be called on genJet as stored in pat::Tau, if available. Translated from PhysicsTools/JetMCUtils/interface/JetMCTag.h, which is not available in FWlite.
Definition at line 67 of file TauDecayModes.py.
Referenced by TauDecayModes.TauDecayModes.genDecayModeFromJetInt().
def TauDecayModes.TauDecayModes.genDecayModeFromJetInt | ( | self, | |
c | |||
) |
Definition at line 49 of file TauDecayModes.py.
References TauDecayModes.TauDecayModes.genDecayModeFromGenJet(), and TauDecayModes.TauDecayModes.translateGenModeToInt().
def TauDecayModes.TauDecayModes.genDecayModeInt | ( | self, | |
daughters | |||
) |
Definition at line 45 of file TauDecayModes.py.
References TauDecayModes.TauDecayModes.genDecayMode(), and TauDecayModes.TauDecayModes.translateGenModeToInt().
def TauDecayModes.TauDecayModes.intToName | ( | self, | |
anInt | |||
) |
Returns the decay mode name corresponding to an int.
Definition at line 34 of file TauDecayModes.py.
References TauDecayModes.TauDecayModes.decayModes.
def TauDecayModes.TauDecayModes.nameToInt | ( | self, | |
aName | |||
) |
Returns the decay mode int corresponding to a name.
Definition at line 38 of file TauDecayModes.py.
References TauDecayModes.TauDecayModes.decayModeNames.
Referenced by TauDecayModes.TauDecayModes.translateGenModeToInt().
def TauDecayModes.TauDecayModes.translateGenModeToInt | ( | self, | |
dm | |||
) |
Definition at line 53 of file TauDecayModes.py.
References TauDecayModes.TauDecayModes.decayModeNames, and TauDecayModes.TauDecayModes.nameToInt().
Referenced by TauDecayModes.TauDecayModes.genDecayModeFromJetInt(), and TauDecayModes.TauDecayModes.genDecayModeInt().
TauDecayModes.TauDecayModes.decayModeNames |
Definition at line 31 of file TauDecayModes.py.
Referenced by TauDecayModes.TauDecayModes.nameToInt(), and TauDecayModes.TauDecayModes.translateGenModeToInt().
TauDecayModes.TauDecayModes.decayModes |
Definition at line 30 of file TauDecayModes.py.
Referenced by TauDecayModes.TauDecayModes.__str__(), and TauDecayModes.TauDecayModes.intToName().