MyCell.h
Go to the documentation of this file.
1 #ifndef WIRECELL_IFACE_TEST_MYCELL
2 #define WIRECELL_IFACE_TEST_MYCELL
3 
4 #include "WireCellIface/ICell.h"
5 
6 class MyCell : public WireCell::ICell {
7  int m_ident;
8  double m_area;
9 
10 public:
11  MyCell(int i, double a) : m_ident(i), m_area(a) {}
12  virtual ~MyCell() {}
13  int ident() const { return m_ident; }
14 
15  double area() const { return m_area; }
16 
17  WireCell::Point center() const { return WireCell::Point(); }
18 
20 
21  WireCell::IWireVector wires() const { return WireCell::IWireVector(); }
22 };
23 #endif
D3Vector< double > Point
A 3D Cartesian point in double precision.
Definition: Point.h:15
MyCell(int i, double a)
Definition: MyCell.h:11
int m_ident
Definition: MyCell.h:7
double area() const
Definition: MyCell.h:15
WireCell::Point center() const
Definition: MyCell.h:17
virtual ~MyCell()
Definition: MyCell.h:12
WireCell::PointVector corners() const
Definition: MyCell.h:19
double m_area
Definition: MyCell.h:8
WireCell::IWireVector wires() const
Definition: MyCell.h:21
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1124
std::vector< Point > PointVector
PointVector - a collection of Points.
Definition: Point.h:30
int ident() const
Definition: MyCell.h:13
Definition: MyCell.h:6