ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
13
#include "
ActsFatras/EventData/Particle.hpp
"
14
15
namespace
FW {
16
namespace
detail {
17
struct
CompareParticleId
{
18
using
is_transparent
=
void
;
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
34
using
SimParticle
=
::ActsFatras::Particle
;
36
using
SimParticleContainer
=
37
::boost::container::flat_set<
::ActsFatras::Particle
,
38
detail::CompareParticleId
>;
39
40
}
// end of namespace FW
acts
blob
master
Examples
Framework
include
ACTFW
EventData
SimParticle.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:23
using
1.8.2 with
ECCE GitHub integration