SimpleWire.h
Go to the documentation of this file.
1 #ifndef WIRECELLIFACE_SIMPLEWIRE
2 #define WIRECELLIFACE_SIMPLEWIRE
3 
4 #include "WireCellIface/IWire.h"
5 
6 
7 namespace WireCell {
8 
9  /** A wire that simply holds all its data. */
10  class SimpleWire : public WireCell::IWire {
12  int m_ident;
13  int m_index;
14  int m_channel;
15  int m_segment;
17  public:
19  const WireCell::Ray& ray, int segment = 0)
20  : m_wpid(wpid)
21  , m_ident(ident)
22  , m_index(index)
23  , m_channel(channel)
24  , m_segment(segment)
25  , m_ray(ray) { }
26  virtual ~SimpleWire();
27 
28  // this probably could overflow? switch to long int for wire ident?
29  int ident() const { return m_ident; }
30 
31  WireCell::WirePlaneId planeid() const { return m_wpid; }
32 
33  int index() const { return m_index; }
34 
35  int channel() const { return m_channel; }
36 
37  WireCell::Ray ray() const { return m_ray; }
38 
39  int segment() const {return m_segment;}
40  };
41 
42 
43 
44 }
45 
46 #endif
std::pair< Point, Point > Ray
A line segment running from a first (tail) to a second (head) point.
Definition: Point.h:21
WireCell::Ray m_ray
Definition: SimpleWire.h:16
int segment() const
Definition: SimpleWire.h:39
WireCell::WirePlaneId m_wpid
Definition: SimpleWire.h:11
int ident() const
Definition: SimpleWire.h:29
Interface to information about a physical wire segment.
Definition: IWire.h:18
Definition: Main.h:22
SimpleWire(WireCell::WirePlaneId wpid, int ident, int index, int channel, const WireCell::Ray &ray, int segment=0)
Definition: SimpleWire.h:18
WireCell::Ray ray() const
Return the ray representing the wire segment.
Definition: SimpleWire.h:37
int index() const
Definition: SimpleWire.h:33
int channel() const
Definition: SimpleWire.h:35
WireCell::WirePlaneId planeid() const
The ID of the plane this wire is in.
Definition: SimpleWire.h:31