LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
TrackHitMeta.h
Go to the documentation of this file.
1 
11 #ifndef LARDATAOBJ_RECOBASE_TRACKHITMETA_H
12 #define LARDATAOBJ_RECOBASE_TRACKHITMETA_H
13 
14 #include <iosfwd>
15 
16 // #include "larcoreobj/SimpleTypesAndConstants/geo_vectors.h"
17 
18 namespace recob {
19 
44 {
45 public:
47  TrackHitMeta() = default;
48 
50  TrackHitMeta(unsigned int idx, double dx = 0.0)
51  : fIndex(idx), fDx(dx)
52  {}
53 
55  unsigned int Index() const { return fIndex; }
56 
65  double Dx() const { return fDx; }
66 
67  // /// Candidate to keep 3D trajectory point here instead of inside recob::Track
68  //geo::Point_t const & Position3D(void) const { return fPosition3D; }
69 
70 private:
71  unsigned int fIndex = 0U;
72  double fDx = 0.0;
73 
74  //geo::Point_t fPosition3D;
75 }; // class TrackHitMeta
76 
77 
78 inline std::ostream& operator<< (std::ostream& o, const TrackHitMeta & a)
79  { o << a.Index(); return o; }
80 
81 inline bool operator < (const TrackHitMeta & a, const TrackHitMeta & b)
82  { return a.Index() < b.Index(); }
83 
84 
85 } // namespace recob
86 
87 #endif // LARDATAOBJ_RECOBASE_TRACKHITMETA_H
Reconstruction base classes.
bool operator<(Cluster const &a, Cluster const &b)
Definition: Cluster.cxx:196
Data related to recob::Hit associated with recob::Track.The purpose is to collect several variables t...
Definition: TrackHitMeta.h:43
TrackHitMeta(unsigned int idx, double dx=0.0)
Constructor with initialization.
Definition: TrackHitMeta.h:50
double Dx() const
Length of the track segments associated with the 2D hit.
Definition: TrackHitMeta.h:65
unsigned int Index() const
Hit index along the track trajectory.
Definition: TrackHitMeta.h:55
double fDx
Stored dx size, in centimeters.
Definition: TrackHitMeta.h:72
unsigned int fIndex
Stored index of the hit in the sequence.
Definition: TrackHitMeta.h:71
std::ostream & operator<<(std::ostream &o, Cluster const &c)
Definition: Cluster.cxx:173
TrackHitMeta()=default
Default needed by ROOT.