diff --git a/src/algorithms/meta/SubDivideFunctors.h b/src/algorithms/meta/SubDivideFunctors.h index 9febc0614..b3c9a885f 100644 --- a/src/algorithms/meta/SubDivideFunctors.h +++ b/src/algorithms/meta/SubDivideFunctors.h @@ -54,7 +54,7 @@ class RangeSplit { class GeometrySplit { public: - GeometrySplit(const std::vector>& ids, std::string readout, std::vector divisions) + GeometrySplit(const std::vector>& ids, const std::string& readout, const std::vector& divisions) : m_ids(ids), m_readout(readout), m_divisions(divisions){}; template @@ -88,8 +88,8 @@ class GeometrySplit { } const std::vector>& m_ids; - std::vector m_divisions; - std::string m_readout; + const std::vector& m_divisions; + const std::string& m_readout; mutable std::shared_ptr is_init = std::make_shared(); mutable dd4hep::DDSegmentation::BitFieldCoder* m_id_dec;