Public Member Functions | Private Attributes | List of all members
MyWire Class Reference

#include <MyWire.h>

Inheritance diagram for MyWire:
WireCell::IWire WireCell::IData< IWire >

Public Member Functions

 MyWire (WireCell::WirePlaneLayer_t layer, int index, const WireCell::Ray &ray)
 
virtual ~MyWire ()
 
int ident () const
 
WireCell::WirePlaneId planeid () const
 The ID of the plane this wire is in. More...
 
int index () const
 
int channel () const
 
WireCell::Ray ray () const
 Return the ray representing the wire segment. More...
 
int segment () const
 
- Public Member Functions inherited from WireCell::IWire
virtual ~IWire ()
 
virtual WireCell::Point center () const
 Return the center point of the wire. Convenience method. More...
 
- Public Member Functions inherited from WireCell::IData< IWire >
virtual ~IData ()
 

Private Attributes

WireCell::WirePlaneId m_wpid
 
int m_index
 
WireCell::Ray m_ray
 

Additional Inherited Members

- Public Types inherited from WireCell::IData< IWire >
typedef IWire value_type
 
typedef std::shared_ptr< const IWirepointer
 
typedef std::vector< pointervector
 
typedef std::shared_ptr< const vectorshared_vector
 

Detailed Description

Definition at line 7 of file MyWire.h.

Constructor & Destructor Documentation

MyWire::MyWire ( WireCell::WirePlaneLayer_t  layer,
int  index,
const WireCell::Ray ray 
)
inline

Definition at line 13 of file MyWire.h.

14  : m_wpid(layer), m_index(index), m_ray(ray)
15  {}
WireCell::Ray m_ray
Definition: MyWire.h:10
WireCell::WirePlaneId m_wpid
Definition: MyWire.h:8
int index() const
Definition: MyWire.h:25
int m_index
Definition: MyWire.h:9
WireCell::Ray ray() const
Return the ray representing the wire segment.
Definition: MyWire.h:29
virtual MyWire::~MyWire ( )
inlinevirtual

Definition at line 16 of file MyWire.h.

16 {}

Member Function Documentation

int MyWire::channel ( ) const
inlinevirtual

Detector-dependent electronics channel number, negative is illegal. All wires with a common channel number are considered electrically connected.

Implements WireCell::IWire.

Definition at line 27 of file MyWire.h.

27 { return ident(); }
int ident() const
Definition: MyWire.h:18
int MyWire::ident ( ) const
inlinevirtual

Detector-dependent, globally unique ID number. Negative is illegal, not guaranteed consecutive.

Implements WireCell::IWire.

Definition at line 18 of file MyWire.h.

18  {
19  int iplane = 1+m_wpid.index();
20  return iplane*100000 + m_index;
21  }
WireCell::WirePlaneId m_wpid
Definition: MyWire.h:8
int m_index
Definition: MyWire.h:9
int index() const
Layer as index number (0,1 or 2). -1 if unknown.
Definition: WirePlaneId.cxx:34
int MyWire::index ( ) const
inlinevirtual

Consecutive, zero-based index into an ordered sequence of wires in their plane

Implements WireCell::IWire.

Definition at line 25 of file MyWire.h.

25 { return m_index; }
int m_index
Definition: MyWire.h:9
WireCell::WirePlaneId MyWire::planeid ( ) const
inlinevirtual

The ID of the plane this wire is in.

Implements WireCell::IWire.

Definition at line 23 of file MyWire.h.

23 { return m_wpid; }
WireCell::WirePlaneId m_wpid
Definition: MyWire.h:8
WireCell::Ray MyWire::ray ( ) const
inlinevirtual

Return the ray representing the wire segment.

Implements WireCell::IWire.

Definition at line 29 of file MyWire.h.

29 { return m_ray; }
WireCell::Ray m_ray
Definition: MyWire.h:10
int MyWire::segment ( ) const
inlinevirtual

Return the number of wire segments between the channel input and this wire. Wire directly attached to channel input is segment==0.

Implements WireCell::IWire.

Definition at line 31 of file MyWire.h.

31 {return 0;}

Member Data Documentation

int MyWire::m_index
private

Definition at line 9 of file MyWire.h.

WireCell::Ray MyWire::m_ray
private

Definition at line 10 of file MyWire.h.

WireCell::WirePlaneId MyWire::m_wpid
private

Definition at line 8 of file MyWire.h.


The documentation for this class was generated from the following file: