To complete the transition from LoKi to ThOr syntax for the SUMCONE functor, cover the general point discussed on the issue #272 (closed).
Currently implemented:
ARG
functor, for retrieving the first or second element to which it is applied on the base of the index valueDETA
, DPHI
and DR2
functors, which evaluate the respective quantities from each particle-particle combination.COMB_MASS
functor, that combined mass of the candidate and the reference particle (see !2755 (closed))RPPVIPCHI2
functor, checks the minimum impact parameter chi2 for candidate particle wrt the primary vertex of the reference particleSHARE_BPV
functor, checks if candidate and reference particle are sharing the same primary vertexWeightedRelTableAlg
, an algorithm that receives as input the range of reference particles and the range of candidates. It is configured through a functor that determines the relations between particles that have to be selected (through a boolean WEIGHT value). The algorithm returns a RelationWeighted2D table.SUMRANGE
functor, which sums a given input functor over a range of particles (from the TO side of the table).SUMCONE
is an instance to MAP_INPUT_TO_ARRAY
with RelationTable = LHCb::RelationWeighted2D<LHCb::Particle,LHCb::Particle, double>
Commented out atm the functor VTX_FIT_CHI2
(check the "good-quality" of the vertex-fit and to cut on its chi2), which throws an exception while trying to bind to the algorithm which is not Condition holder. Need to be investigated further: planning to come back on it later.
TESTS:
TODO:
FYI: @mvesteri, @poluekt, @fpolci, @rmurta, @graven, @johndan, @roneil, @jugarcia