Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:10:45

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include "Acts/Clusterization/Clusterization.hpp"
0012 #include "Acts/Definitions/Algebra.hpp"
0013 
0014 #include <limits>
0015 
0016 namespace Acts::Ccl {
0017 
0018 template <typename Cell>
0019 concept HasRetrievableTimeInfo = requires(Cell cell) {
0020   { getCellTime(cell) } -> std::same_as<double>;
0021 };
0022 
0023 template <Acts::Ccl::HasRetrievableTimeInfo Cell, std::size_t N>
0024 struct TimedConnect : public Acts::Ccl::DefaultConnect<Cell, N> {
0025   double timeTolerance{std::numeric_limits<double>::max()};
0026 
0027   TimedConnect() = default;
0028   TimedConnect(double time);
0029   TimedConnect(double time, bool commonCorner)
0030     requires(N == 2);
0031   ~TimedConnect() override = default;
0032 
0033   ConnectResult operator()(const Cell& ref, const Cell& iter) const override;
0034 };
0035 
0036 }  // namespace Acts::Ccl
0037 
0038 #include "Acts/Clusterization/TimedClusterization.ipp"