Skip to content

Commit

Permalink
Remove suggested const flags to see if the CI behaves better
Browse files Browse the repository at this point in the history
  • Loading branch information
simonge authored and wdconinc committed Aug 28, 2024
1 parent 6b3010e commit 9786e24
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/algorithms/meta/SubDivideFunctors.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace eicrecon {
template <auto MemberFunctionPtr>
class RangeSplit {
public:
RangeSplit(const std::vector<std::pair<double, double>>& ranges, bool inside = true)
RangeSplit(std::vector<std::pair<double, double>> ranges, bool inside = true)
: m_ranges(ranges), m_inside(ranges.size(), inside) {}

RangeSplit(const std::vector<std::pair<double, double>>& ranges, const std::vector<bool>& inside)
Expand Down Expand Up @@ -43,7 +43,7 @@ class RangeSplit {
}

private:
const std::vector<std::pair<double,double>>& m_ranges;
std::vector<std::pair<double,double>> m_ranges;
std::vector<bool> m_inside;

};
Expand All @@ -54,7 +54,7 @@ class RangeSplit {
class GeometrySplit {
public:

GeometrySplit(const std::vector<std::vector<long int>>& ids, const std::string& readout, const std::vector<std::string>& divisions)
GeometrySplit(std::vector<std::vector<long int>> ids, const std::string& readout, const std::vector<std::string>& divisions)
: m_ids(ids), m_readout(readout), m_divisions(divisions){};

template <typename T>
Expand Down Expand Up @@ -87,9 +87,9 @@ class GeometrySplit {
}
}

const std::vector<std::vector<long int>>& m_ids;
const std::vector<std::string>& m_divisions;
const std::string& m_readout;
std::vector<std::vector<long int>> m_ids;
std::vector<std::string> m_divisions;
std::string m_readout;

mutable std::shared_ptr<std::once_flag> is_init = std::make_shared<std::once_flag>();
mutable dd4hep::DDSegmentation::BitFieldCoder* m_id_dec;
Expand All @@ -105,7 +105,7 @@ template <auto... MemberFunctionPtrs>
class ValueSplit {
public:

ValueSplit(const std::vector<std::vector<int>>& ids, bool matching = true)
ValueSplit( std::vector<std::vector<int>> ids, bool matching = true)
: m_ids(ids), m_matching(matching) {};

template <typename T>
Expand All @@ -130,7 +130,7 @@ class ValueSplit {
}

private:
const std::vector<std::vector<int>>& m_ids;
std::vector<std::vector<int>> m_ids;
bool m_matching = true;

};
Expand Down

0 comments on commit 9786e24

Please sign in to comment.