88 const Vector pitch =
step.second - starting_point;
91 std::vector<GenWire*> these_wires;
94 Point offset = starting_point;
97 if (! wire) {
break; }
98 these_wires.push_back(wire);
99 offset = wire->center() + pitch;
104 const Vector neg_pitch = -1.0 * pitch;
105 offset = these_wires[0]->center() + neg_pitch;
108 if (! wire) {
break; }
109 these_wires.push_back(wire);
110 offset = wire->center() + neg_pitch;
115 std::sort(these_wires.begin(), these_wires.end(),
SortByIndex());
118 for (
size_t ind=0; ind<these_wires.size(); ++ind) {
119 GenWire* pwire = these_wires[ind];
120 pwire->set_index(ind);
121 pwire->set_planeid(wpid);
std::tuple< double, double, const reco::ClusterHit3D * > Point
Definitions used by the VoronoiDiagram algorithm.
General LArSoft Utilities.
BoundingBox bounds(int x, int y, int w, int h)
std::vector< float > Vector
static GenWire * make_wire(int index, const Point &point, const Point &proto, const Ray &bounds)
const GenericPointer< typename T::ValueType > & pointer