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 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 ALCARECOTkAlBeamHalo_cff.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().
def genutils.lastGenCopy | ( | gp | ) |
Definition at line 111 of file genutils.py.
References cosmictrackingParticleSelector_cfi.pdgId.
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 80 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 99 of file genutils.py.
Referenced by gen.GeneratorAnalyzer.GeneratorAnalyzer.makeMCInfo().