61void Dnn4piCylinder::RemoveAndAddPoints(
const vector<int> & indices_to_remove,
62 const vector<EtaPhi> & points_to_add,
63 vector<int> & indices_added,
64 vector<int> & indices_of_updated_neighbours) {
66 vector<int> indices1, indices2;
68 _DNN1->RemoveAndAddPoints(indices_to_remove,points_to_add,
69 indices_added,indices1);
72 vector<EtaPhi> remapped_points(points_to_add.size());
73 for (
size_t i = 0; i < points_to_add.size(); i++) {
74 remapped_points[i] = _remap_phi(points_to_add[i]);
76 _DNN2->RemoveAndAddPoints(indices_to_remove, remapped_points,
77 indices_added,indices2);
83 for (i=0; i < indices1.size(); i++) {index_set.insert(indices1[i]);}
84 for (i=0; i < indices2.size(); i++) {index_set.insert(indices2[i]);}
86 indices_of_updated_neighbours.clear();
87 for (set<int>::iterator iter = index_set.begin();
88 iter != index_set.end(); iter++) {
89 indices_of_updated_neighbours.push_back(*iter);