10 : m_nimpbins_per_wire(nbins)
21 const double regionsize = (maxwirepitch-minwirepitch)/(
nwires-1);
24 const double pmin = minwirepitch - 0.5*regionsize;
25 const double pmax = maxwirepitch + 0.5*regionsize;
40 return std::make_pair(iwire, irelimp);
59 const int delta = impind - wireimpind;
60 return wireimpind - delta;
std::pair< int, int > closest(double pitch) const
Point transform(const Point &pt) const
double center(int ind) const
double distance(const Point &pt, int axis=2) const
int reflect(int wireind, int impind) const
void set(int nbins, double minval, double maxval)
int bin(double val) const
Pimpos(int nwires, double minwirepitch, double maxwirepitch, const Vector &wire=Vector(0, 1, 0), const Vector &pitch=Vector(0, 0, 1), const Point &origin=Point(0, 0, 0), int nimpact_bins_per_wire_region=10)
D3Vector norm() const
Return a normalized vector in the direction of this vector.
Point Vector
An alias for Point.
int wire_impact(int wireind) const
Return the impact position index coincident with the wire index.
T dot(const D3Vector &rhs) const
Return the dot product of this vector and the other.
std::pair< int, int > wire_impacts(int wireind) const
D3Vector cross(const D3Vector &rhs) const
Return the cross product of this vector and the other.
Vector relative(const Point &pt) const
Return the vector from the origin to the given point.
constexpr Point origin()
Returns a origin position with a point of the specified type.
const Vector & axis(int i) const