LoKi::GenParticles::Mass (GMASS) not working with child selectors
Hello,
Following the production of MC samples in upgrade conditions, an error was spotted related to some DecFiles. In particular, this concerns an error with the GMASS functor, which seems to no longer accept LoKi::GenChild::Selector
arguments in the constructor, as it is needed, for example in 15102215.
Reading the docs in v49r0 and latest I can see that the code for this functor has changed (I can even pinpoint the exact commit), and now this constructor is inherited from LoKi::GenParticles::FourMomentum
, where it is defined. However with a quick python check I obtain this:
> lb-run Gauss/v55r0 ipython -i
In [1]: from LoKiGen.decorators import GMASS, GABSID
In [2]: GMASS ( 'p+' == GABSID, 'K+' == GABSID )
TypeError: none of the 3 overloaded methods succeeded. Full details:
LoKi::GenParticles::Mass::LoKi::GenParticles::Mass() =>
takes at most 0 arguments (2 given)
LoKi::GenParticles::Mass::LoKi::GenParticles::Mass(const LoKi::GenParticles::Mass&) =>
takes at most 1 arguments (2 given)
LoKi::GenParticles::Mass::LoKi::GenParticles::Mass(LoKi::GenParticles::Mass&&) =>
takes at most 1 arguments (2 given)
Whereas in v49r0 (for instance) it does not complain:
> lb-run Gauss/v49r0 ipython -i
In [1]: from LoKiGen.decorators import GMASS, GABSID
In [2]: GMASS ( 'p+' == GABSID, 'K+' == GABSID )
Any ideas on what is going on? Of course I could work around this manually summing the momenta of the daughters, but it is ugly and this functor should be able to do the job.