ChiZeroRegression.h
Go to the documentation of this file.
1 #ifndef FdProfileConstrainedGeometryFit_ChiZeroRegression_h
2 #define FdProfileConstrainedGeometryFit_ChiZeroRegression_h
3 
4 #include <fevt/EyeRecData.h>
5 
6 namespace FdProfileConstrainedGeometryFit {
7 
19  public:
21  {PrepParams(eyeRec);}
22 
24  void
25  operator()(const double chi0,
26  double& chi2,
27  double& rp,
28  double& t0) const;
29 
31  void
32  operator()(const double chi0,
33  double& chi2,
34  double& rp, double &rpErr,
35  double& t0, double &t0Err) const;
36 
37  unsigned int GetNDof() const { return chii.size() - 2; }
38  void SetUseLightFlux(bool use=true) {fUseLightFlux=use;}
39  void SetRealAtm(bool realAtm, bool deex);
40 
41  protected:
42  void
43  PrepParams(const fevt::EyeRecData& eyeRec);
44 
45  void
46  LinearFitErrors(const std::vector<double>& x,
47  const std::vector<double>& y,
48  const std::vector<double>& ey,
49  double& a0, double& a0err,
50  double& a1, double& a1err,
51  double& chi2) const;
52 
53  static void MinuitFitFunc(int& npar, double* gin, double& f, double* par, int iflag);
54 
55  void
56  MinuitFitErrors(const double Chi0,
57  double& T0, double& T0err,
58  double& Rp, double& Rperr,
59  double& chi2) const;
60 
61 
62  static std::vector<double> times;
63  static std::vector<double> timeErrs;
64  static std::vector<double> chii;
65  static double fsdpTheta;
66  static int fEyeId;
67  static int fTelId;
69  bool fRealAtm;
70  bool fDeex;
71 };
72 } //namespace
73 
74 #endif
void MinuitFitErrors(const double Chi0, double &T0, double &T0err, double &Rp, double &Rperr, double &chi2) const
ChiZeroRegression(const fevt::EyeRecData &eyeRec)
const unsigned int npar
Definition: UnivRec.h:75
void PrepParams(const fevt::EyeRecData &eyeRec)
void LinearFitErrors(const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &ey, double &a0, double &a0err, double &a1, double &a1err, double &chi2) const
static void MinuitFitFunc(int &npar, double *gin, double &f, double *par, int iflag)
Eye-specific shower reconstruction data.
Definition: EyeRecData.h:65
void operator()(const double chi0, double &chi2, double &rp, double &t0) const

, generated on Tue Sep 26 2023.