Functions | |
def | allDaughters (particle, daughters, rank) |
def | bosonToX (particles, bosonType, xType) |
def | findStatus1Leptons (particle) |
def | isNotFromHadronicShower (l) |
def | isNotHadronicId (pdgId, includeSMLeptons=True) |
def | isPromptLepton (lepton, beforeFSR, includeMotherless=True, includeTauDecays=False) |
def | lastGenCopy (gp) |
def | realGenDaughters (gp, excludeRadiation=True) |
def | realGenMothers (gp) |
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 FastTimerService_cff.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 FastTimerService_cff.range.
def genutils.isNotFromHadronicShower | ( | l | ) |
Definition at line 66 of file genutils.py.
References funct.abs(), and FastTimerService_cff.range.
Referenced by gen.GeneratorAnalyzer.GeneratorAnalyzer.makeMCInfo().
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 EgammaValidation_cff.pdgId, and FastTimerService_cff.range.
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 FastTimerService_cff.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 FastTimerService_cff.range.
Referenced by gen.GeneratorAnalyzer.GeneratorAnalyzer.makeMCInfo().