53 std::vector<std::pair<double, const xAOD::IParticle*>> particles;
57 std::sort(particles.begin(), particles.end(), std::greater<>());
58 std::vector<const xAOD::IParticle*> only_particles;
59 only_particles.reserve(particles.size());
60for (
const auto& particle: particles) {
61 only_particles.push_back(particle.second);
63 return only_particles;
std::vector< const xAOD::IParticle * > IParticles
ConstituentsType getType() const override
std::vector< const xAOD::IParticle * > getIParticlesFromVertex(const xAOD::Vertex &vertex) const
std::string getName() const override
getter_utils::CustomSequenceGetter< xAOD::IParticle > m_customSequenceGetter
std::vector< const xAOD::IParticle * > IPV
IParticlesLoader(const ConstituentsInputConfig &)
static IParticleSortVar iparticleSortVar(ConstituentsSortOrder)
std::function< IPV(const Vertex &)> m_associator
IParticleSortVar m_iparticleSortVar
std::function< double(const xAOD::IParticle *, const Vertex &)> IParticleSortVar
std::tuple< std::string, FlavorTagInference::Inputs, std::vector< const xAOD::IParticle * > > getData(const xAOD::Vertex &vertex) const override
Class providing the definition of the 4-vector interface.