Sign functor, TILT functor, y-z straight-line intersection functors
Adds a functor that returns +1 for positive values and -1 for negative values, using std::copysign
.
Adds functors to calculate the straight line intersection in the y-z plane, from the slopes and closest to beam positions. (TWOBODY_YZ_INTERSECTION_Z
) (TWOBODY_YZ_INTERSECTION_Y
)
Adds functor that evaluates the product of the sign of the slopes (TWOBODY_TILT(str)
,str = "X", "Y"
)
Functors used now by selections in Moore!1873 (merged), but will be used by more selections in future.
The purpose and effect of the functors is detailed in slides 7-17 of this presentation from the joint WP2/3 meeting on 14/2/23.
Edited by Izaac Sanderswood