File indexing completed on 2026-07-26 08:22:02
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011
0012 #include "traccc/definitions/qualifiers.hpp"
0013 #include "traccc/edm/silicon_cell_collection.hpp"
0014
0015 namespace traccc {
0016 struct [[maybe_unused]] channel0_major_cell_order_relation {
0017 template <typename T1, typename T2>
0018 [[maybe_unused]] TRACCC_HOST_DEVICE bool operator()(
0019 const edm::silicon_cell<T1>& a, const edm::silicon_cell<T2>& b) const {
0020 if (a.module_index() == b.module_index()) {
0021 if (a.channel1() == b.channel1()) {
0022 return a.channel0() <= b.channel0();
0023 } else {
0024 return a.channel1() <= b.channel1();
0025 }
0026 } else {
0027 return true;
0028 }
0029 }
0030 };
0031 }