GenParticle
- class coffea.nanoevents.methods.nanoaod.GenParticle[source]
Bases:
PtEtaPhiMLorentzVector
,NanoCollection
NanoAOD generator-level particle object, including parent and child self-references
Parent and child self-references are constructed from the
genPartIdxMother
column, where for each entry, the mother entry index is recorded, or -1 if no mother exists.Attributes Summary
bit-packed statusFlags interpretations.
Accessor to child particles.
Accessor to distinct (different PDG id) child particles
Accessor to distinct child particles with different PDG id, or last ones in the chain
Accessor to distinct (different PDG id) parent particle
Accessor to the parent particle
Methods Summary
hasFlags
(*flags)Check if one or more status flags are set
Attributes Documentation
- FLAGS = ['isPrompt', 'isDecayedLeptonHadron', 'isTauDecayProduct', 'isPromptTauDecayProduct', 'isDirectTauDecayProduct', 'isDirectPromptTauDecayProduct', 'isDirectHadronDecayProduct', 'isHardProcess', 'fromHardProcess', 'isHardProcessTauDecayProduct', 'isDirectHardProcessTauDecayProduct', 'fromHardProcessBeforeFSR', 'isFirstCopy', 'isLastCopy', 'isLastCopyBeforeFSR']
bit-packed statusFlags interpretations. Use
GenParticle.hasFlags
to query
- children
Accessor to child particles.
- distinctChildren
Accessor to distinct (different PDG id) child particles
- distinctChildrenDeep
Accessor to distinct child particles with different PDG id, or last ones in the chain
- distinctParent
Accessor to distinct (different PDG id) parent particle
- parent
Accessor to the parent particle
Methods Documentation
- hasFlags(*flags)[source]
Check if one or more status flags are set
- Parameters:
flags (str or list) – A list of flags that are required to be set true. If the first argument is a list, it is expanded and subsequent arguments ignored. Possible flags are enumerated in the
FLAGS
attribute
Returns a boolean array