AnodeFace.h
Go to the documentation of this file.
1 #ifndef WIRECELLGEN_ANODEFACE
2 #define WIRECELLGEN_ANODEFACE
3 
5 
6 
7 namespace WireCell {
8  namespace Gen {
9 
10  class AnodeFace : public IAnodeFace {
11  public:
12 
13  AnodeFace(int ident, IWirePlane::vector planes, const BoundingBox& sensvol);
14 
15  /// Return the ident number of this face.
16  virtual int ident() const { return m_ident; }
17 
18  /// Return the number of wire planes in the given side
19  virtual int nplanes() const { return m_planes.size(); }
20 
21  /// Return the wire plane with the given ident or nullptr if unknown.
22  virtual IWirePlane::pointer plane(int ident) const;
23  virtual IWirePlane::vector planes() const { return m_planes; }
24 
25 
26  virtual BoundingBox sensitive() const { return m_bb; }
27 
28  virtual const RayGrid::Coordinates& raygrid() const { return m_coords; }
29 
30 
31  private:
32  int m_ident;
36  };
37  }
38 }
39 
40 #endif
virtual const RayGrid::Coordinates & raygrid() const
Return a RayGrid::Coordinates corresponding to this face.
Definition: AnodeFace.h:28
std::vector< pointer > vector
Vector of shared pointers.
Definition: IComponent.h:36
AnodeFace(int ident, IWirePlane::vector planes, const BoundingBox &sensvol)
Definition: AnodeFace.cxx:61
std::shared_ptr< Interface > pointer
Definition: Interface.h:16
virtual BoundingBox sensitive() const
Definition: AnodeFace.h:26
Definition: Main.h:22
virtual IWirePlane::vector planes() const
Return all wires planes.
Definition: AnodeFace.h:23
RayGrid::Coordinates m_coords
Definition: AnodeFace.h:35
virtual int ident() const
Return the ident number of this face.
Definition: AnodeFace.h:16
virtual int nplanes() const
Return the number of wire planes in the given side.
Definition: AnodeFace.h:19
IWirePlane::vector m_planes
Definition: AnodeFace.h:33
virtual IWirePlane::pointer plane(int ident) const
Return the wire plane with the given ident or nullptr if unknown.
Definition: AnodeFace.cxx:69