KHitTrack.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 ///
3 /// \file KHitTrack.h
4 ///
5 /// \brief Basic Kalman filter track class, plus one measurement on same surface.
6 ///
7 /// \author H. Greenlee
8 ///
9 /// This class inherits the following attributes from KFitTrack.
10 ///
11 /// 1. Surface.
12 /// 2. Track state vector.
13 /// 3. Track direction parameter.
14 /// 4. Track error matrix.
15 /// 5. Propagation distance.
16 /// 6. Fit chisquare.
17 /// 7. Fit status.
18 ///
19 /// This class adds the following attributes of its own.
20 ///
21 /// 8. A single measurement.
22 ///
23 ////////////////////////////////////////////////////////////////////////
24 
25 #ifndef KHITSTRACK_H
26 #define KHITSTRACK_H
27 
28 #include <memory>
31 
32 namespace trkf {
33 
34  class KHitTrack : public KFitTrack
35  {
36  public:
37 
38  /// Default constructor.
39  KHitTrack();
40 
41  /// Initializing constructor - KFitTrack + measurement.
42  KHitTrack(const KFitTrack& trf, const std::shared_ptr<const KHitBase>& hit);
43 
44  /// Initializing constructor - KETrack.
45  KHitTrack(const KETrack& tre);
46 
47  /// Destructor.
48  virtual ~KHitTrack();
49 
50  // Accessor.
51 
52  /// Measurement.
53  const std::shared_ptr<const KHitBase>& getHit() const {return fHit;}
54 
55  // Modifiers.
56 
57  /// Set measurement.
58  void setHit(const std::shared_ptr<const KHitBase>& hit) {fHit = hit;}
59 
60  /// Printout
61  virtual std::ostream& Print(std::ostream& out, bool doTitle = true) const;
62 
63  private:
64 
65  // Attributes.
66 
67  /// Measurement.
68  std::shared_ptr<const KHitBase> fHit;
69  };
70 }
71 
72 #endif
const std::shared_ptr< const KHitBase > & getHit() const
Measurement.
Definition: KHitTrack.h:53
std::shared_ptr< const KHitBase > fHit
Measurement.
Definition: KHitTrack.h:68
virtual std::ostream & Print(std::ostream &out, bool doTitle=true) const
Printout.
Definition: KHitTrack.cxx:46
void setHit(const std::shared_ptr< const KHitBase > &hit)
Set measurement.
Definition: KHitTrack.h:58
Detector simulation of raw signals on wires.
virtual ~KHitTrack()
Destructor.
Definition: KHitTrack.cxx:42
Basic Kalman filter track class, with fit information.
KHitTrack()
Default constructor.
Definition: KHitTrack.cxx:16
Base class for Kalman filter measurement.