Functions | |
def | allDaughters |
def | bosonToX |
def | findStatus1Leptons |
def | isNotFromHadronicShower |
def | isNotHadronicId |
def | isPromptLepton |
def | lastGenCopy |
def | realGenDaughters |
def | realGenMothers |
def genutils.allDaughters | ( | particle, | |
daughters, | |||
rank | |||
) |
Fills daughters with all the daughters of particle. Recursive function.
Definition at line 20 of file genutils.py.
References sistrip::SpyUtilities.range().
Referenced by bosonToX().
def genutils.bosonToX | ( | particles, | |
bosonType, | |||
xType | |||
) |
def genutils.findStatus1Leptons | ( | particle | ) |
Returns status 1 e and mu among the particle daughters
Definition at line 5 of file genutils.py.
References funct.abs(), and sistrip::SpyUtilities.range().
def genutils.isNotFromHadronicShower | ( | l | ) |
Definition at line 66 of file genutils.py.
References funct.abs(), and sistrip::SpyUtilities.range().
Referenced by gen.GeneratorAnalyzer.GeneratorAnalyzer.makeMCInfo().
def genutils.isNotHadronicId | ( | pdgId, | |
includeSMLeptons = True |
|||
) |
def genutils.isPromptLepton | ( | lepton, | |
beforeFSR, | |||
includeMotherless = True , |
|||
includeTauDecays = False |
|||
) |
Definition at line 50 of file genutils.py.
References funct.abs(), and isNotHadronicId().
Referenced by objects.LeptonAnalyzer.LeptonAnalyzer.matchAnyLeptons().
def genutils.lastGenCopy | ( | gp | ) |
Definition at line 112 of file genutils.py.
References sistrip::SpyUtilities.range().
def genutils.realGenDaughters | ( | gp, | |
excludeRadiation = True |
|||
) |
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 81 of file genutils.py.
References sistrip::SpyUtilities.range().
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 100 of file genutils.py.
References sistrip::SpyUtilities.range().
Referenced by gen.GeneratorAnalyzer.GeneratorAnalyzer.makeMCInfo().