All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
24 #include "canvas/Persistency/Common/Ptr.h"
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.
38  const art::Ptr<recob::Hit>& 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.
47  const art::Ptr<recob::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 
62  art::Ptr<recob::Hit> fHit;
63  };
64 }
65 
66 #endif
ublas::symmetric_matrix< double, ublas::lower, ublas::row_major, ublas::bounded_array< double, N *(N+1)/2 > > type
process_name opflash particleana ie x
Declaration of signal hit object.
const art::Ptr< recob::Hit > & getHit() const
Get original hit.
Definition: KHitWireX.h:48
process_name hit
Definition: cheaterreco.fcl:51
KMatrix< N, 5 >::type type
Kalman filter measurement class template.
ublas::vector< double, ublas::bounded_array< double, N > > type
KHitWireX(const detinfo::DetectorPropertiesData &detProp, const art::Ptr< recob::Hit > &hit, const std::shared_ptr< const Surface > &psurf)
Constructor from Hit.
Definition: KHitWireX.cxx:30
art::Ptr< recob::Hit > fHit
Definition: KHitWireX.h:62
bool subpredict(const KETrack &tre, KVector< 1 >::type &pvec, KSymMatrix< 1 >::type &perr, KHMatrix< 1 >::type &hmatrix) const override
Definition: KHitWireX.cxx:115
auto const detProp