KHitWireX.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 ///
3 /// \file KHitWireX.h
4 ///
5 /// \brief Kalman filter wire-time measurement on a SurfWireX surface.
6 ///
7 /// \author H. Greenlee
8 ///
9 /// This class is a type of one-dimensional Kalman filter measurement
10 /// reprsenting a single wire-time hit on a surface parallel to the
11 /// x-axis (approprite for nonmagnetic LAr tpc).
12 ///
13 /// This class derives from base class KHit<1>, which is the general
14 /// one-dimensional measurement base class. This class has a constructor
15 /// from an art::Ptr<recob::Hit>, which pointer is retained as a data
16 /// product. This class overrides virtual base class method subpredict.
17 ///
18 ///
19 ////////////////////////////////////////////////////////////////////////
20 
21 #ifndef KHITWIREX_H
22 #define KHITWIREX_H
23 
27 
28 namespace detinfo {
29  class DetectorPropertiesData;
30 }
31 
32 namespace trkf {
33 
34  class KHitWireX : public KHit<1> {
35  public:
36  /// Constructor from Hit.
39  const std::shared_ptr<const Surface>& psurf);
40 
41  /// Constructor from wire id (mainly for testing).
42  KHitWireX(const geo::WireID& wireid, double x, double xerr);
43 
44  // Accessors.
45 
46  /// Get original hit.
48  getHit() const
49  {
50  return fHit;
51  }
52 
53  // Prediction method.
54  bool subpredict(const KETrack& tre,
55  KVector<1>::type& pvec,
56  KSymMatrix<1>::type& perr,
57  KHMatrix<1>::type& hmatrix) const override;
58 
59  private:
60  // Attributes.
61 
63  };
64 }
65 
66 #endif
ublas::symmetric_matrix< double, ublas::lower, ublas::row_major, ublas::bounded_array< double, N *(N+1)/2 > > type
const art::Ptr< recob::Hit > & getHit() const
Get original hit.
Definition: KHitWireX.h:48
KMatrix< N, 5 >::type type
Kalman filter measurement class template.
ublas::vector< double, ublas::bounded_array< double, N > > type
General LArSoft Utilities.
Detector simulation of raw signals on wires.
art::Ptr< recob::Hit > fHit
Definition: KHitWireX.h:62
Declaration of signal hit object.
list x
Definition: train.py:276