KHitTrack.cxx
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////
2 ///
3 /// \file KHitTrack.cxx
4 ///
5 /// \brief Basic Kalman filter track class, with measurements.
6 ///
7 /// \author H. Greenlee
8 ///
9 ////////////////////////////////////////////////////////////////////////
10 
12 
13 namespace trkf {
14 
15  /// Default constructor.
17  {}
18 
19  /// Initializing constructor - KFitTrack + measurement.
20  ///
21  /// Arguments:
22  ///
23  /// trf - KFitTrack.
24  /// hit - Measurement.
25  ///
26  KHitTrack::KHitTrack(const KFitTrack& trf, const std::shared_ptr<const KHitBase>& hit) :
27  KFitTrack(trf),
28  fHit(hit)
29  {}
30 
31  /// Initializing constructor - KETrack.
32  ///
33  /// Arguments:
34  ///
35  /// tre - KETrack.
36  ///
38  KFitTrack(tre)
39  {}
40 
41  /// Destructor.
43  {}
44 
45  /// Printout
46  std::ostream& KHitTrack::Print(std::ostream& out, bool doTitle) const
47  {
48  if(doTitle)
49  out << "KHitTrack:\n";
50 
51  // Print base class.
52 
53  KFitTrack::Print(out, false);
54 
55  // Print information specific to this class.
56 
57  if(fHit.get() != 0)
58  out << " " << *fHit;
59  return out;
60  }
61 
62 } // end namespace trkf
Basic Kalman filter track class, plus one measurement on same surface.
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
virtual std::ostream & Print(std::ostream &out, bool doTitle=true) const
Printout.
Definition: KFitTrack.cxx:115
Detector simulation of raw signals on wires.
virtual ~KHitTrack()
Destructor.
Definition: KHitTrack.cxx:42
KHitTrack()
Default constructor.
Definition: KHitTrack.cxx:16