LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
VertexFitAlg.h
Go to the documentation of this file.
1 #ifndef VERTEXFITALG_H
11 #define VERTEXFITALG_H
12 
13 #include <math.h>
14 #include <algorithm>
15 #include <vector>
16 
17 // LArSoft includes
23 
24 // ROOT includes
25 #include "TMinuit.h"
26 
27 namespace trkf {
28 
29  class VertexFitAlg {
30  public:
31 
32  void VertexFit(std::vector<std::vector<geo::WireID>> const& hitWID,
33  std::vector<std::vector<double>> const& hitX,
34  std::vector<std::vector<double>> const& hitXErr,
35  TVector3& VtxPos, TVector3& VtxPosErr,
36  std::vector<TVector3>& TrkDir, std::vector<TVector3>& TrkDirErr,
37  float& ChiDOF) const;
38 
39  // Variables for minuit.
41 
42  static void fcnVtxPos(Int_t &, Double_t *, Double_t &fval, double *par, Int_t flag);
43 
44  private:
45 
47 
48 
49  }; // class VertexFitAlg
50 
51 } // namespace trkf
52 
53 #endif // ifndef VERTEXFITALG_H
art::ServiceHandle< geo::Geometry > geom
Definition: VertexFitAlg.h:46
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
Encapsulate the geometry of a wire.
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)
Encapsulate the construction of a single detector plane.
static VertexFitMinuitStruct fVtxFitMinStr
Definition: VertexFitAlg.h:40
art framework interface to geometry description
Encapsulate the construction of a single detector plane.