Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-12 07:51:52

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 #include "Acts/EventData/SeedContainer2.hpp"
0010 
0011 namespace Acts::Experimental {
0012 
0013 void SeedContainer2::reserve(std::size_t size,
0014                              float averageSpacePoints) noexcept {
0015   m_sizes.reserve(size);
0016   m_spacePointOffsets.reserve(size);
0017   m_qualities.reserve(size);
0018   m_vertexZs.reserve(size);
0019   m_spacePoints.reserve(static_cast<std::size_t>(size * averageSpacePoints));
0020 }
0021 
0022 void SeedContainer2::clear() noexcept {
0023   m_sizes.clear();
0024   m_spacePointOffsets.clear();
0025   m_qualities.clear();
0026   m_vertexZs.clear();
0027   m_spacePoints.clear();
0028 }
0029 
0030 }  // namespace Acts::Experimental