From 20cb0b4f4feed097227e60da5dd94ac26eb10388 Mon Sep 17 00:00:00 2001 From: simonge Date: Tue, 20 Aug 2024 22:00:53 +0100 Subject: [PATCH] Remove suggested const flags to see if the CI behaves better --- src/algorithms/meta/SubDivideFunctors.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/algorithms/meta/SubDivideFunctors.h b/src/algorithms/meta/SubDivideFunctors.h index b3c9a885f..0a57ecca4 100644 --- a/src/algorithms/meta/SubDivideFunctors.h +++ b/src/algorithms/meta/SubDivideFunctors.h @@ -13,7 +13,7 @@ namespace eicrecon { template class RangeSplit { public: - RangeSplit(const std::vector>& ranges, bool inside = true) + RangeSplit(std::vector> ranges, bool inside = true) : m_ranges(ranges), m_inside(ranges.size(), inside) {} RangeSplit(const std::vector>& ranges, const std::vector& inside) @@ -43,7 +43,7 @@ class RangeSplit { } private: - const std::vector>& m_ranges; + std::vector> m_ranges; std::vector m_inside; }; @@ -54,7 +54,7 @@ class RangeSplit { class GeometrySplit { public: - GeometrySplit(const std::vector>& ids, const std::string& readout, const std::vector& divisions) + GeometrySplit(std::vector> ids, const std::string& readout, const std::vector& divisions) : m_ids(ids), m_readout(readout), m_divisions(divisions){}; template @@ -87,9 +87,9 @@ class GeometrySplit { } } - const std::vector>& m_ids; - const std::vector& m_divisions; - const std::string& m_readout; + std::vector> m_ids; + std::vector m_divisions; + std::string m_readout; mutable std::shared_ptr is_init = std::make_shared(); mutable dd4hep::DDSegmentation::BitFieldCoder* m_id_dec; @@ -105,7 +105,7 @@ template class ValueSplit { public: - ValueSplit(const std::vector>& ids, bool matching = true) + ValueSplit( std::vector> ids, bool matching = true) : m_ids(ids), m_matching(matching) {}; template @@ -130,7 +130,7 @@ class ValueSplit { } private: - const std::vector>& m_ids; + std::vector> m_ids; bool m_matching = true; };