LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
KHitBase.cxx
Go to the documentation of this file.
1 
12 
13 namespace trkf {
14 
17  fPredDist(0.),
18  fID(0),
19  fMeasPlane(-1)
20  {}
21 
28  KHitBase::KHitBase(const std::shared_ptr<const Surface>& psurf, int plane) :
29  fPredDist(0.),
30  fID(0),
31  fMeasSurf(psurf),
32  fMeasPlane(plane)
33  {}
34 
37  {}
38 
40  std::ostream& KHitBase::Print(std::ostream& out, bool doTitle) const
41  {
42  if(doTitle)
43  out << "KHitBase:\n";
44  out << " Measurement Surface: " << *fMeasSurf << "\n";
45  out << " Measurement Plane: " << fMeasPlane << "\n";
46  if(fPredSurf.get() != 0) {
47  out << " Prediction Surface: " << *fPredSurf << "\n";
48  out << " Prediction Distance: " << fPredDist << "\n";
49  }
50  return out;
51  }
52 
54  std::ostream& operator<<(std::ostream& out, const KHitBase& trk)
55  {
56  return trk.Print(out);
57  }
58 
59 } // end namespace trkf
std::shared_ptr< const Surface > fMeasSurf
Measurement surface.
Definition: KHitBase.h:122
virtual std::ostream & Print(std::ostream &out, bool doTitle=true) const
Printout.
Definition: KHitBase.cxx:40
std::shared_ptr< const Surface > fPredSurf
Prediction surface.
Definition: KHitBase.h:116
std::ostream & operator<<(std::ostream &out, const KGTrack &trg)
Output operator.
Definition: KGTrack.cxx:306
KHitBase()
Default constructor.
Definition: KHitBase.cxx:16
int fID
Unique id.
Definition: KHitBase.h:118
double fPredDist
Prediction distance.
Definition: KHitBase.h:117
virtual ~KHitBase()
Destructor.
Definition: KHitBase.cxx:36
int fMeasPlane
Measurement plane index.
Definition: KHitBase.h:123
Base class for Kalman filter measurement.