Skip to content
Snippets Groups Projects
Commit fb046276 authored by Christopher Rob Jones's avatar Christopher Rob Jones
Browse files

Merge branch 'fix-ownpv_ndof' into 'master'

fix `OWNPV_NDOF` and update for Rec!4079

See merge request !1228
parents 5312e204 b2986a9a
No related branches found
No related tags found
1 merge request!1228fix `OWNPV_NDOF` and update for Rec!4079
Pipeline #10861054 passed
Functors::chain( ::Functors::Common::Rho_Coordinate{}, ::Functors::Track::ThreeMomentum{} )
Functors::chain( ::Functors::Common::Rho_Coordinate, ::Functors::Track::ThreeMomentum )
( RHO_COORDINATE @ THREEMOMENTUM )
ApplicationMgr SUCCESS
====================================================================================================================================
......
......@@ -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)
......
......@@ -74,7 +74,7 @@ def test_repr_loki():
def test_str(simple_fc):
_str = """ PT: ('Functors::chain( ::Functors::Common::Rho_Coordinate{}, ::Functors::Track::ThreeMomentum{} )', '( RHO_COORDINATE @ THREEMOMENTUM )')
_str = """ PT: ('Functors::chain( ::Functors::Common::Rho_Coordinate, ::Functors::Track::ThreeMomentum )', '( RHO_COORDINATE @ THREEMOMENTUM )')
X: X
Y: Y"""
assert _str in str(simple_fc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment