IWire.cxx
Go to the documentation of this file.
1 #include "WireCellIface/IWire.h"
2 
3 
5 {
6 }
7 
8 
10 {
11  Ray seg = ray();
12  return 0.5*(seg.first + seg.second);
13 }
14 
15 
17 {
18  if (lhs->planeid() == rhs->planeid()) {
19  return lhs->index() < rhs->index();
20  }
21  return lhs->planeid() < lhs->planeid();
22 }
23 
24 // bool WireCell::WirePlaneIndexCompare ::operator() (Wire lhs, Wire rhs) const
25 // {
26 // return lhs < rhs;
27 // }
28 
29 
30 // bool operator==(WireCell::Wire lhs, WireCell::Wire rhs)
31 // {
32 // return lhs->ident() == rhs->ident();
33 // }
34 
35 // bool operator<(WireCell::Wire lhs, WireCell::Wire rhs)
36 // {
37 // if (lhs->plane() == rhs->plane()) {
38 // return lhs->index() < rhs->index();
39 // }
40 // return lhs->plane() < rhs->plane();
41 // }
42 
43 
44 // std::ostream & operator<<(std::ostream &os, WireCell::Wire wire)
45 // {
46 // os << "<WIRE " << wire->ident() << ">";
47 // }
48 
std::pair< Point, Point > Ray
A line segment running from a first (tail) to a second (head) point.
Definition: Point.h:21
std::shared_ptr< const IWire > pointer
Definition: IData.h:19
virtual WireCell::Point center() const
Return the center point of the wire. Convenience method.
Definition: IWire.cxx:9
bool ascending_index(IWire::pointer lhs, IWire::pointer rhs)
Definition: IWire.cxx:16
virtual WireCell::Ray ray() const =0
Return the ray representing the wire segment.
virtual ~IWire()
Definition: IWire.cxx:4