EndPoint2D.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////
2 //
3 // \brief Definition of vertex object for LArSoft
4 //
5 // \author joshua.spitz@yale.edu
6 //
7 ////////////////////////////////////////////////////////////////////////////
8 
9 #ifndef RECOB_ENDPOINT2D_H
10 #define RECOB_ENDPOINT2D_H
11 
13 
14 #include <iosfwd>
15 
16 namespace recob {
17 
18  class EndPoint2D {
19 
20  public:
21 
22  EndPoint2D(); ///Default constructor
23 
24  private:
25  double fDriftTime; ///< vertex's drift time
26  geo::WireID fWireID; ///< vertex's wireID
27  int fID; ///< vertex's ID
28  double fStrength; ///< vertex's strength
29  geo::View_t fView; ///< view for this end point
30  double fTotalCharge; ///< total charge of hits associated with end point
31 
32 
33  public:
34  EndPoint2D(double driftTime,
35  geo::WireID wireID,
36  double strength,
37  int id,
38  geo::View_t view,
39  double totalQ);
40 
41  double Charge() const;
42  geo::View_t View() const;
43  double DriftTime() const;
44  geo::WireID WireID() const;
45  int ID() const;
46  double Strength() const;
47 
48  friend std::ostream& operator << (std::ostream& o, const EndPoint2D& c);
49 
50  };
51 }
52 
53 
54 inline double recob::EndPoint2D::Charge() const { return fTotalCharge; }
55 inline geo::View_t recob::EndPoint2D::View() const { return fView; }
56 inline double recob::EndPoint2D::DriftTime() const { return fDriftTime; }
57 inline geo::WireID recob::EndPoint2D::WireID() const { return fWireID; }
58 inline int recob::EndPoint2D::ID() const { return fID; }
59 inline double recob::EndPoint2D::Strength() const { return fStrength; }
60 
61 
62 #endif //RECOB_ENDPOINT2D_H
Reconstruction base classes.
int ID() const
Definition: EndPoint2D.h:58
geo::View_t fView
view for this end point
Definition: EndPoint2D.h:29
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
double Charge() const
Definition: EndPoint2D.h:54
double fStrength
vertex&#39;s strength
Definition: EndPoint2D.h:28
double fTotalCharge
total charge of hits associated with end point
Definition: EndPoint2D.h:30
double DriftTime() const
Definition: EndPoint2D.h:56
geo::WireID fWireID
vertex&#39;s wireID
Definition: EndPoint2D.h:26
Definition of data types for geometry description.
geo::View_t View() const
Definition: EndPoint2D.h:55
geo::WireID WireID() const
Definition: EndPoint2D.h:57
double fDriftTime
Default constructor.
Definition: EndPoint2D.h:25
friend std::ostream & operator<<(std::ostream &o, const EndPoint2D &c)
Definition: EndPoint2D.cxx:46
int fID
vertex&#39;s ID
Definition: EndPoint2D.h:27
double Strength() const
Definition: EndPoint2D.h:59