IChannel.cxx
Go to the documentation of this file.
2 
3 using namespace WireCell;
4 
6 {
7 }
8 
10 {
11  static const WirePlaneId bogus(kUnknownLayer, -1, -1);
12  const IWire::vector& w = wires();
13  if (w.empty()) { return bogus; }
14  return w.front()->planeid();
15 }
virtual const IWire::vector & wires() const =0
Wire segments ordered in increasing distance from channel input.
std::vector< pointer > vector
Definition: IData.h:21
Definition: Main.h:22
virtual ~IChannel()
Definition: IChannel.cxx:5
virtual WirePlaneId planeid() const
The ID of the plane of wire zero. This is just sugar.
Definition: IChannel.cxx:9