Public Member Functions | Private Attributes | List of all members
WireCell::Gen::AnodeFace Class Reference

#include <AnodeFace.h>

Inheritance diagram for WireCell::Gen::AnodeFace:
WireCell::IAnodeFace WireCell::IComponent< IAnodeFace > WireCell::Interface

Public Member Functions

 AnodeFace (int ident, IWirePlane::vector planes, const BoundingBox &sensvol)
 
virtual int ident () const
 Return the ident number of this face. More...
 
virtual int nplanes () const
 Return the number of wire planes in the given side. More...
 
virtual IWirePlane::pointer plane (int ident) const
 Return the wire plane with the given ident or nullptr if unknown. More...
 
virtual IWirePlane::vector planes () const
 Return all wires planes. More...
 
virtual BoundingBox sensitive () const
 
virtual const RayGrid::Coordinatesraygrid () const
 Return a RayGrid::Coordinates corresponding to this face. More...
 
- Public Member Functions inherited from WireCell::IAnodeFace
virtual ~IAnodeFace ()
 
- Public Member Functions inherited from WireCell::IComponent< IAnodeFace >
virtual ~IComponent ()
 
- Public Member Functions inherited from WireCell::Interface
virtual ~Interface ()
 

Private Attributes

int m_ident
 
IWirePlane::vector m_planes
 
BoundingBox m_bb
 
RayGrid::Coordinates m_coords
 

Additional Inherited Members

- Public Types inherited from WireCell::IComponent< IAnodeFace >
typedef std::shared_ptr< IAnodeFacepointer
 Access subclass facet by pointer. More...
 
typedef std::vector< pointervector
 Vector of shared pointers. More...
 
- Public Types inherited from WireCell::Interface
typedef std::shared_ptr< Interfacepointer
 

Detailed Description

Definition at line 10 of file AnodeFace.h.

Constructor & Destructor Documentation

AnodeFace::AnodeFace ( int  ident,
IWirePlane::vector  planes,
const BoundingBox sensvol 
)

Definition at line 61 of file AnodeFace.cxx.

62  : m_ident(ident)
63  , m_planes(planes)
64  , m_bb(bb)
66 {
67 }
static ray_pair_vector_t get_raypairs(const BoundingBox &bb, const IWirePlane::vector &planes)
Definition: AnodeFace.cxx:8
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
IWirePlane::vector m_planes
Definition: AnodeFace.h:33

Member Function Documentation

virtual int WireCell::Gen::AnodeFace::ident ( ) const
inlinevirtual

Return the ident number of this face.

Implements WireCell::IAnodeFace.

Definition at line 16 of file AnodeFace.h.

16 { return m_ident; }
virtual int WireCell::Gen::AnodeFace::nplanes ( ) const
inlinevirtual

Return the number of wire planes in the given side.

Implements WireCell::IAnodeFace.

Definition at line 19 of file AnodeFace.h.

19 { return m_planes.size(); }
IWirePlane::vector m_planes
Definition: AnodeFace.h:33
IWirePlane::pointer AnodeFace::plane ( int  ident) const
virtual

Return the wire plane with the given ident or nullptr if unknown.

Implements WireCell::IAnodeFace.

Definition at line 69 of file AnodeFace.cxx.

70 {
71  for (auto ptr : m_planes) {
72  if (ptr->ident() == ident) {
73  return ptr;
74  }
75  }
76  return nullptr;
77 }
const void * ptr(const T *p)
Definition: format.h:3138
virtual int ident() const
Return the ident number of this face.
Definition: AnodeFace.h:16
IWirePlane::vector m_planes
Definition: AnodeFace.h:33
virtual IWirePlane::vector WireCell::Gen::AnodeFace::planes ( ) const
inlinevirtual

Return all wires planes.

Implements WireCell::IAnodeFace.

Definition at line 23 of file AnodeFace.h.

23 { return m_planes; }
IWirePlane::vector m_planes
Definition: AnodeFace.h:33
virtual const RayGrid::Coordinates& WireCell::Gen::AnodeFace::raygrid ( ) const
inlinevirtual

Return a RayGrid::Coordinates corresponding to this face.

Implements WireCell::IAnodeFace.

Definition at line 28 of file AnodeFace.h.

28 { return m_coords; }
RayGrid::Coordinates m_coords
Definition: AnodeFace.h:35
virtual BoundingBox WireCell::Gen::AnodeFace::sensitive ( ) const
inlinevirtual

Return a bounding box containing the volume to which this face is sensitive. BB may be zero volume.

Implements WireCell::IAnodeFace.

Definition at line 26 of file AnodeFace.h.

26 { return m_bb; }

Member Data Documentation

BoundingBox WireCell::Gen::AnodeFace::m_bb
private

Definition at line 34 of file AnodeFace.h.

RayGrid::Coordinates WireCell::Gen::AnodeFace::m_coords
private

Definition at line 35 of file AnodeFace.h.

int WireCell::Gen::AnodeFace::m_ident
private

Definition at line 32 of file AnodeFace.h.

IWirePlane::vector WireCell::Gen::AnodeFace::m_planes
private

Definition at line 33 of file AnodeFace.h.


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