All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
16 #include "art/Framework/Services/Registry/ServiceHandle.h"
17 
18 // LArSoft includes
21 
22 // ROOT includes
23 #include "RtypesCore.h"
24 #include "TVector3.h"
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 
45  art::ServiceHandle<geo::Geometry const> geom;
46 
47 
48  }; // class VertexFitAlg
49 
50 } // namespace trkf
51 
52 #endif // ifndef VERTEXFITALG_H
then echo unknown compiler flag
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
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
art framework interface to geometry description