Decay Tree related functors
Follows discussion in #221 (closed).
-
Renaming
FLATTEN
functor intoGET_ALL_BASICS
, to distinguish from the here definedGET_ALL_DESCENDANTS
, which retrieves all the descendants of a given particle. -
Include
GET_GENERATION(x)
functor, with x(int)=0(particle itself), 1(children), 2(grandchildren), which returns all the particles in the decay belonging to the x generation and defineGET_CHILDREN
asGET_GENERATION(1)
andGET_GRANDCHILDREN
asGET_GENERATION(2)
-
Definition of functors
MINTREE
,MAXTREE
,NINTREE
,INTREE
,INGENERATION
,NINGENERATION
using composition
TODO:
-
Fix tests (strange behavior for tree functors)
Needs Moore!1914 (merged)
Edited by Tommaso Fulghesu