#include <SimpleChannel.h>
Public Member Functions | |
SimpleChannel (int ident=-1, int index=-1, const IWire::vector &wires=IWire::vector()) | |
virtual | ~SimpleChannel () |
virtual int | ident () const |
virtual int | index () const |
virtual const IWire::vector & | wires () const |
Wire segments ordered in increasing distance from channel input. More... | |
void | add (const IWire::pointer &wire) |
void | set_index (int ind) |
Public Member Functions inherited from WireCell::IChannel | |
virtual | ~IChannel () |
virtual WirePlaneId | planeid () const |
The ID of the plane of wire zero. This is just sugar. More... | |
Public Member Functions inherited from WireCell::IData< IChannel > | |
virtual | ~IData () |
Private Attributes | |
int | m_ident |
int | m_index |
IWire::vector | m_wires |
Additional Inherited Members | |
Public Types inherited from WireCell::IData< IChannel > | |
typedef IChannel | value_type |
typedef std::shared_ptr< const IChannel > | pointer |
typedef std::vector< pointer > | vector |
typedef std::shared_ptr< const vector > | shared_vector |
Definition at line 10 of file SimpleChannel.h.
SimpleChannel::SimpleChannel | ( | int | ident = -1 , |
int | index = -1 , |
||
const IWire::vector & | wires = IWire::vector() |
||
) |
Definition at line 5 of file SimpleChannel.cxx.
|
virtual |
Definition at line 11 of file SimpleChannel.cxx.
void SimpleChannel::add | ( | const IWire::pointer & | wire | ) |
Definition at line 31 of file SimpleChannel.cxx.
|
virtual |
Detector-dependent, globally unique channel ID number. Negative is illegal, not guaranteed consecutive over all given channels. This same number may be called simply "channel" in other contexts.
Implements WireCell::IChannel.
Definition at line 15 of file SimpleChannel.cxx.
|
virtual |
The channel index is the "Wire Attachment Number". The WAN counts along points of attachment of the zero' zero-segment wires for a wire plane. Note, for detectors with wrapped wires this index also wraps. It counts in the same direction as the WIP number of IWire::index but starts at zero even with wrapped wire detectors.
Implements WireCell::IChannel.
Definition at line 19 of file SimpleChannel.cxx.
void SimpleChannel::set_index | ( | int | ind | ) |
Definition at line 36 of file SimpleChannel.cxx.
|
virtual |
Wire segments ordered in increasing distance from channel input.
Implements WireCell::IChannel.
Definition at line 23 of file SimpleChannel.cxx.
|
private |
Definition at line 26 of file SimpleChannel.h.
|
private |
Definition at line 26 of file SimpleChannel.h.
|
private |
Definition at line 27 of file SimpleChannel.h.