LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 
22  EndPoint2D();
23 
24  private:
25  double fDriftTime;
27  int fID;
28  double fStrength;
30  double fTotalCharge;
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:47
int fID
vertex&#39;s ID
Definition: EndPoint2D.h:27
double Strength() const
Definition: EndPoint2D.h:59