Decay Tree related functors
Follows discussion in #221 (closed).
-
Renaming
FLATTENfunctor 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_CHILDRENasGET_GENERATION(1)andGET_GRANDCHILDRENasGET_GENERATION(2) -
Definition of functors
MINTREE,MAXTREE,NINTREE,INTREE,INGENERATION,NINGENERATIONusing composition
TODO:
-
Fix tests (strange behavior for tree functors)
Needs Moore!1914 (merged)
Edited by Tommaso Fulghesu