ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimParticle.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SimParticle.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2018 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
11 #include <boost/container/flat_set.hpp>
12 
14 
15 namespace FW {
16 namespace detail {
19  constexpr bool operator()(const ActsFatras::Particle& lhs,
20  const ActsFatras::Particle& rhs) const {
21  return lhs.particleId() < rhs.particleId();
22  }
23  constexpr bool operator()(ActsFatras::Barcode lhs,
24  const ActsFatras::Particle& rhs) const {
25  return lhs < rhs.particleId();
26  }
27  constexpr bool operator()(const ActsFatras::Particle& lhs,
28  ActsFatras::Barcode rhs) const {
29  return lhs.particleId() < rhs;
30  }
31 };
32 } // namespace detail
33 
37  ::boost::container::flat_set<::ActsFatras::Particle,
39 
40 } // end of namespace FW