SimpleChannel.h
Go to the documentation of this file.
1 // This implements an IChannel data interface.
2 
3 #ifndef WIRECELL_IFACE_SIMPLECHANNEL
4 #define WIRECELL_IFACE_SIMPLECHANNEL
5 
7 
8 namespace WireCell {
9 
10  class SimpleChannel : public IChannel {
11  public:
12  SimpleChannel(int ident=-1, int index=-1, const IWire::vector& wires = IWire::vector());
13  virtual ~SimpleChannel();
14 
15  // IChannel interface
16  virtual int ident() const;
17  virtual int index() const;
18  virtual const IWire::vector& wires() const;
19 
20 
21  // Personal interface for creator.
22  void add(const IWire::pointer& wire);
23  void set_index(int ind);
24 
25  private:
28 
29  };
30 
31 }
32 
33 #endif
std::shared_ptr< const IWire > pointer
Definition: IData.h:19
void add(const IWire::pointer &wire)
virtual const IWire::vector & wires() const
Wire segments ordered in increasing distance from channel input.
std::vector< pointer > vector
Definition: IData.h:21
virtual int index() const
SimpleChannel(int ident=-1, int index=-1, const IWire::vector &wires=IWire::vector())
Definition: Main.h:22
virtual int ident() const