Functions | |
def | allDaughters |
def | bosonToX |
def | findStatus1Leptons |
def | isNotFromHadronicShower |
def | isNotHadronicId |
def | isPromptLepton |
def | realGenDaughters |
def | realGenMothers |
def genutils.allDaughters | ( | particle, | |
daughters, | |||
rank | |||
) |
Fills daughters with all the daughters of particle. Recursive function.
Definition at line 19 of file genutils.py.
Referenced by bosonToX().
def genutils.bosonToX | ( | particles, | |
bosonType, | |||
xType | |||
) |
Definition at line 31 of file genutils.py.
References funct.abs(), allDaughters(), and alcazmumu_cfi.filter.
def genutils.findStatus1Leptons | ( | particle | ) |
Returns status 1 e and mu among the particle daughters
Definition at line 4 of file genutils.py.
References funct.abs().
def genutils.isNotFromHadronicShower | ( | l | ) |
Definition at line 65 of file genutils.py.
References funct.abs().
Referenced by gen.GeneratorAnalyzer.GeneratorAnalyzer.makeMCInfo().
def genutils.isPromptLepton | ( | lepton, | |
beforeFSR, | |||
includeMotherless = True , |
|||
includeTauDecays = False |
|||
) |
Definition at line 49 of file genutils.py.
References funct.abs(), and isNotHadronicId().
Referenced by objects.LeptonAnalyzer.LeptonAnalyzer.matchAnyLeptons().
Get the daughters of a particle, going through radiative X -> X' + a decays, either including or excluding the radiation among the daughters e.g. for X -> X' + a, X' -> b c realGenDaughters(X, excludeRadiation=True) = { b, c } realGenDaughters(X, excludeRadiation=False) = { a, b, c }
Definition at line 77 of file genutils.py.
Referenced by gen.GeneratorAnalyzer.GeneratorAnalyzer.makeMCInfo().
def genutils.realGenMothers | ( | gp | ) |
Get the mothers of a particle X going through intermediate X -> X' chains. e.g. if Y -> X, X -> X' realGenMothers(X') = Y
Definition at line 96 of file genutils.py.
Referenced by gen.GeneratorAnalyzer.GeneratorAnalyzer.makeMCInfo().