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 distinct child particles with different PDG id, or last ones in the chain
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
- distinctChildren
- distinctChildrenDeep
Accessor to distinct child particles with different PDG id, or last ones in the chain
- distinctParent
- parent
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