File indexing completed on 2026-07-26 08:21:58
0001
0002
0003
0004
0005
0006
0007
0008 #pragma once
0009
0010
0011 #include "traccc/definitions/primitives.hpp"
0012 #include "traccc/edm/container.hpp"
0013
0014
0015 #include <cstdint>
0016
0017 namespace traccc {
0018
0019
0020 struct particle {
0021 std::uint64_t particle_id;
0022 int particle_type;
0023 int process;
0024 point3 vertex;
0025 scalar time;
0026 vector3 momentum;
0027 scalar mass;
0028 scalar charge;
0029 };
0030
0031 inline bool operator<(const particle& lhs, const particle& rhs) {
0032 if (lhs.particle_id < rhs.particle_id) {
0033 return true;
0034 }
0035 return false;
0036 }
0037
0038
0039 using particle_collection_types = collection_types<particle>;
0040
0041 using particle_container_types = container_types<particle, unsigned int>;
0042
0043 }