KHitsTrack.cxx
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////
2 ///
3 /// \file KHitsTrack.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.
20  ///
21  /// Arguments:
22  ///
23  /// trf - KFitTrack.
24  ///
26  KFitTrack(trf)
27  {}
28 
29  /// Initializing constructor - KETrack.
30  ///
31  /// Arguments:
32  ///
33  /// tre - KETrack.
34  ///
36  KFitTrack(tre)
37  {}
38 
39  /// Destructor.
41  {}
42 
43  /// Printout
44  std::ostream& KHitsTrack::Print(std::ostream& out, bool doTitle) const
45  {
46  if(doTitle)
47  out << "KHitsTrack:\n";
48 
49  // Print information specific to this class.
50 
51  out << " " << fHits.size() << " hits.\n";
52 
53  // Print base class.
54 
55  KFitTrack::Print(out, false);
56  return out;
57  }
58 
59 } // end namespace trkf
virtual std::ostream & Print(std::ostream &out, bool doTitle=true) const
Printout.
Definition: KFitTrack.cxx:115
Basic Kalman filter track class, with measurements.
KHitsTrack()
Default constructor.
Definition: KHitsTrack.cxx:16
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