LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
KHitsTrack.h
Go to the documentation of this file.
1 
26 #ifndef KHITSTRACK_H
27 #define KHITSTRACK_H
28 
31 #include <vector>
32 
33 namespace trkf {
34 
35  class KHitsTrack : public KFitTrack {
36  public:
38  KHitsTrack();
39 
41  KHitsTrack(const KFitTrack& trf);
42 
44  KHitsTrack(const KETrack& tre);
45 
47  virtual ~KHitsTrack();
48 
49  // Accessor.
50 
52  const std::vector<std::shared_ptr<const KHitBase>>& getHits() { return fHits; }
53 
54  // Modifiers.
55 
57  void addHit(const std::shared_ptr<const KHitBase>& hit) { fHits.push_back(hit); }
58 
60  virtual std::ostream& Print(std::ostream& out, bool doTitle = true) const;
61 
62  private:
63  // Attributes.
64 
66  std::vector<std::shared_ptr<const KHitBase>> fHits;
67  };
68 }
69 
70 #endif
void addHit(const std::shared_ptr< const KHitBase > &hit)
Add a measurement.
Definition: KHitsTrack.h:57
const std::vector< std::shared_ptr< const KHitBase > > & getHits()
Measurement collection.
Definition: KHitsTrack.h:52
KHitsTrack()
Default constructor.
Definition: KHitsTrack.cxx:16
Detector simulation of raw signals on wires.
std::vector< std::shared_ptr< const KHitBase > > fHits
Measurement collection.
Definition: KHitsTrack.h:66
virtual ~KHitsTrack()
Destructor.
Definition: KHitsTrack.cxx:35
virtual std::ostream & Print(std::ostream &out, bool doTitle=true) const
Printout.
Definition: KHitsTrack.cxx:38
Basic Kalman filter track class, with fit information.
Base class for Kalman filter measurement.