LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
KHitTrack.h
Go to the documentation of this file.
1 
25 #ifndef KHITSTRACK_H
26 #define KHITSTRACK_H
27 
30 #include <memory>
31 
32 namespace trkf {
33 
34  class KHitTrack : public KFitTrack {
35  public:
37  KHitTrack();
38 
40  KHitTrack(const KFitTrack& trf, const std::shared_ptr<const KHitBase>& hit);
41 
43  KHitTrack(const KETrack& tre);
44 
46  virtual ~KHitTrack();
47 
48  // Accessor.
49 
51  const std::shared_ptr<const KHitBase>& getHit() const { return fHit; }
52 
53  // Modifiers.
54 
56  void setHit(const std::shared_ptr<const KHitBase>& hit) { fHit = hit; }
57 
59  virtual std::ostream& Print(std::ostream& out, bool doTitle = true) const;
60 
61  private:
62  // Attributes.
63 
65  std::shared_ptr<const KHitBase> fHit;
66  };
67 }
68 
69 #endif
const std::shared_ptr< const KHitBase > & getHit() const
Measurement.
Definition: KHitTrack.h:51
std::shared_ptr< const KHitBase > fHit
Measurement.
Definition: KHitTrack.h:65
virtual std::ostream & Print(std::ostream &out, bool doTitle=true) const
Printout.
Definition: KHitTrack.cxx:41
void setHit(const std::shared_ptr< const KHitBase > &hit)
Set measurement.
Definition: KHitTrack.h:56
Detector simulation of raw signals on wires.
virtual ~KHitTrack()
Destructor.
Definition: KHitTrack.cxx:38
Basic Kalman filter track class, with fit information.
KHitTrack()
Default constructor.
Definition: KHitTrack.cxx:16
Base class for Kalman filter measurement.