10 DDsvalues_type::const_iterator sit = sv.begin();
11 DDsvalues_type::const_iterator sed = sv.end();
13 if (target.back() < sv.front()) {
14 target.insert(target.end(), sit, sed);
17 if (sv.back() < target.front()) {
18 target.insert(target.begin(), sit, sed);
22 DDsvalues_type::iterator it =
std::lower_bound(target.begin(), target.end(), sv.front());
24 target.insert(it, sit, sed);
29 target.reserve(target.size() + sv.size());
30 DDsvalues_type::const_iterator ted = target.end();
31 for (; sit != sed; ++sit) {
32 DDsvalues_type::const_iterator it =
find(target.begin(), ted, (*sit).first);
36 target.emplace_back(*sit);
39 std::sort(target.begin(), target.end());
43 DDsvalues_type::const_iterator it = s.begin();
44 for (; it != s.end(); ++it) {
57 std::ostream &operator<<(std::ostream &os, const std::vector<const DDsvalues_type *> &
v) {
58 for (
const auto &
i :
v) {
81 DDsvalues_type::const_iterator it =
find(*p, v);
89 unsigned int DDfetch(
const std::vector<const DDsvalues_type *> &sp,
DDValue &toFetch, std::vector<DDValue> &
result) {
90 unsigned int count = 0;
91 for (
const auto &it : sp) {
93 result.emplace_back(toFetch);
DDsvalues_type::value_type DDsvalues_Content_type
std::ostream & operator<<(std::ostream &out, const ALILine &li)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})