VertexFitAlg.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////
2 ///
3 /// VertexFitAlg class
4 ///
5 /// Bruce Baller, baller@fnal.gov
6 ///
7 /// Algorithm for fitting a 3D vertex given a set of track hits
8 ///
9 ////////////////////////////////////////////////////////////////////////
10 #ifndef VERTEXFITALG_H
11 #define VERTEXFITALG_H
12 
13 #include <vector>
14 
15 // Framework includes
17 
18 // LArSoft includes
21 
22 // ROOT includes
23 #include "RtypesCore.h"
24 class TVector3;
25 
26 namespace trkf {
27 
28  class VertexFitAlg {
29  public:
30 
31  void VertexFit(std::vector<std::vector<geo::WireID>> const& hitWID,
32  std::vector<std::vector<double>> const& hitX,
33  std::vector<std::vector<double>> const& hitXErr,
34  TVector3& VtxPos, TVector3& VtxPosErr,
35  std::vector<TVector3>& TrkDir, std::vector<TVector3>& TrkDirErr,
36  float& ChiDOF) const;
37 
38  // Variables for minuit.
40 
41  static void fcnVtxPos(Int_t &, Double_t *, Double_t &fval, double *par, Int_t flag);
42 
43  private:
44 
46 
47 
48  }; // class VertexFitAlg
49 
50 } // namespace trkf
51 
52 #endif // ifndef VERTEXFITALG_H
struct vector vector
art framework interface to geometry description
void VertexFit(std::vector< std::vector< geo::WireID >> const &hitWID, std::vector< std::vector< double >> const &hitX, std::vector< std::vector< double >> const &hitXErr, TVector3 &VtxPos, TVector3 &VtxPosErr, std::vector< TVector3 > &TrkDir, std::vector< TVector3 > &TrkDirErr, float &ChiDOF) const
static void fcnVtxPos(Int_t &, Double_t *, Double_t &fval, double *par, Int_t flag)
art::ServiceHandle< geo::Geometry const > geom
Definition: VertexFitAlg.h:45
static VertexFitMinuitStruct fVtxFitMinStr
Definition: VertexFitAlg.h:39