1 #ifndef WIRECELLIFACE_IWIRE 2 #define WIRECELLIFACE_IWIRE 24 virtual int ident()
const = 0;
31 virtual int index()
const = 0;
36 virtual int channel()
const = 0;
41 virtual int segment()
const = 0;
55 typedef std::pair<IWire::pointer, IWire::pointer>
IWirePair;
60 if (lhs->ident() == rhs->ident()) {
61 return lhs.get() < rhs.get();
63 return lhs->ident() < rhs->ident();
66 typedef std::set<IWire::pointer, IWireCompareIdent>
IWireSet;
72 if (lhs->index() == rhs->index()) {
73 return lhs.get() < rhs.get();
75 return lhs->index() < rhs->index();
83 if (lhs->segment() == rhs->segment()) {
84 return lhs.get() < rhs.get();
86 return lhs->segment() < rhs->segment();
std::pair< Point, Point > Ray
A line segment running from a first (tail) to a second (head) point.
std::shared_ptr< const IWire > pointer
virtual WireCell::Point center() const
Return the center point of the wire. Convenience method.
bool ascending_index(IWire::pointer lhs, IWire::pointer rhs)
std::set< IWire::pointer, IWireCompareSegment > IWireSegmentSet
virtual int ident() const =0
std::set< IWire::pointer, IWireCompareIdent > IWireSet
virtual int channel() const =0
std::set< IWire::pointer, IWireCompareIndex > IWireIndexSet
virtual int index() const =0
virtual WireCell::Ray ray() const =0
Return the ray representing the wire segment.
std::pair< IWire::pointer, IWire::pointer > IWirePair
Some common collections.
bool operator()(const IWire::pointer &lhs, const IWire::pointer &rhs) const
Interface to information about a physical wire segment.
bool operator()(const IWire::pointer &lhs, const IWire::pointer &rhs) const
bool operator()(const IWire::pointer &lhs, const IWire::pointer &rhs) const
virtual WirePlaneId planeid() const =0
The ID of the plane this wire is in.
virtual int segment() const =0