File indexing completed on 2025-07-11 08:04:29
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "ActsFatras/Digitization/Segmentizer.hpp"
0012
0013 #include <numeric>
0014 #include <optional>
0015 #include <vector>
0016
0017 namespace ActsExamples {
0018
0019
0020 struct Cluster {
0021 using Cell = ActsFatras::Segmentizer::ChannelSegment;
0022 std::size_t sizeLoc0 = 0;
0023 std::size_t sizeLoc1 = 0;
0024 std::vector<Cell> channels;
0025
0026
0027 Acts::Vector3 globalPosition = Acts::Vector3::Zero();
0028
0029 double sumActivations() const {
0030 return std::accumulate(
0031 channels.begin(), channels.end(), 0.0,
0032 [](double s, const Cluster::Cell& c) { return s + c.activation; });
0033 }
0034 };
0035
0036
0037 using ClusterContainer = std::vector<Cluster>;
0038
0039 }