Classes | Functions | Variables
WireSummary.cxx File Reference
#include "WireCellGen/WireSummary.h"
#include "WireCellIface/IWireSelectors.h"
#include <iterator>
#include <map>

Go to the source code of this file.

Classes

struct  WirePlaneCache
 
struct  WireCell::WireSummary::WireSummaryCache
 

Functions

static Ray pitch2 (const IWire::vector &wires)
 

Variables

static IWire::vector dummy_vector
 

Function Documentation

static Ray pitch2 ( const IWire::vector wires)
static

Definition at line 13 of file WireSummary.cxx.

14 {
15  // Use two consecutive wires from the center to determine the pitch.
16  int ind = wires.size()/2;
17  IWire::pointer one = wires[ind];
18  IWire::pointer two = wires[ind+1];
19  const Ray p = ray_pitch(one->ray(), two->ray());
20 
21  // Move the pitch to the first wire
22  IWire::pointer zero = wires[0];
23  const Vector center0 = zero->center();
24  return Ray(center0, center0 + ray_vector(p));
25 }
std::pair< Point, Point > Ray
A line segment running from a first (tail) to a second (head) point.
Definition: Point.h:21
p
Definition: test.py:223
std::vector< float > Vector
Ray ray_pitch(const Ray &ray1, const Ray &ray2)
Definition: Point.cxx:76
Vector ray_vector(const Ray &ray)
Definition: Point.cxx:67
const GenericPointer< typename T::ValueType > & pointer
Definition: pointer.h:1124

Variable Documentation

IWire::vector dummy_vector
static

Definition at line 101 of file WireSummary.cxx.