RdPreWaveFitter/Chi2ForPlaneWaveFit.h
Go to the documentation of this file.
1 #ifndef _RdPreWaveFitter_Chi2ForPlaneWaveFit_h_
2 #define _RdPreWaveFitter_Chi2ForPlaneWaveFit_h_
3 
5 
6 #include <utl/Vector.h>
7 
8 #include <TMath.h>
9 #include <Math/IFunction.h>
10 
11 #include <vector>
12 
13 
14 namespace RdPreWaveFitter {
15 
16 class Chi2ForPlaneWaveFit : public ROOT::Math::IBaseFunctionMultiDim {
17 
18  public:
19  // Set Antenna Times and Positions
20  void Set(const std::vector<utl::Vector>& _AntennaPositions,
21  const std::vector<double>& _AntennaTimes,
22  const std::vector<double>& _AntennaTimesError,
23  const utl::CoordinateSystemPtr& _fgLocalCS);
24 
25  // Mandatory functions of Clone, NDim ROOT::Math::IBaseFunctionMultiDim:
26  ROOT::Math::IBaseFunctionMultiDim*
27  Clone()
28  const override
29  {
32  return foo;
33  }
34  unsigned int NDim() const override { return 2; }
35 
36  // Objevtive function
37  double DoEval(const double* x) const override;
38 
39  private:
40  std::vector<utl::Vector> AntennaPositions;
41  std::vector<double> AntennaTimes;
42  std::vector<double> AntennaTimesError;
44  };
45 
46 }
47 
48 
49 #endif
T * Clone(const T &src)
Clone a given object.
Definition: ShadowPtr.h:69
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
void Set(const std::vector< utl::Vector > &_AntennaPositions, const std::vector< double > &_AntennaTimes, const std::vector< double > &_AntennaTimesError, const utl::CoordinateSystemPtr &_fgLocalCS)
double DoEval(const double *x) const override

, generated on Tue Sep 26 2023.