Public Member Functions | Private Attributes | List of all members
WireCell::GenWire Class Reference
Inheritance diagram for WireCell::GenWire:
WireCell::IWire WireCell::IData< IWire >

Public Member Functions

 GenWire (WirePlaneId wpid, int index, const Ray &ray)
 
virtual ~GenWire ()
 
int ident () const
 
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
 fixme: supply More...
 
int face () const
 
int apa () const
 
void set_index (int ind)
 
void set_planeid (WirePlaneId wpid)
 
- 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

WirePlaneId m_wpid
 
int m_index
 
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 18 of file WireGenerator.cxx.

Constructor & Destructor Documentation

WireCell::GenWire::GenWire ( WirePlaneId  wpid,
int  index,
const Ray ray 
)
inline

Definition at line 24 of file WireGenerator.cxx.

25  : m_wpid(wpid), m_index(index), m_ray(ray)
26  {
27  }
WireCell::Ray ray() const
Return the ray representing the wire segment.
int index() const
WirePlaneId m_wpid
virtual WireCell::GenWire::~GenWire ( )
inlinevirtual

Definition at line 28 of file WireGenerator.cxx.

29  {
30  }

Member Function Documentation

int WireCell::GenWire::apa ( ) const
inline

Definition at line 49 of file WireGenerator.cxx.

49 {return 0;}
int WireCell::GenWire::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 42 of file WireGenerator.cxx.

42 { return ident(); }
int ident() const
int WireCell::GenWire::face ( ) const
inline

Definition at line 48 of file WireGenerator.cxx.

48 {return 0;}
int WireCell::GenWire::ident ( ) const
inlinevirtual

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

Implements WireCell::IWire.

Definition at line 32 of file WireGenerator.cxx.

32  {
33  int iplane = m_wpid.index();
34  ++iplane;
35  return iplane*100000 + m_index;
36  }
WirePlaneId m_wpid
int index() const
Layer as index number (0,1 or 2). -1 if unknown.
Definition: WirePlaneId.cxx:34
int WireCell::GenWire::index ( ) const
inlinevirtual

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

Implements WireCell::IWire.

Definition at line 40 of file WireGenerator.cxx.

40 { return m_index; }
WirePlaneId WireCell::GenWire::planeid ( ) const
inlinevirtual

The ID of the plane this wire is in.

Implements WireCell::IWire.

Definition at line 38 of file WireGenerator.cxx.

38 { return m_wpid; }
WirePlaneId m_wpid
WireCell::Ray WireCell::GenWire::ray ( ) const
inlinevirtual

Return the ray representing the wire segment.

Implements WireCell::IWire.

Definition at line 44 of file WireGenerator.cxx.

44 { return m_ray; }
int WireCell::GenWire::segment ( ) const
inlinevirtual

fixme: supply

Implements WireCell::IWire.

Definition at line 47 of file WireGenerator.cxx.

47 {return 0;}
void WireCell::GenWire::set_index ( int  ind)
inline

Definition at line 51 of file WireGenerator.cxx.

51 { m_index = ind; }
void WireCell::GenWire::set_planeid ( WirePlaneId  wpid)
inline

Definition at line 52 of file WireGenerator.cxx.

52 { m_wpid = wpid; }
WirePlaneId m_wpid

Member Data Documentation

int WireCell::GenWire::m_index
private

Definition at line 20 of file WireGenerator.cxx.

Ray WireCell::GenWire::m_ray
private

Definition at line 21 of file WireGenerator.cxx.

WirePlaneId WireCell::GenWire::m_wpid
private

Definition at line 19 of file WireGenerator.cxx.


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