LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
EndPoint2D.h
Go to the documentation of this file.
1 //
3 // \brief Definition of vertex object for LArSoft
4 //
5 // \author joshua.spitz@yale.edu
6 //
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  EndPoint2D();
22 
23  private:
24  double fDriftTime;
26  int fID;
27  double fStrength;
29  double fTotalCharge;
30 
31  public:
32  EndPoint2D(double driftTime,
33  geo::WireID wireID,
34  double strength,
35  int id,
36  geo::View_t view,
37  double totalQ);
38 
39  double Charge() const;
40  geo::View_t View() const;
41  double DriftTime() const;
42  geo::WireID WireID() const;
43  int ID() const;
44  double Strength() const;
45 
46  friend std::ostream& operator<<(std::ostream& o, const EndPoint2D& c);
47  };
48 }
49 
50 inline double recob::EndPoint2D::Charge() const
51 {
52  return fTotalCharge;
53 }
55 {
56  return fView;
57 }
58 inline double recob::EndPoint2D::DriftTime() const
59 {
60  return fDriftTime;
61 }
63 {
64  return fWireID;
65 }
66 inline int recob::EndPoint2D::ID() const
67 {
68  return fID;
69 }
70 inline double recob::EndPoint2D::Strength() const
71 {
72  return fStrength;
73 }
74 
75 #endif //RECOB_ENDPOINT2D_H
Reconstruction base classes.
int ID() const
Definition: EndPoint2D.h:66
geo::View_t fView
view for this end point
Definition: EndPoint2D.h:28
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
double Charge() const
Definition: EndPoint2D.h:50
double fStrength
vertex&#39;s strength
Definition: EndPoint2D.h:27
double fTotalCharge
total charge of hits associated with end point
Definition: EndPoint2D.h:29
double DriftTime() const
Definition: EndPoint2D.h:58
geo::WireID fWireID
vertex&#39;s wireID
Definition: EndPoint2D.h:25
Definition of data types for geometry description.
geo::View_t View() const
Definition: EndPoint2D.h:54
geo::WireID WireID() const
Definition: EndPoint2D.h:62
double fDriftTime
Default constructor.
Definition: EndPoint2D.h:24
friend std::ostream & operator<<(std::ostream &o, const EndPoint2D &c)
Definition: EndPoint2D.cxx:39
int fID
vertex&#39;s ID
Definition: EndPoint2D.h:26
double Strength() const
Definition: EndPoint2D.h:70