All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackLineFitAlg.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////
2 ///
3 /// TrackLineFitAlg class
4 ///
5 /// Bruce Baller, baller@fnal.gov
6 ///
7 /// Algorithm for fitting a 3D line given a number of points in 3 wire planes
8 ///
9 ////////////////////////////////////////////////////////////////////////
10 #ifndef TRACKLINEFITALG_H
11 #define TRACKLINEFITALG_H
12 
13 #include <vector>
14 
15 #include "art/Framework/Services/Registry/ServiceHandle.h"
16 
17 // LArSoft includes
19 namespace geo { struct WireID; }
20 
21 class TVector3;
22 
23 namespace trkf {
24 
26  public:
27 
28  void TrkLineFit(std::vector<geo::WireID>& hitWID, std::vector<double>& hitX, std::vector<double>& hitXErr,
29  double XOrigin, TVector3& Pos, TVector3& Dir, float& ChiDOF) const;
30 
31  private:
32 
33  art::ServiceHandle<geo::Geometry const> geom;
34 
35  }; // class TrackLineFitAlg
36 
37 } // namespace trkf
38 
39 #endif // ifndef TRACKLINEFITALG_H
void TrkLineFit(std::vector< geo::WireID > &hitWID, std::vector< double > &hitX, std::vector< double > &hitXErr, double XOrigin, TVector3 &Pos, TVector3 &Dir, float &ChiDOF) const
IDparameter< geo::WireID > WireID
Member type of validated geo::WireID parameter.
art::ServiceHandle< geo::Geometry const > geom
art framework interface to geometry description