LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
KHitsTrack.h
Go to the documentation of this file.
1 
26 #ifndef KHITSTRACK_H
27 #define KHITSTRACK_H
28 
29 #include <vector>
32 
33 namespace trkf {
34 
35  class KHitsTrack : public KFitTrack
36  {
37  public:
38 
40  KHitsTrack();
41 
43  KHitsTrack(const KFitTrack& trf);
44 
46  KHitsTrack(const KETrack& tre);
47 
49  virtual ~KHitsTrack();
50 
51  // Accessor.
52 
54  const std::vector<std::shared_ptr<const KHitBase> >& getHits() {return fHits;}
55 
56  // Modifiers.
57 
59  void addHit(const std::shared_ptr<const KHitBase>& hit) {fHits.push_back(hit);}
60 
62  virtual std::ostream& Print(std::ostream& out, bool doTitle = true) const;
63 
64  private:
65 
66  // Attributes.
67 
69  std::vector<std::shared_ptr<const KHitBase> > fHits;
70  };
71 }
72 
73 #endif
void addHit(const std::shared_ptr< const KHitBase > &hit)
Add a measurement.
Definition: KHitsTrack.h:59
const std::vector< std::shared_ptr< const KHitBase > > & getHits()
Measurement collection.
Definition: KHitsTrack.h:54
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:69
virtual ~KHitsTrack()
Destructor.
Definition: KHitsTrack.cxx:40
virtual std::ostream & Print(std::ostream &out, bool doTitle=true) const
Printout.
Definition: KHitsTrack.cxx:44
Basic Kalman filter track class, with fit information.
Base class for Kalman filter measurement.