1 #ifndef WIRECELLUTIL_PIMPOS 2 #define WIRECELLUTIL_PIMPOS 72 Pimpos(
int nwires,
double minwirepitch,
double maxwirepitch,
76 int nimpact_bins_per_wire_region=10);
120 std::pair<int, int>
closest(
double pitch)
const;
134 int reflect(
int wireind,
int impind)
const;
std::pair< int, int > closest(double pitch) const
Point transform(const Point &pt) const
D3Vector< double > Point
A 3D Cartesian point in double precision.
const Point & origin() const
Return given 3-point origin for plane pitch.
const Binning & region_binning() const
double distance(const Point &pt, int axis=2) const
int reflect(int wireind, int impind) const
const Binning & impact_binning() 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)
int nimpbins_per_wire() const
Trivial accessor.
Point Vector
An alias for Point.
int wire_impact(int wireind) const
Return the impact position index coincident with the wire index.
std::pair< int, int > wire_impacts(int wireind) const
Vector relative(const Point &pt) const
Return the vector from the origin to the given point.
const Vector & axis(int i) const