Skip to content

Commit daab728

Browse files
authored
Merge pull request #1293 from lgray/fix_pfnano
fix: missing momentum class for PFCands
2 parents f672f62 + 909fa16 commit daab728

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/coffea/nanoevents/methods/nanoaod.py

+4
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,10 @@ class PFCand(candidate.PtEtaPhiMCandidate, base.NanoCollection):
842842

843843
_set_repr_name("PFCand")
844844

845+
PFCandArray.ProjectionClass2D = vector.TwoVectorArray # noqa: F821
846+
PFCandArray.ProjectionClass3D = vector.ThreeVectorArray # noqa: F821
847+
PFCandArray.ProjectionClass4D = PFCandArray # noqa: F821
848+
PFCandArray.MomentumClass = vector.LorentzVectorArray # noqa: F821
845849

846850
__all__ = [
847851
"PtEtaPhiMCollection",

0 commit comments

Comments
 (0)