diff --git a/Phys/FunctorCore/include/Functors/Adapters.h b/Phys/FunctorCore/include/Functors/Adapters.h index 48261942cf8fb9c26a99dfb04024965e90be271d..9ef0953ee9762f758bfb025ff8287fc838d5ebc2 100644 --- a/Phys/FunctorCore/include/Functors/Adapters.h +++ b/Phys/FunctorCore/include/Functors/Adapters.h @@ -1,5 +1,5 @@ /*****************************************************************************\ -* (c) Copyright 2019-20 CERN for the benefit of the LHCb Collaboration * +* (c) Copyright 2019-21 CERN for the benefit of the LHCb Collaboration * * * * This software is distributed under the terms of the GNU General Public * * Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". * @@ -13,6 +13,7 @@ #include "Functors/Utilities.h" #include "Relations/Relation1D.h" // @todo Do I need to define this? #include "SelKernel/ParticleCombination.h" +#include "Event/Particle.h" // @todo removeme once PT is applied #include <boost/mp11/algorithm.hpp> @@ -447,7 +448,7 @@ namespace Functors::Adapters { template <typename RelsContainer, typename Particle> auto operator()( RelsContainer const& relations, Particle const& particle ) const { - return relations.relate( particle ).front().to(); + return (relations.relate( particle ).front().to()).pt(); } }; @@ -458,8 +459,9 @@ namespace Functors::Adapters { /* auto const p = detail::DataDepWrapper<Function, ParticleMapper_Rel, RelsContainer>{ std::move( relations_location )}; - return p.pt(); + return p->pt(); */ + /* This compiles */ return detail::DataDepWrapper<Function, ParticleMapper_Rel, RelsContainer>{std::move( relations_location )}; }