From fcb741120389136fbe670af074b3f2ca8039c1f7 Mon Sep 17 00:00:00 2001
From: Gerhard Raven <gerhard.raven@nikhef.nl>
Date: Mon, 3 Feb 2025 09:09:35 +0100
Subject: [PATCH] fix `OWNPV_NDOF`

---
 Phys/FunTuple/python/FunTuple/functorcollections.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Phys/FunTuple/python/FunTuple/functorcollections.py b/Phys/FunTuple/python/FunTuple/functorcollections.py
index a1357dbad..69f32c50b 100644
--- a/Phys/FunTuple/python/FunTuple/functorcollections.py
+++ b/Phys/FunTuple/python/FunTuple/functorcollections.py
@@ -448,7 +448,7 @@ def ParticlePVInfo() -> FunctorCollection:
         "OWNPV_X": F.OWNPVX,
         "OWNPV_Y": F.OWNPVY,
         "OWNPV_Z": F.OWNPVZ,
-        "OWNPV_NDOF": F.NDOF @ F.OWNPV,
+        "OWNPV_NDOF": F.VALUE_OR(-1) @ F.NDOF @ F.OWNPV,
     }
     return FunctorCollection(pvinfo)
 
-- 
GitLab